Friday, July 25, 2008

Explode multiple objects with AutoLISP

If explode is used in AutoLISP you might have notice that it only accepts one object. To be able to explode many objects or a selection set make use of qaflags.

(setvar "qaflags" 1)
(command "._explode" (ssget) "")
(setvar "qaflags" 0)

To be on the safe side error handling needs to be added so qaflags can be set to 0 even if the program fails.

For more on qaflags.

No comments:

Post a Comment

Subscribe to the comments feed

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner

Contact Us | About JTB World | Subscribe to this blog
JTB World's website | Website General Terms of Use | Privacy Policy
^ Top of page

© 2004- JTB World. All rights reserved.