_Path Hard-coded references...

Discussion in 'AutoCAD' started by smd, Feb 27, 2004.

  1. smd

    smd Guest

    When I'm installing ACAD-VBA-applications with References to other *.dvb (protected functions) by Clients, there's always a error-messages that ACAD can't find the referenced *.dvb at the initial location. My question is: It seems to me that these references are Path-hardcoded, is there any way to avoid is, My Client(s) do not have the same Directory structures as on my PC ... Thanks for any tips ... SMD
     
    smd, Feb 27, 2004
    #1
  2. Well the obvious is to setup a test station that you resolve the references
    before you release the projects. The next logical is to not reference other
    dvb files. If this type of functionality is actually required, have your
    company invest in a seat of full vb and create DLLs.
     
    Mike Tuersley, Feb 28, 2004
    #2
  3. smd

    allfro Guest

    Yes the Test station is the most obvious.
    Short of that I like to define Autocad a virtual path. That way it
    doesnt matter if its installed in the Temp Folder. Tell your Client(s)
    to put all their dvb's in support.Then
    [vbcode] Dim FileName As String
    FileName = ThisDrawing.Application.Path & "\Support\"[/vbcode]


    --
    allfro - Chaos Coder Extraordinaire

    'site index' (http://www.vbdesign.net/) | please use [ vbcode]
    \"your_code_here\" [/vbcode ] code tags | be nice | 'augi'
    (http://tinyurl.com/ytk37) |'go babelfish' (http://tinyurl.com/2j7df)
     
    allfro, Feb 28, 2004
    #3
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.