Roll Line
This action rule invokes when you generate the roll line.
Input Objects
Input objects must be of the following type:
- MfgFeature The RollLine feature.
- ManufacturedItem The MfgItem.
Example
The following example describes the action rule to roll line naming.
let MFGRollLine(DELStrMfgRollLine)
let uTextValue(String)
let uFeatName(String)
let CommaSep(String)
let uAngle(ANGLE)
let uRadius(LENGTH)
let bOrientation(Boolean)
let uOrientationString(String)
let mfgItem(ElementaryEndItem)
let mfgProcItem(MfgProcessOccurrence)
let procOutput(VPMReference)
let SDDDesignProduct(VPMReference)
let DesignProfile(Structure_Profile)
set MFGRollLine = Parameters.GetAttributeObject("MfgFeature")
set mfgProcItem = Parameters.GetAttributeObject("ManufacturedItem")
set CommaSep = ","
set uTextValue = ""
set uFeatName = ""
if (NULL <> mfgProcItem and NULL <> MFGRollLine)
{
set mfgItem = mfgProcItem.Reference
set procOutput = mfgItem.GetProcessOutput()
set SDDDesignProduct = procOutput.GetStructureDesignObject()
set DesignProfile = SDDDesignProduct
if( NULL <> DesignProfile)
{
set uFeatName = MFGRollLine.Name
set uRadius = MFGRollLine.Radius
set uAngle = MFGRollLine.Angle
set uOrientation = MFGRollLine.Orientation
if(bOrientation)
set uOrientationString = "This Side"
else
set uOrientationString = "Other Side"
set uTextValue = "R=" + uRadius + CommaSep + "A=" + uAngle + CommaSep + uOrientationString
Parameters.SetAttributeString("MfgText", uTextValue)
Parameters.SetAttributeString("MfgFeatName", uFeatName)
}
}