.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OnLoad Event

2 REPLIES 2
Reply
Message 1 of 3
wesbird
305 Views, 2 Replies

OnLoad Event

HI,
I am looking for a DLL OnLoad event. I plan to do some environment setup, like menu, environment variable ...
but I can not find this event.
Also I am looking a way to set up global varible in .Net. I try use static which not work for my case. for each command I am going to run in AutoCAD, 1st thing I would do is, query database, get all setting, put in a class which I can access anywhere in my code. I tried Dynamic Properties, but I don't think it will work.
Thank you in advance.



Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: wesbird

You need to have a class in your assembly implement the
IExtensionApplication interface.
--
Bobby C. Jones
http://www.acadx.com


wrote in message news:5004118@discussion.autodesk.com...
HI,
I am looking for a DLL OnLoad event. I plan to do some environment setup,
like menu, environment variable ...
but I can not find this event.
Also I am looking a way to set up global varible in .Net. I try use static
which not work for my case. for each command I am going to run in AutoCAD,
1st thing I would do is, query database, get all setting, put in a class
which I can access anywhere in my code. I tried Dynamic Properties, but I
don't think it will work.
Thank you in advance.



Wes
Message 3 of 3
wesbird
in reply to: wesbird

thank you, I will try it.
Windows 10 64 bit, AutoCAD (ACA, Map) 2023

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost