To Extend cells for Parametric Instruments
The standard visual display can be extended with additional cells for Parametric Instrument components.
Below are the parts that constitute an extended cell.
-
Cells
- Add new cells to the cell library or identify existing cells.
- Determine the origin of the cell. It is important in determining the offset.
- Place the origin at the center of the cell elements.
-
Class
- Determine which Instrument class to use.
- Use the INSTRUMENT_PARAMETRIC class.
-
Properties
- Identify existing or define new properties on Instrument class.
- Define “boolean” type properties.
-
Custom Attributes
-
Add the
“ExtendedCellPropertyNames” custom attribute on
the class to define which properties to use.
<ExtendedCellPropertyNames xmlns="pid.01.08"> <PropertyNames> <string>SAFETY_CRITICAL1</string> <string>SAFETY_CRITICAL2</string> <string>SAFETY_CRITICAL3</string> </PropertyNames> </ExtendedCellPropertyNames> -
Add the
“ExtendedPropertyCell” custom attribute on the
defined properties.
<ExtendedPropertyCell xmlns="pid.01.08"> <CellName>Triangle</CellName> <CellLibrary>Instruments.cel</CellLibrary> <XOffset>0.1</XOffset> <XDir>1</XDir> <YOffset>-0.1</YOffset> <YDir>1</YDir> </ExtendedPropertyCell> -
Add
Category
and
Property Custom Attribute which are used
for the property grid display and defaults.
<Category xmlns="EditorCustomAttributes.01.03"> <Standard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /> <Name>SAFETY_CRITICAL_SECTION</Name> <DisplayLabel>Safety Critical Setting</DisplayLabel> <Description xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" /> <Priority>3750</Priority> <Expand>True</Expand> </Category> <BMF_PROP_CUSTOM_ATTRIBUTES xmlns="bmf.01.08"> <DefaultValue>False</DefaultValue> <IsGraphical>True</IsGraphical> </BMF_PROP_CUSTOM_ATTRIBUTES> -
The following are Extended Cell Settings:
Setting Description Cell Library
Cell Name
X Offset
X Direction
Y Offset From Cell Origin
Y Direction From Cell Origin
Property Setting After placement, use the Property Pane.
-
Add the
“ExtendedCellPropertyNames” custom attribute on
the class to define which properties to use.