CadFrank Posted April 5, 2012 Posted April 5, 2012 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 Quote
MSasu Posted April 5, 2012 Posted April 5, 2012 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 Quote
CadFrank Posted April 5, 2012 Author Posted April 5, 2012 Thank ill meditate on that this week end Quote
MSasu Posted April 5, 2012 Posted April 5, 2012 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 Quote
alanjt Posted April 5, 2012 Posted April 5, 2012 @msasu: if you use entmakeX instead, you don't have to worry with entlast. Quote
MSasu Posted April 5, 2012 Posted April 5, 2012 Probably I miss something, but using ENTMAKEX to add blocks I got an error: error: Invalid Entity name Regards,Mircea Quote
Recommended Posts
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.