.NET

Reply
Mentor
188 Posts
11 Kudos
Registered: ‎01-06-2003
Post 1 of 5
Accepted Solution

addin folder location

204 Views, 4 Replies
05-28-2012 03:26 AM

Hi, Is there any way to return the path to the dll that has been used in Netload the addin application? Dale

Moderator
1,465 Posts
277 Kudos
Registered: ‎04-09-2008
Post 2 of 5

Re: addin folder location

05-28-2012 04:00 AM in reply to: Dale.Bartlett

http://adndevblog.typepad.com/autocad/2012/05/listing-loaded-net-assemblyprogram-in-autocad.html


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

*Expert Elite*
753 Posts
54 Kudos
Registered: ‎02-13-2008
Post 3 of 5

Re: addin folder location

05-29-2012 10:08 AM in reply to: Dale.Bartlett

Or: System.Windows.Forms.Application.StartupPath

Dave O.                                                                  Sig-Logos32.png
Mentor
188 Posts
11 Kudos
Registered: ‎01-06-2003
Post 4 of 5

Re: addin folder location

05-29-2012 09:20 PM in reply to: chiefbraincloud

[System.Windows.Forms.Application.StartupPath] returns the path to acad.exe. That was my first attempt. I have used the previous blog example successfully. Thanks for response. Dale.

*Expert Elite*
753 Posts
54 Kudos
Registered: ‎02-13-2008
Post 5 of 5

Re: addin folder location

05-30-2012 08:29 AM in reply to: Dale.Bartlett

What about ....ExecutablePath? does it also return the ACAD.exe?

 

Sorry, I use VB, and My.Application.Info.DirectoryPath returns the Path to my .dll, not the Acad.exe.  The search I did said that Application.StartupPath was the C# equivalent.  Just thought it would be easier than all the code in the DevBlog.

Dave O.                                                                  Sig-Logos32.png
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!