I have a circle inside a block and this block is inserted in a drawing. I want to get the coordinates of the center of that circle in WCS. Obviously, the center of the circle is not the insertion point.
I found 'nentselp' to transform with a trans. matrix but requires me to give a point which I don't have (user input is out of the question) so I doesn't work for me. All other data of the block is however known.
I managed to get the center of the circle by using the following line
(setq ptz (cdr (assoc 10 (entget (cadr (getblkitems ent))))))
The 'getblkitems' returns all entity names in a list (somebody kindly posted in a forum) and I know the second entity (hence the cadr above) is the circle.
But now the question, I don't have the trans. matrix to get the point in WCS. Any ideas how this could be returned transformed or any ideas of a different approach?
Thank you.