Ramana Posted June 2, 2009 Posted June 2, 2009 Hello Friends, Greetings, through lisp how to select a particular object from a block to copy. Please help me. Ramana Quote
Lee Mac Posted June 2, 2009 Posted June 2, 2009 I suppose you could look into the functions: nentsel & nentselp Quote
Ramana Posted June 2, 2009 Author Posted June 2, 2009 Mr. Lee thanks i will work with these function, i will get your suggestion if i need. Thanks Ramana Quote
Lee Mac Posted June 2, 2009 Posted June 2, 2009 nentsel provides direct access to sub-entities (for example, within a block), and returns a list much in the same way as entsel. nentselp provides the same functionality as nentsel, however does not require user input. Quote
Freerefill Posted June 2, 2009 Posted June 2, 2009 Lee also originally posted these a while back, and I think it's nigh impossible to improve upon the simplicity. (defun GetBlockEntities (Blk / tStr) (if (tblsearch "BLOCK" Blk) (GetObj (tblobjname "BLOCK" Blk)))) (defun GetObj (bObj) (if (setq bObj (entnext bObj)) (cons bObj (GetObj bObj)))) Just make sure to pass the block name to GetBlockEntities, and not the entity itself. Quote
Ramana Posted June 3, 2009 Author Posted June 3, 2009 Dear friend, your code will helps me. i will try with this. thankyou. Ramana 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.