.NET

Reply
Distinguished Contributor
Dale.Bartlett
Posts: 151
Registered: ‎01-06-2003
Message 1 of 5 (195 Views)
Accepted Solution

addin folder location

195 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
Alexander.Rivilis
Posts: 1,449
Registered: ‎04-09-2008
Message 2 of 5 (192 Views)

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*
chiefbraincloud
Posts: 753
Registered: ‎02-13-2008
Message 3 of 5 (155 Views)

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
Distinguished Contributor
Dale.Bartlett
Posts: 151
Registered: ‎01-06-2003
Message 4 of 5 (136 Views)

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*
chiefbraincloud
Posts: 753
Registered: ‎02-13-2008
Message 5 of 5 (127 Views)

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 Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!