AutoCAD C# API Switch drawing event

AutoCAD C# API Switch drawing event

Anonymous
Not applicable
1,012 Views
2 Replies
Message 1 of 3

AutoCAD C# API Switch drawing event

Anonymous
Not applicable

Hello Guys,

 

 I am working on an application, where based on the template I am fetching data from database.

Now if the user open multiple drawings then if the user click on the tabs to swtich between templates how do it trigger an event to fetch data relevant to the current open drawing.

 

Thanks.

0 Likes
1,013 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant

Hi

 

You should have a look at the DocumentCollection events: DocuementActivated, DocumentToBeActivated, DocumentToBeDeactivated.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3

SanjoyNath
Advocate
Advocate

Dear Experts,

 

AdvanceSteel runs over Autocad. And Advance Steel dont have Document Collections (DocuementCollection) object.

When i call the Autocads DocuementCollection that dont load all features (Even the document is prepared with Advance Steel on Autocad and the file is dwg) If i open the same file with manual open then i get everything there

 

Why

Sanjoy Nath
BIM Manager And Digital Lead (Structures Online)
BOOST, AR , VR ,EPM,IFC API,PDF API , CAD API ,Revit API , Advance Steel API
Founder of Geometrifying Trigonometry(C)
0 Likes