Jump to content

Recommended Posts

Posted

Hello Friends,

Greetings,

through lisp how to select a particular object from a block to copy.

 

 

Please help me.

 

Ramana

Posted

I suppose you could look into the functions: nentsel & nentselp

Posted

Mr. Lee

 

thanks i will work with these function, i will get your suggestion if i need.

 

Thanks

 

 

Ramana

Posted

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.

Posted

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.

Posted

Dear friend,

 

your code will helps me.

 

i will try with this.

 

thankyou.

 

 

Ramana

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