DVB path

Discussion in 'AutoCAD' started by andre, Jul 23, 2004.

  1. andre

    andre Guest

    Hi,

    How can I get the path of my current macro? (not the drawing path)

    Thanks
     
    andre, Jul 23, 2004
    #1
  2. andre

    Ed Jobe Guest

    Why? Just curious..
    By "current", do you mean, while the macro is running in acad?
     
    Ed Jobe, Jul 23, 2004
    #2
  3. andre

    Jürg Menzi Guest

    Hi Andre

    Maybe this sniplet can help...
    (requires reference to 'Microsoft Visual Basic for Applications Extensibility')

    Dim VbaApp As VBIDE.VBE
    Dim PrjNme as String

    Set VbaApp = Application.VBE
    PrjNme = VbaApp.VBProjects("YourProjectName").FileName

    Cheers
     
    Jürg Menzi, Jul 24, 2004
    #3
  4. andre

    andre Guest

    Hi Ed,

    Thepath is the location of my DVD file. I'm using a ini file in the same location...

    Andre
     
    andre, Jul 26, 2004
    #4
  5. andre

    andre Guest

    Thanks Jurg, it is just what I need!
     
    andre, Jul 26, 2004
    #5
  6. andre

    Jürg Menzi Guest

    Hi Andre

    Welcome...¦-)

    One extra note, don't forget to
    Set VbaApp = Nothing

    Cheers
     
    Jürg Menzi, Jul 26, 2004
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.