Jump to content

Unable to explode leader after insertion...HELP Please


Recommended Posts

Posted (edited)

Here i have a lisp routine to explode only the leader after creation (its due to how the leaders translate into another program, is why we explode them) but the explode portion never seems to run. as a matter of fact nothing runs after the qleader command. Can someone take a look and show me whats wrong or fix.

 

 

(defun c:gt (/ lastEnt ss)
(setvar "qaflags" 1)
 (setq	lastEnt	(entlast)
ss	(ssadd)
 )
 (command "Qleader")
 (while (setq lastEnt (entnext lastEnt))
   (ssadd lastEnt ss)
 )
 (sssetfirst nil ss)
 (COMMAND "EXPLODE" ss)
 (setvar "qaflags" 0)
 (setq ss nil)
 (setq lastEnt nil)
 (princ)
)

Edited by slowmotion1914
update code
Posted

Updated code following the guidelines

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...