You can use the Weld business rules to create an attachment line or not
depending on its context. However, there is a need to control the generation of the
alignment line during Update IPM.
Through the weld
business rule, enable or disable the Alignment line creation, its position, length, and offset
from the extremities of the attachment line as required.
Define and specify the parameters of the alignment line as required in the weld business
rule in Data Setup. You can enable or disable the creation of the
alignment line in the weld business rule.
If you enable alignment line creation and specify the parameters in the rule, run
Update IPM. The alignment line creates with the parameters you
specify in the weld business rule.
Define the parameters for creating alignment lines according to the requirements.
- Boolean (true/false) for creating alignment lines.
- Alignment line position:
- 0 - Both Extremities
- 1 - Start Extremity only
- 2 - End Extremity only
- 3 - Center Extremity only.
- Offset value from attachment line extremities.
- Length of the alignment line.
Apply the values specified in the preceding parameters to the alignment line when running
Update IPM.
For more information, you can refer to the following weld rule example with alignment line
parameters.
let fastenProcess(Fasten)
let fastenIPM(VPMReference)
let StrWeldType(String)
let connectedProcess1(ElementaryEndItem)
let connectedProcess2(ElementaryEndItem)
let weldFeatures(List)
let mfgWeld(DELStrMfgWeldLine)
let weldLength(LENGTH)
let bCreateAttachmentLine(Boolean)
let AlignLineFeatParameterList(List)
let bCreateAlignmentLine(Boolean)
let AlignmentModeExtremity(Integer)
let AlignLength(LENGTH)
let AlignOffset(LENGTH)
let IndepentPartAttrList(List)
let IndepentPartAttrListNew(List)
let ProfileWebAttrList1(List)
let ProfileFlangeAttrList1(List)
let ProfileWebAttrList2(List)
let ProfileFlangeAttrList2(List)
let FeatureInfoList_EdgeConnectionPart(List)
let FeatureInfoList_EdgeConnectionPartOther(List)
let FeatureInfoList_SurfaceConnectionPart(List)
set fastenProcess = Parameters.GetAttributeObject("FastenProcess")
if (NULL <> fastenProcess)
{
set fastenIPM = fastenProcess.GetProcessOutput()
if (NULL <> fastenIPM)
{
set weldFeatures = fastenIPM.GetMfgFeatures("DELStrMfgWeldLine")
if (weldFeatures.Size() > 0)
{
set mfgWeld = weldFeatures.GetItem(1)
if (NULL <> mfgWeld)
{
let strMfgBevelType(String)
let strMfgProfileFace(String)
let lenMfgBevelRootGapValue(LENGTH)
let strMfgBevelUDFSide(String)
let lenMfgMarginValue(LENGTH)
let nMfgPropagationModeValue(Integer)
// Initialize variable
strMfgBevelType = "Single_Bevel"
strMfgProfileFace = ""
lenMfgBevelRootGapValue = 1.5mm
strMfgBevelUDFSide = "Molded"
lenMfgMarginValue = 10mm
nMfgPropagationModeValue = 0
SetDSTFeatureAttributeIntoList(IndepentPartAttrList, "BevelType", strMfgBevelType)
SetDSTFeatureAttributeIntoList(IndepentPartAttrList, "ProfileFace", strMfgProfileFace)
SetDSTFeatureAttributeIntoList(IndepentPartAttrList, "Root_Gap", lenMfgBevelRootGapValue)
SetDSTFeatureAttributeIntoList(IndepentPartAttrList, "EdgePrepSide", strMfgBevelUDFSide)
SetDSTFeatureAttributeIntoList(IndepentPartAttrList, "MarginLength", lenMfgMarginValue)
SetDSTFeatureAttributeIntoList(IndepentPartAttrList, "PropagationMode", nMfgPropagationModeValue)
strMfgBevelType = "Double_Bevel"
strMfgProfileFace = "Web"
SetDSTFeatureAttributeIntoList(ProfileWebAttrList1, "BevelType", strMfgBevelType)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList1, "ProfileFace", strMfgProfileFace)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList1, "Root_Gap", lenMfgBevelRootGapValue)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList1, "EdgePrepSide", strMfgBevelUDFSide)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList1, "MarginLength", lenMfgMarginValue)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList1, "PropagationMode", nMfgPropagationModeValue)
strMfgBevelType = "Double_Bevel"
strMfgProfileFace = "Flange"
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList1, "BevelType", strMfgBevelType)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList1, "ProfileFace", strMfgProfileFace)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList1, "Root_Gap", lenMfgBevelRootGapValue)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList1, "EdgePrepSide", strMfgBevelUDFSide)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList1, "MarginLength", lenMfgMarginValue)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList1, "PropagationMode", nMfgPropagationModeValue)
FeatureInfoList_EdgeConnectionPartOther.Append(IndepentPartAttrList)
FeatureInfoList_EdgeConnectionPartOther.Append(ProfileWebAttrList1)
FeatureInfoList_EdgeConnectionPartOther.Append(ProfileFlangeAttrList1)
strMfgBevelType = "Single_Bevel"
strMfgProfileFace = "Web"
SetDSTFeatureAttributeIntoList(ProfileWebAttrList2, "BevelType", strMfgBevelType)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList2, "ProfileFace", strMfgProfileFace)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList2, "Root_Gap", lenMfgBevelRootGapValue)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList2, "EdgePrepSide", strMfgBevelUDFSide)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList2, "MarginLength", lenMfgMarginValue)
SetDSTFeatureAttributeIntoList(ProfileWebAttrList2, "PropagationMode", nMfgPropagationModeValue)
strMfgBevelType = "Single_Bevel"
strMfgProfileFace = "Flange"
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList2, "BevelType", strMfgBevelType)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList2, "ProfileFace", strMfgProfileFace)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList2, "Root_Gap", lenMfgBevelRootGapValue)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList2, "EdgePrepSide", strMfgBevelUDFSide)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList2, "MarginLength", lenMfgMarginValue)
SetDSTFeatureAttributeIntoList(ProfileFlangeAttrList2, "PropagationMode", nMfgPropagationModeValue)
FeatureInfoList_EdgeConnectionPart.Append(IndepentPartAttrList)
FeatureInfoList_EdgeConnectionPart.Append(ProfileWebAttrList2)
FeatureInfoList_EdgeConnectionPart.Append(ProfileFlangeAttrList2)
strMfgBevelType = "Single_Bevel"
strMfgProfileFace = ""
lenMfgBevelRootGapValue = 1.5mm
strMfgBevelUDFSide = "Molded"
lenMfgMarginValue = 10mm
nMfgPropagationModeValue = 2
SetDSTFeatureAttributeIntoList(IndepentPartAttrListNew, "BevelType", strMfgBevelType)
SetDSTFeatureAttributeIntoList(IndepentPartAttrListNew, "ProfileFace", strMfgProfileFace)
SetDSTFeatureAttributeIntoList(IndepentPartAttrListNew, "Root_Gap", lenMfgBevelRootGapValue)
SetDSTFeatureAttributeIntoList(IndepentPartAttrListNew, "EdgePrepSide", strMfgBevelUDFSide)
SetDSTFeatureAttributeIntoList(IndepentPartAttrListNew, "MarginLength", lenMfgMarginValue)
SetDSTFeatureAttributeIntoList(IndepentPartAttrListNew, "PropagationMode", nMfgPropagationModeValue)
FeatureInfoList_SurfaceConnectionPart.Append(IndepentPartAttrListNew)
set bCreateAlignmentLine = true
if (bCreateAlignmentLine == true)
{
set AlignOffset = 300mm
set AlignLength = 300mm
set AlignmentModeExtremity = 2
AlignLineFeatParameterList.Append(bCreateAlignmentLine)
AlignLineFeatParameterList.Append(AlignmentModeExtremity)
AlignLineFeatParameterList.Append(AlignOffset)
AlignLineFeatParameterList.Append(AlignLength)
}
set weldLength = mfgWeld.WeldLength
if (weldLength > 20mm)
set bCreateAttachmentLine = true
else
set bCreateAttachmentLine = false
}
}
}
}
Parameters.SetAttributeObject("FeatureInfoList_EdgeConnectionPart", FeatureInfoList_EdgeConnectionPart)
Parameters.SetAttributeObject("FeatureInfoList_EdgeConnectionPartOther", FeatureInfoList_EdgeConnectionPartOther)
Parameters.SetAttributeObject("FeatureInfoList_SurfaceConnectionPart", FeatureInfoList_SurfaceConnectionPart)
Parameters.SetAttributeBoolean("MarkingLinesForConnection", bCreateAttachmentLine)
Parameters.SetAttributeObject("AlignmentLineForConnection", AlignLineFeatParameterList)
Regarding the creation of the alignment line:
- For Butt panel, plate and welds, the alignment line creates but the attachment line
does not create.
- For all other welds, the alignment line creates only if the attachment line is
present.
The Alignment line creates through the Weld Business Rule based on the two conditions
above.
Refer to the following three use cases: