Author Topic: Select Block in XREF  (Read 2102 times)

0 Members and 1 Guest are viewing this topic.

sinc

  • Guest
Select Block in XREF
« on: December 31, 2008, 03:19:19 PM »
How do you have the user select a block in an XREF?

I used the Editor.SelectNestedEntity() method to get an object, but it ends up returning the ID of the entity inside the block definition.  For example, if the user picks on a line that's part of a block, SelectNestedEntiity() returns the Line.

But the Line it returns appears to be the one in the block definition - i.e., the BlockId and OwnerId for the line are the BlockTableRecord where the block is defined.  How do I determine which BlockReference the user picked?  I.e., when the user picks block "FOO", I'm trying to figure out if it was the instance of "FOO" inserted at (x1, y1), or the one at (x2, y2), or the one at (x3, y3), etc.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Select Block in XREF
« Reply #1 on: December 31, 2008, 05:24:50 PM »

sinc

  • Guest
Re: Select Block in XREF
« Reply #2 on: December 31, 2008, 07:51:45 PM »
Thanks, Jeff.  I was looking everywhere except for the prompt result.  I even remember seeing that thread, but had forgotten about it.