Call the event handler from Initialize().
Note that you 'll have to assign appropriate values to the parameters of the
DocumentCurrent function yourself.
At least, that's how I do this.
Hope this helps & is correct.
wrote in message news:6342109@discussion.autodesk.com...
I want to perform DocumentBecameCurrent event when initilise the dll.
I Implimentd the code like bellow but its not fired.
public void Initialize()
{
Autodesk.AutoCAD.ApplicationServices.DocumentCollection docCollect=null;
docCollect.DocumentBecameCurrent += new
DocumentCollectionEventHandler(DocumentCurrent);
}
private static void DocumentCurrent(object sender,
DocumentCollectionEventArgs e)
{
MessageBox.Show("Document activated.");
}
I need support to perform the same . waiting for replay.