I've fought with this for several hours and I'm getting nowhere. Not finding any examples or help entries that help.
I'm playing with a routine that will automatically align a block (which shows the number of wires in a conduit) when the block is inserted on top of a a line, arc, circle, etc. The line option was easy, as was finding the arc's tangent angle at the block's insertion point, but for arcs, etc., I'm wanting to also automatically shift the block toward the center point of the arc to make the appearance more balanced. To that end I'm trying to use Jurg Menzi's VxGetBlockInters function, available in the Free Stuff section at
http://www.menziengineering.ch/, which returns all intersection points between a Block and an object. The function expects a Block object and an Object, both being vla-objects.
I'm using the following to insert the block:
(setq symbol (strcase "t3_2wn4w"))
(setq ds (getvar "dimscale"))
(prompt "\nSelect insertion point... ")
(command "_insert" symbol "PS" ds pause ds ds pause)
(setq ent_ins (entget (entlast)))
What I'm not finding is a way to convert ent_ins to a block vla-object that VxGetBlockInters will accept. If anyone can point me in the right direction I'd appreciate it.
Martin