I am attempting to use named expressions to control what workflows are available to the user by the Project (PCF) file selected. I am defining three projects; Mill and fill, Rehab and Reconstr. I am using the following expression:
System.String.CompareI(Workspace.GetProjectName () ,"Mill_And_Fill")
System.String.CompareI(Workspace.GetProjectName () ,"Rehabilitation")
System.String.CompareI(Workspace.GetProjectName () ,"Reconstruction")
The idea is for MicroStation to compare the project name. If it matches, then passes a true statement, the workflow/tasks should appear, if false, then they should NOT appear.
The GUI DGNLIB file is defined in the user (UCF) file.
Even though I have these expressions assigned to their respective tasks, they all still appear, no matter what PCF file I select.
Any ideas why this would not be working.
Hi,
because I don't know your workspace configuration in detail, I can guess only, so ... some ideas:
At first, you should check if your dgnlib is configured properly and is visible when any project is opened.
If you defined your expressions as named expressions in Named Expression dialog, the simple check is to open any project and check if you can see the expression in the dialog. If you defined the expression as line expression, I think there is no simple test available.
Also be sure the dgnlib file is defined both in MS_DGNLIBLIST variable and MS_GUIDGNLIBLIST, not only in MS_GUIDGNLIBLIST.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Answer Verified By: cmeuser
Thanks a ton.