attached is a sample BOM and a pic if you dont want to download the sample.
im attempting to get the insert point of the bmline (name of the block) based on the item number associated with it.
for example: when prompted, i type in "item 1" it would give me the insert point of the bmline that is associated with item #1 so i can do my thing.
i started to use following code, but it only gives me the insert point of the last block inserted
(setq elist
(entget
(ssname (ssget "x" (list '(0 . "INSERT") '(2 . "bmline*")))
0
)
)
)
(setq ip (cdr (assoc 10 elist)))
maybe count all the blocks and count backwards, to get to the bmline i need?
appreciate any guidance
edit: the insert point would be the top right corner of the block (bmline)