Only Explodes One Entity of a Slection Set of Several Entities

Only Explodes One Entity of a Slection Set of Several Entities

kpennell
Collaborator Collaborator
817 Views
3 Replies
Message 1 of 4

Only Explodes One Entity of a Slection Set of Several Entities

kpennell
Collaborator
Collaborator

(setq LabelCount (ssget "X" (list (cons 0 "LWPOLYLINE")(cons 410 (getvar "ctab")))))
(command "explode" LabelCount "")

 

In 2016, for some reason, I can't explode the all off the polylines on the current tab.  I can select them, move them, copy them, but I can't explode them.

 

Any ideas anyone?

0 Likes
818 Views
3 Replies
Replies (3)
Message 2 of 4

hmsilva
Mentor
Mentor

@kpennell wrote:

(setq LabelCount (ssget "X" (list (cons 0 "LWPOLYLINE")(cons 410 (getvar "ctab")))))
(command "explode" LabelCount "")

 

In 2016, for some reason, I can't explode the all off the polylines on the current tab.  I can select them, move them, copy them, but I can't explode them.

 

Any ideas anyone?


Try to add a (initcommandversion) before the explode command, or set QAFLAGS to 1, explode reset QAFLAGS tp 0...

 

 

Hope this helps,
Henrique

EESignature

Message 3 of 4

Kent1Cooper
Consultant
Consultant

The Explode command, when used in an AutoLisp (command) function, has never been able to Explode more than one thing unless you go through the [undocumented] QAFLAGS shenanigans as hmsilva mentioned [a Search for that will reveal a lot more discussion about it].  The other alternative, since changing QAFLAGS is dangerous if there's any chance it won't get changed back, is to step through the selection set and Explode them one by one, in which case, because of that limitation, you don't complete the selection with the typical "" Enter -- something like:


(repeat (setq n (sslength LabelCount))

  (command "_.explode" (ssname LabelCount (setq n (1- n))))

); repeat

Kent Cooper, AIA
Message 4 of 4

marko_ribar
Advisor
Advisor

I had a problem with QAFLAGS set to 1, and until I didn't find that that was the problem to various tasks, I programmed like it's turned on (had to avoid ACET-*** functions, always input "-" before commandname (command "_.-commandname" ... ), and old lisp version of SPLINE command was wrong... Thanks to Kent's explanation of danger of QAFLAGS today I discovered it was set on 1, so now I reset it back to 0 and put in my acaddoc.lsp (setvar 'qaflags 0)... Thanks to Kent, so kudo from me...

 

M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes