Author Topic: Reading Insertion Point of an XREF via ActiveX  (Read 980 times)

0 Members and 1 Guest are viewing this topic.

MrSmith

  • Newt
  • Posts: 23
Reading Insertion Point of an XREF via ActiveX
« on: October 26, 2023, 04:37:18 PM »
I am opening up an XREF as a DB object and I am trying to see if there is a way to read its current insertion point. There is an origin point in the modelspace, but it doesn't appear to relate to the insertion point as it continues to read '(0 0 0) despite changing the insbase. Am I missing something obvious or can you only read it through the (getvar "insbase")?

Lee Mac

  • Seagull
  • Posts: 12928
  • London, England
Re: Reading Insertion Point of an XREF via ActiveX
« Reply #1 on: October 27, 2023, 10:36:59 AM »
Do you mean the insertion point of the xref in the host drawing in which it is inserted?

MrSmith

  • Newt
  • Posts: 23
Re: Reading Insertion Point of an XREF via ActiveX
« Reply #2 on: October 27, 2023, 11:48:52 AM »
No, the insbase of the XREF drawing. I.e. you could open the XREF drawing and type (getvar "insbase") which is what I currently do via opening it through ACCORECONSOLE. I just find it strange that point can't be read / isn't the Origin point.

Lee Mac

  • Seagull
  • Posts: 12928
  • London, England
Re: Reading Insertion Point of an XREF via ActiveX
« Reply #3 on: October 27, 2023, 12:55:02 PM »
If the drawing is a member of the Documents collection, you could use the getvariable method to obtain the value; however, this method isn't exposed for an ObjectDBX document.

MrSmith

  • Newt
  • Posts: 23
Re: Reading Insertion Point of an XREF via ActiveX
« Reply #4 on: October 27, 2023, 01:43:27 PM »
Thanks Lee. I was afraid of that.