i attached a sample dwg of my BOM with multiple blocks of the same name.
im trying to find the insert point of the last block inserted.
here is the code im using
(setq elist (entget (ssname (ssget "x" (list '(0 . "INSERT") '(2 . "bmline2"))) 0)))
(setq ip (cdr (assoc 10 elist)))
(setq INP (list (+ (car ip))(+ (cadr ip))))
i noted in the dwg the insert point its giving me as the last block insert point but thats incorrect.
would anyone know why is pointing to the wrong block?
thanks