August 2008

  • Exploring the autolisp SSGET function - part 2

    Ok, getting back to the last (ssget) call in part 1...

    (ssget "_W" 
     (list 5.0 5.0)(list 8.0 8.0)
     '((0 . "CIRCLE")(-4 . "<")(40 . 1.0))
    )
     Read more »
  • Exploring the autolisp SSGET function - part 1

    If you have written routines with Autolisp, then you have probably used the (ssget) function to select entities on the screen, either automatically or by prompting the user.

    (ssget) is a powerful function that can do more than you probably realize. Let's look at a simple example.

    (ssget '((0 . "TEXT")))
     Read more »
  • S::STARTUP Function

    In the previous post about Startup Lisp Functions, the special (S::STARTUP) function was mentioned. Startup lisp code is loaded before the drawing is initialized, but you cannot call the (COMMAND) function until after the drawing is initialized. The solution is to place your (COMMAND) calls inside the (S::STARTUP) function. Read more »

  • Startup Lisp Functions

    If you have lisp routines that you want to make available in each drawing session, forget the "Startup Suite" and load them using the "acaddoc.lsp" file. "acaddoc.lsp" is not included with AutoCAD, you create it yourself. But it is nothing more than a plain lisp file, except that the first one found at drawing startup (just put it in your support file search path), is loaded automatically each time a drawing is opened. Read more »

 


All content is copyright © CAD Panacea 2008-2010 unless otherwise noted.
All content of CAD Panacea is solely my own personal thoughts and opinions and do not represent my employer or any others.
All comments posted to this blog are the sole responsibility of the person making the comment.

 

Google, as a third party vendor, uses cookies to serve ads on this site. Google's use of their cookies enables it to serve ads to users based on their visit to your sites and other sites on the Internet. You may opt out of the use of these cookies by visiting the Google ad and content network privacy policy.

free hit counters

Powered by Drupal, an open source content management system