Community
Dynamic Blocks Forum
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

I need a Lisp to get name of a block by just selecting the block to use it in re insert it without typing it name again

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
wael6URAQ
359 Views, 3 Replies

I need a Lisp to get name of a block by just selecting the block to use it in re insert it without typing it name again

I need a Lisp to get name of a block by just selecting the block to use it in re insert it without typing it name again

3 REPLIES 3
Message 2 of 4
wael6URAQ
in reply to: wael6URAQ

I found what i was looking for:

 

(defun c:IBlockA (/)

(command "ATTREQ" 0)
(setq obj (vlax-ename->vla-object (car (entsel "Select block: "))))
(setq blkame (vlax-get obj 'Effectivename))

(command "INSERT" blkame pause 1 ))

Message 3 of 4

I think ADDSELECTED does the same thing. You just have to press enter three times (scale x, scale y, rotation) after placing the new block.

Message 4 of 4
wael6URAQ
in reply to: wael6URAQ

thanks a lot very helpful.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


ā€Boost