Jump to content

Recommended Posts

Posted

hi,

 

I would like to know if their's a way of inserting more then 1 block at the same time then make them an entity with entlast.

 

Thanks

Posted

In fact you should look to create a selection set from those blocks - they will not be treated as a single entity. The code below may help you:

(setq ssetToAdd (ssadd))                ;start a new selection set

;parse a list of points to insert blocks
(foreach pointInsertion  (list poin1st point2nd point3rd)   ;<-- your list of points
(entmake (list '(0 . "INSERT")
               (cons 2 nameOfBlock)
               (cons 10 pointInsertion)
               (cons 41 scaleOnX)
               (cons 42 scaleOnY)
               (cons 43 scaleOnZ)
               (cons 50 angleRotation)
               (cons 8 theLayer)
               ))
(ssadd (entlast) ssetToAdd)            ;gather the entities
)

Regards,

Mircea

Posted

Thank ill meditate on that this week end

Posted

By the way, if you need those blocks arranged in a rectangular array, then there is a possibility to have them behave as a single entity. Just take a look to MINSERT command.

 

Regards,

Mircea

Posted

@msasu: if you use entmakeX instead, you don't have to worry with entlast.

Posted

Probably I miss something, but using ENTMAKEX to add blocks I got an error:

error: Invalid Entity name
Regards,

Mircea

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