Microstation Connect batch creation of Workspaces and worksets

Hello,

I have a network structure with projects (+/- 700) and I want to batch create workspaces and workset for every one of them.
Is this possible to achieve ?
And of course, if it is, how can this be made ?

Thanks for any hint.

Regards,

Tony Ponton

Parents
  • How difficult this would be depends on your file naming/structured. My project name and folders are the same name. That makes it simple for me because the only difference between most of my Workspace config files and Workset config files is the file name and location.
  • Hello David,
    the stucture is :
    NetworkDrive:\Client_Number_and_Name\contract_Name_and_Number
    example:
    K:\548_TheNameOfTheClient\01_The_First_ProjectName
    K:\548_TheNameOfTheClient\02_Another_Project
    ...
    K:\548_TheNameOfTheClient\57_Yet_Another_Project

    I can manage to :
    extract all paths from a Windows Powershell script en then create the workset structure (copy the file structure) and create the workset cfg file (with adapted _USTN_WORKSETDGNS variable) ... the "tricky" part is the "creation" of the workset.dgnws file (do i need to create this file ?)
    And then the assignment of the individual dgn's (already in the structure) to the relevant Project->Workspace...
    Regards,
    Tony
  • I don't know what Bentley recommends but .dgnws will get created by MS of it doesn't exist. Seems there was another post on assignments. I just check assign as I access the files.
  • I had a similar question during the EAP. I couldn't find the thread in the forum, but I copied the reply I got from Bentley at the time.
    It is pasted below.


    You can assign a WorkSet to multiple files using batch process:

    In the Work page, select the desired WorkSet and open a file in that WorkSet.
    Create a command file for batch process.
    Add the key-ins FILE ASSOCIATEWORKSET and FILEDESIGN SAVE SETTINGS to the command file.
    Select the files that you want to assign to the WorkSet.
    Run the batch process.

    To unassign a WorkSet from a file, use the key-in FILE DISASSOCIATEWORKSET. Do not do a save settings, else the WorkSet will again be assigned to the active file.

    Rod Wing
    Senior Systems Analyst

Reply
  • I had a similar question during the EAP. I couldn't find the thread in the forum, but I copied the reply I got from Bentley at the time.
    It is pasted below.


    You can assign a WorkSet to multiple files using batch process:

    In the Work page, select the desired WorkSet and open a file in that WorkSet.
    Create a command file for batch process.
    Add the key-ins FILE ASSOCIATEWORKSET and FILEDESIGN SAVE SETTINGS to the command file.
    Select the files that you want to assign to the WorkSet.
    Run the batch process.

    To unassign a WorkSet from a file, use the key-in FILE DISASSOCIATEWORKSET. Do not do a save settings, else the WorkSet will again be assigned to the active file.

    Rod Wing
    Senior Systems Analyst

Children