How to Cleanup OPM Schemas, while upgrading dgn



Applies To 
Product(s):OpenPlant Modeler
Version(s):

CONNECT Edition 10.11.++

Environment: Windows 10/11 (64-bit)
Area: Schemas
Subarea: Upgrade
Original Author:Nikitesh Kawana, Bentley Global Technical Support


Background

When upgrading project, some dgn file may have bad schemas due to which there may be error  

Steps to Accomplish

  1. Install Microstation v8i 08.11.09.863
  2. Open dgn
  3. Go to Key-in and load ECX file using mdl load Bentley.ECXAttributesAddIn.dll
  4. Check in message centre if loaded correctly



  5. To know which schemas are embedded in dgn use KEY-IN – ecx schemas list

    In this case following schemas are found

    Found "DgnCustomItemTypes_DWG__x0020__Attribute__x0020__Definitions.01.00" in the file.

    Found "DgnCustomAttributes.01.00" in the file.

    Found "EditorCustomAttributes.01.03" in the file.

    Found "Bentley_Standard_CustomAttributes.01.13" in the file.

    1. Make these Schemas external using KEY-IN ecx instance makeallexternal followed by Schemas found as shown below

    ecx instance makeallexternal DgnCustomItemTypes_DWG__x0020__Attribute__x0020__Definitions.01.00

    ecx instance makeallexternal DgnCustomAttributes.01.00

    ecx instance makeallexternal EditorCustomAttributes.01.03

    ecx instance makeallexternal Bentley_Standard_CustomAttributes.01.13



    1. Delete Schemas using KEY-IN ecx instance delete as shown below

    ecx schema delete

    ecx schema delete DgnCustomItemTypes_DWG__x0020__Attribute__x0020__Definitions.01.00

    ecx instance delete DgnCustomAttributes.01.00

    ecx instance delete EditorCustomAttributes.01.03

    ecx instance delete Bentley_Standard_CustomAttributes.01.13

  6. Re run KEY-IN ecx schema list, and check if any schema is still remaining, if not then its good to move ahead
  7. Save





See Also 

communities.bentley.com/.../how-to-add-the-reattach-instrument-bubble-and-annotation-option-in-the-openplant-pid