• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Distinguished Contributor
    Posts: 118
    Registered: ‎01-06-2003
    Accepted Solution

    addin folder location

    134 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

    Please use plain text.
    Moderator
    Alexander.Rivilis
    Posts: 1,168
    Registered: ‎04-09-2008

    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

    Please use plain text.
    *Expert Elite*
    chiefbraincloud
    Posts: 736
    Registered: ‎02-13-2008

    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
    Please use plain text.
    Distinguished Contributor
    Posts: 118
    Registered: ‎01-06-2003

    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.

    Please use plain text.
    *Expert Elite*
    chiefbraincloud
    Posts: 736
    Registered: ‎02-13-2008

    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
    Please use plain text.