Path name variable?

Discussion in 'Microstation' started by Wal, Aug 18, 2003.

  1. Wal

    Wal Guest

    Can anyone tell me the name of the config variable that points to the
    current file path?

    Dave Dennis
     
    Wal, Aug 18, 2003
    #1
  2. Wal

    Dave Preston Guest

    I don't think there is one that specifically returns the path, but _DGNFILE
    returns the file name including the path. With a simple MS Basic macro you
    can get the path :-

    sub main
    Dim MyPath as string
    MyPath = fileparse$(MbeGetConfigvar ("_DGNFILE"),2)
    mbemessagebox MyPath
    end sub


    --

    Regards
    Dave Preston


    www.cadesignservices.co.uk
     
    Dave Preston, Aug 18, 2003
    #2
  3. If you set a config variable to _DGNDIR it looks in the directory where your
    active file is.

    I have the following in my .ucf


    MS_IMAGE > $(_DGNDIR)
    MS_IMAGEOUT = $(_DGNDIR)/bilder/
    MS_RENDERLOG = $(_DGNDIR)/bilder/render.log
    MS_RFDIR > $(_DGNDIR)/snitt/
    MS_RFDIR > $(_DGNDIR)/../snitt/

    hth
     
    Thomas Voghera, Aug 18, 2003
    #3
  4. Wal

    Wal Guest

    Yes thats it thanks.
     
    Wal, Aug 19, 2003
    #4
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.