Jump to content

explode command does not work with selection window... help


Recommended Posts

Posted

hi:

I use autocad 2013

 

explode command doesn't work with selection window from lsp.

just using the icon.

 

Does anyone know why and how to fix it?

 

thanks

 

Posted

locked layers?

nested blocks?

ssget might filter out what your trying to explode.

 

kinda hard to tell with out any code.

Posted (edited)

2 ways :

 

(setvar 'qaflags 1)

(vl-cmdf "_.explode" ss)

(setvar 'qaflags 0)

 

But working with QAFLAGS is little risky - if not reset to 0, CAD behaves strange...

 

(initcommandversion)

(vl-cmdf "_.explode" ss)

 

But this is somewhat not always good if (initcommandversion) function not available...

Edited by marko_ribar
  • Thanks 1
Posted

 

 

 

 

I just have it here in the file pgp....

I use the letter ñ

 

It runs but it doesn't let me select in the window

If I click on the icon, it allows selecting in the window

 

 

 

 

 

 

image.png.759855b6b4bf806ab517b598130a04e6.png

 

 

image.png

Posted

I'm with MHUPP here, tricky to work out the problem if we can't see the problem. Assuming it is a LISP rather than a shortcut key, somewhere will be a file containing the LISP... if you can find that then maybe - I know it is tricky - but maybe you could share the LISP and that will give us an idea. I guess this is a new thing and that before the LISP was working OK?

 

Another thing you could do is search the internet, there are lots of explode LISPs out there, for example:

Find one that works for you and replace what you are using now

 

;;https://www.cadtutor.net/forum/topic/17919-explode-in-autolisp/
(if (setq i -1 ss (ssget))
   (while (setq ent (ssname ss (setq i (1+ i))))
     (and (vlax-method-applicable-p
            (setq obj (vlax-ename->vla-object ent)) 'Explode)
            (vla-explode obj)
     (entdel ent)))
  )
)


;;OR

;;https://forums.autodesk.com/t5/autocad-forum/explode-lisp/td-p/1181092
(setq ss (ssget))
(setq cnt 0)
(repeat (sslength ss)
  (command ".explode" (ssname ss cnt))
  (setq cnt (1+ cnt))
)

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...