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
Solved! Go to Solution.
Solved by horvath.andrasFAZ9L. Go to Solution.
Solved by wael6URAQ. Go to Solution.
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 ))
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.
Can't find what you're looking for? Ask the community or share your knowledge.