Thank you!! Wend I open, desactivated reactor work good and after, I can
reset my current document with acadapp.ActiveDocument . But wend I swith to
first drawing, the reactor work correcly but I can't reset my active
document with acadapp.ActiveDocument, it give me always the start document,
not the document were I go!! 😞
"Norman Yuan" a écrit dans le message de news:
5391624@discussion.autodesk.com...
So, you use COM interop through Acad's COM Object Model, in which, you may
look at AcadApplication object's Begin/EndOpen, or AcadDocument object's
Activate/Deactivate event, or other events that may provide some help to
your need.
"Martin Langevin" wrote in message
news:5391465@discussion.autodesk.com...
No, I don't use ObjectARX.NET, just in VB.net
And lol your right, not ALT+TAB but CTRL+TAB to swith in MDI document 😉
But I would like to have this reactor in VB 😞
"Norman Yuan" a écrit dans le message de news:
5389096@discussion.autodesk.com...
If you are talking ObjectARX .NET API, then look into:
Autodesk.AutoCAD.ApplicationServices.DocumentCollection class' event:
DocumentActivated
DocumentActivationChanged
DocumentBecameCurrent
Most likely, you would handle DocumentBecameCurrent event.
BTW, it is Ctrl+Tab to switch opened drawing inside Acad if multiple
drawings are opened, not Alt+Tab, unless you mean multple sessions of Acad.
"Martin Langevin" wrote in message
news:5387583@discussion.autodesk.com...
Hello everyone, I would like to provide to know when a user changes drawing,
would be with keys ALT+TAB or by the menu window. I looked in the reactors
of the application and of the document and I do not find anything good.
There is to you it a way of being able to intercept this event.
Thank you!!