.NET

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

addin folder location

181 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,398
Registered: ‎04-09-2008
Message 2 of 5 (178 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: 752
Registered: ‎02-13-2008
Message 3 of 5 (141 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: 138
Registered: ‎01-06-2003
Message 4 of 5 (122 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: 752
Registered: ‎02-13-2008
Message 5 of 5 (113 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community