General InformationThis opening ID is invoked during the documentation process in Electrical Manufacturing Preparation application to retrieve the dimensioning rules for each object. This business rule is triggered only once before starting automatic dimensioning on flattened data (which happens before generating the drawing). The automatic dimensioning logic while invoking this business rule is to provide an input list of all objects. That is found in the current harness which is being flattened. The components are only of the types mentioned here (devices, supports, protections, splices, and mechanical parts). You are expected to provide output in the form of list of strings - one string per object which is used to create dimension for that object. This opening ID is used to customize the cutting line-offset distance.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
Note:
Both the list (input and output list) must have the same size, if the size of the lists
does not match the output is ignored.
SampleThe following sample illustrates how to set an offset distance of 50 millimeters to the cutting line.
let iListOfElements(List)
let oListOfDimensioningRule(List)
let item (Feature)
let index(Integer)
let sizeElem(Integer)
let str(STRING)
set iListOfElements = Parameters.GetAttributeObject("ListOfComponents")
index = 1
set sizeElem = iListOfElements.Size()
for index while index <= sizeElem
{
item= iListOfElements.GetItem(index)
if("RingTerminal.1" == item.Name)
{
oListOfDimensioningRule.Append("SegmentCnctPt")
}
else if("RingTerminal.2" == item.Name)
{
oListOfDimensioningRule.Append("UserMeasurePt")
}
else
{
oListOfDimensioningRule.Append("")
}
}
Parameters.SetAttributeObject("ListOfDimensioningRules", oListOfDimensioningRule)
| |||||||||||||||||||||||||||