[CONNECT Update 14 VBA] Issue with CreateDesignFile Method

Hi, Im relatively new to Microstation VBA and this is my first time posting here.   My company recently upgraded from Microstation V8i (Select Series 4) to Microstation Connect Edition (Update 14).  Code that includes the CreateDesignFile Method will run in V8i but returns a "File not found" error message in Microstation Connect.  Any ideas as to what could be causing this error?

Regards

Tim

CreateDesignFile "Seed3d", "C:\Microstation Files\Test", False

Parents Reply Children
  • Our V8i projects were setup with a seed file called "Seed3d" that they put on our c drive's with the Config variable containing the local path

    There are a number of MicroStation configuration variables concerning seed files.

    The two that are relevant to you are:

    • MS_SEEDFILES Search path(s) for all seed files
    • MS_DESIGNSEED Default seed file

    In a configuration file your CAD admin can write something like this:

    MS_SEEDFILES  = //NetworkServer/Common Files/MicroStation/Seed Files/
    MS_DESIGNSEED = seedsishenlocal3d.dgn 

    You can write VBA code to get those configuration variable values...

    Dim seedFileFolder As String
    seedFileFolder = ActiveWorkspace.ConfigurationVariableValue("MS_SEEDFILES")
    Dim defaultSeedFile As String
    defaultSeedFile = ActiveWorkspace.ConfigurationVariableValue("MS_DESIGNSEED")
    Dim seedFileName As String
    seedFileName = seedFileFolder & seedFileName

    Now you don't have to hard-wire your seed file name or location into your code.

     
    Regards, Jon Summers
    LA Solutions