General InformationThis opening ID is invoked to get list of custom attributes for each family in logical to physical command. This rule will be triggered once for each family at start of “Logical to physical Assistant” command. This opening ID is used to provide information about:
Input ObjectsInput objects must be of the following types:
Context Object Parameters
Sample
let iList(List)
let oAttrList(List)
let oAttrType(List)
let oAttrAssocAttr(List)
let sFamilyName(STRING)
let sDescriptionInst(String)
let sDescriptionRef(String)
let sMessage (STRING)
set sFamilyName = Parameters.GetAttributeString("FamilyID")
if (sFamilyName == "Equipment")
{
oAttrList.Append("Test EQT Attr1")
oAttrList.Append("Test EQT Attr2")
oAttrType.Append("String")
oAttrType.Append("String")
oAttrAssocAttr.Append("")
oAttrAssocAttr.Append("Test EQT Attr1")
}
else if (sFamilyName == "Cable")
{
oAttrList.Append("Test Cable Attr1")
oAttrList.Append("Test Cable Attr2")
oAttrType.Append("String")
oAttrType.Append("String")
oAttrAssocAttr.Append("")
oAttrAssocAttr.Append("Test Cable Attr1")
}
Parameters.SetAttributeObject("ListCustomAttributeNames", oAttrList )
Parameters.SetAttributeObject("ListCustomAttributeTypes", oAttrType )
Parameters.SetAttributeObject("ListAssociatedAttributes", oAttrAssocAttr )
Notify("Custom attributes added for family #", sFamilyName)
| |||||||||||||||||||||||||||||||||||