Jump to content

Acad Group


martinle

Recommended Posts

Please help!

I have this Lisp that shows me the groups of the list one after the other.

How can I change this lisp so that all groups, including the anonymous groups and named groups, are shown one after the other?

Thank you for your help.

 

(defun C:Isolategroup1 (/ gruppenliste ss)
 (setq gruppenliste '("Wand" "Sockel" "Täfelung" "Gesims" "Abdeckplatte" "Decke"))
 (foreach X
   gruppenliste
   (command "_.point" "0,0")
   (command "_.erase" "_L" "")
   (command "_.select" "_G" X "")
   (setq ss (ssget "_P"))
   (if	ss
     (progn
(command "_.isolateobjects" "gr" X "")
(alert (strcat "Zeige Gruppe " X))
(command "_.unisolateobjects")
     )
     (alert (strcat "Gruppe " X " ist leer"))
   )
 )
 (princ)
)

Edited by rkmcswain
Added [CODE] tags
Link to comment
Share on other sites

Hello,

Yes, thank you that brings me a bit further.

Now I have to see how I convert this list into my group list so that isolating works one after the other.

Or does anyone have an idea?

Thank you.

Link to comment
Share on other sites

Hello rlx, am very happy, have it with your help managed to rebuild the Lisp so that it meets my expectations. Many Thanks!

Link to comment
Share on other sites

Hello rlx, am very happy, have it with your help managed to rebuild the Lisp so that it meets my expectations. Many Thanks!

 

 

didn't do that much, but I'm glad the little that I did helped you enough :D

Link to comment
Share on other sites

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