Applies To
| |
Product(s):
|
OpenPlant PID
|
Version(s):
|
08.11.10.XXX & Higher
|
Environment:
|
Windows 7/8 (64 bit)
|
Area:
|
Customization
|
Subarea:
| Custom Component |
Original Author:
|
Nikhil Salunkhe, Bentley Product Advantage Group
|
Background
In OpenPlant PID, sometimes user wanted to create new custom border and map custom property for their project need. In below Wiki article, we have defined the steps on how to create Custom border and Mapping of custom property.
- Add New Border Class
- Create new Border in Miscellaneous cell library
- Add new property to the custom border
- Add Tag sets to the Custom Border
- Map added property to the Database
Step to Accomplish
- Add New Border Class
- Launch Bentley Class editor.
- Open OpenPlant_PID.01.07.ecschema.xml schema and Supplement OpenPlant_PID_Supplemental_Imperial.01.07.ecschema.xml schema
- Expand Classes, Go to Border Class , right click, 'Add Derived Class' and fill below data
- Right click on new Border 'METRIC_BORDER' class , Add custom attribute, Select Schematic CAD Custom Attribute and see below image with highlighted steps.
- Go to Metric Border List, right click on Items, click on 'Add elements', fill below data and save all the changes.
- Create New Border in Miscellaneous cell library
- Open Miscellaneous.cel, Go to Tools , navigate to Cells and then define cell origin
- Place the cell origin in lower left corner of sheet and Select all the elements in title block
- Go to Elements, navigate to Cells, Go to 'File', click on 'Attach file' then Select Miscellaneous.cel
- Create new border sheet and fill below data [ MyBorderSheet ]
- Launch OPPID and see title sheets.
- Add new property to the custom border
- Launch Bentley Class editor
- Open OpenPlant_PID.01.07.ecschema.xml schema and Supplement OpenPlant_PID_Supplemental_Imperial.01.07.ecschema.xml schema
- Expand the Classes node, Search for PID_DOCUMENT , Click on 'Add New Property' (PID CODE), Add 'Category and Hide property' Custom attributes and fill below data.
- Save all changes
-
Launch OpenPlant PID and notice PID_CODE as new property.
- Add Tag sets to the Custom Border
- Launch OPPID, Open Miscellaneous.cel, Go to Elements, navigate to Tags, select 'Define', Add PID_CODE as tag set and Click Ok
- Again, go to Elements, navigate to cells, Select ‘MyBorderSheet’, right click and select 'Open for editing'
- Go to Tools, navigate to 'Text', then go to 'Tags' and Select 'Attach tags'
- Attach PID_CODE as tag set in Title sheet
- Map added property to the Database
- Go to Project Administrator, navigate to Sample Metric, go to 'Database', click on 'Edit Tables'
- Navigate to DOC_REG, click on 'Edit', go to 'Table design' and add PID_CODE Column in DOC_REG
- Close all dialog boxes.
- Open Class editor, go to Database Mapping, browse to PlantProjectSchema.01.07_AutoPlant_PIW_01.07 and click 'OK'
- Go to 'Edit Database Structure', 'Remove' existing database, click on 'Load', fill below data, Define 'Data source' then do 'Test' and click Ok
- Go to PID DOCUMENT, navigate to PID_CODE Property, go to Property mapping and click on 'Edit'
- Select DOC_REG and PID_CODE from list.
- Launch OPPID, open New Metric Project, Fill PID Document and synchronize 'Drawing to Database'
- Launch Data Manager.
- Navigate to Tables and notice DOC_REG has new mapped property PID_CODE
See Also
Comments or Corrections
Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!