Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unknown command - EXLODE

4 REPLIES 4
Reply
Message 1 of 5
tracihabergham
249 Views, 4 Replies

Unknown command - EXLODE

I am trying to explode objects in the middle of an autolisp routine but it tells me it is an unknown command. I have used this before and put ".explode" but this doesn't seem to work either.

(command "-explode" "all")

Any ideas??

Thanks
Traci
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: tracihabergham

(setvar "qaflags" 1)

(command "_.explode" (ssget) "_ALL" "")
or
(command "_.explode" (ssget "_X") "")

(setvar "qaflags" 0)

...

QAFLAGS
Value between 0 - 32767
bit 0 (1) : ^C in menu macro cancels grips (acts like keyboard ).
bit 1 (2) : no pause during text screen listings.
bit 2 (4) : no "alert" dialogs (text display instead).
bit 7 (128) : accepts "screen picks" (point lists) via (command) function.


Marco
Message 3 of 5
Anonymous
in reply to: tracihabergham

Try catching the selection set of visible entities in a variable, make
sure it is not nil and then pass it on to explode

(setq ss (ssget)
(if ss
(command "._Explode" ss)
)

This should work. Surprisingly the Explode command in Lisp does not
require the ENTER or "" to terminate the selection that manual EXPLODE
(or any selection prompt) requires.

Regards
Rakesh

tracihabergham wrote:

> I am trying to explode objects in the middle of an autolisp routine
> but it tells me it is an unknown command. I have used this before and
> put ".explode" but this doesn't seem to work either.
>
> (command "-explode" "all")
>
> Any ideas??
>
> Thanks
> Traci

--

AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @
http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter
Message 4 of 5
Anonymous
in reply to: tracihabergham

It's the -explode that is causing the
problem

 

Use (command "_.explode" "all" "")


 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
am trying to explode objects in the middle of an autolisp routine but it tells
me it is an unknown command. I have used this before and put ".explode" but
this doesn't seem to work either.

(command "-explode" "all")

Any ideas??

Thanks
    Traci

Message 5 of 5
Anonymous
in reply to: tracihabergham

The tip about setting QAFLAGS to 1 prior to running
the EXPLODE command is also necessary.

 

Don

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
am trying to explode objects in the middle of an autolisp routine but it tells
me it is an unknown command. I have used this before and put ".explode" but
this doesn't seem to work either.

(command "-explode" "all")

Any ideas??

Thanks
    Traci

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost