Jump to content

Recommended Posts

Posted

hello all:

 

I use this routine to lower all selected objects to z0

The problem is that it also affects 3D solids if I have them.

Is there a way to modify the code excluding 3D solids from the selection?

 

_move;_all;;0,0,0;0,0,1e99;_move;_p;;0,0,0;0,0,-1e99

 

 

I appreciate the comments and hope they can help me.

 

 

Posted (edited)

It could be as simple as changing "all" to "ss", where ss is a selection set.

 

I am no expert on setting the exclude objects in a selection set. try this not really tested.

 

(setq ss (ssget "_X" '((-4 . "<NOT") (0 . "3DSOLID") (-4 . "NOT>"))))
  
or 
  
_move;(setq ss (ssget "_X" '((-4 . "<NOT") (0 . "3DSOLID") (-4 . "NOT>"))));;0,0,0;0,0,1e99;_move;ss;;0,0,0;0,0,-1e99

 

Edited by BIGAL
  • Agree 1

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