Author Topic: What is the Database.XrefComandeered event?  (Read 3036 times)

0 Members and 1 Guest are viewing this topic.

autocart

  • Guest
What is the Database.XrefComandeered event?
« on: November 21, 2011, 07:10:02 AM »
What is the Database.XrefComandeered event?

Maybe I don't speak English well enough (not a native speaker), or do I really not know Autocad enough? Anyway, I can't figure out what the Database.XrefComandeered event should be.

Can somebody please explain it to me? Thx!

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: What is the Database.XrefComandeered event?
« Reply #1 on: November 21, 2011, 07:49:32 AM »

From the arxmgd.chm help
Quote
The event indicates that an object is commandeered, meaning that the objectId of the object is appended to the host drawing's (the drawing being XREFd into) symbol table


Regards
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: What is the Database.XrefComandeered event?
« Reply #2 on: November 21, 2011, 08:25:58 AM »

... also, the ObjectARX SDK has a sample file worth looking at
.. :\ObjectARX 2012\samples\dotNet\EventsWatcher\DatabaseEvents.cs

Regards
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

kaefer

  • Guest
Re: What is the Database.XrefComandeered event?
« Reply #3 on: November 21, 2011, 08:26:54 AM »

From the arxmgd.chm help
Quote
The event indicates that an object is commandeered, meaning that the objectId of the object is appended to the host drawing's (the drawing being XREFd into) symbol table


What's more, from the arxref.chm help
Quote
For example, if a drawing named XREF contains a block named BLK1, then rather than move the entire block into the host drawing, the host drawing's block table simply appends the object ID of BLK1 to its symbol table and changes the new entry's name to "XREF|BLK1".

I still can't imagine how this is supposed to happen. The typical sequence of Database events when attaching Xrefs would be Database Constructed, followed by Begin Attached; and that's that, as evidenced by MgdDbgEvents.

Quote
Regards

autocart

  • Guest
Re: What is the Database.XrefComandeered event?
« Reply #4 on: November 21, 2011, 05:52:00 PM »
What's more, from the arxref.chm help
Quote
For example, if a drawing named XREF contains a block named BLK1, then rather than move the entire block into the host drawing, the host drawing's block table simply appends the object ID of BLK1 to its symbol table and changes the new entry's name to "XREF|BLK1".

Thanks, kaefer, that helped me to understand it better now.
Also thx to you, Kerry, for your effort.

Regards, Stephan

autocart

  • Guest
Re: What is the Database.XrefComandeered event?
« Reply #5 on: November 22, 2011, 01:58:54 AM »
So, just for the record: Is the event triggered before or after the commandeering took place.