How to extend cells for Parametric Instruments
10.10.xx.xx
The standard visual display can be extended with additional cells for Parametric Instrument components.
4. Custom Attributes
a. 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>
b. 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>
c. Add Category and Property Custom Attribute. These 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>
d. Extended Cell Settings:
Property setting
After placement, use the Property Pane
References: