Weld Business Rules with Attachment Line

You can add conditions for the creation of the Attachment and Alignment Line based on a Weld Business Rule.

This page discusses:

Weld Business Rule for Attachment and Alignment Line

This provides the openness in the Weld Business Rule to create an attachment line based on user-defined conditions.

Use the Weld Rule to determine whether the Attachment Line is created or not. The Weld Rule is defined in the Data Setup and, based on the output from it, the attachment line is then created.

Note: Define the Weld Business Rule in Data setup > Structure Fabrication Resource > Rules Catalog > Weld > WeldRule > StrMfgWeldRule.

Weld Rule

set fastenIPM = fastenProc.GetProcessOutput()
if (NULL <> fastenIPM)
{ 
	set weldFeatures = fastenIPM.GetMfgFeatures("DELStrMfgWeldLine")
	if (weldFeatures.Size()>0)
        {
		setmfgWeld = weldFeatures.GetItem(1)
		if (NULL <> mfgWeld)
		{ 
				set weldLength = mfgWeld.WeldLength
				if (weldLength > 50mm)
				set bCreateAttachmentLine = true
				else
						set bCreateAttachmentLine = false
                  set iAttachmentLineMarkingSide= 2
		}
	}
}
Parameters.SetAttributeBoolean("MarkingLinesForConnection", bCreateAttachementLine) Parameters.SetAttributeInteger("AttachmentLineMarkingSide",iAttachmentLineMarkingSide)

Define Attributes: MarkingLinesForConnection

You can use attributes to define the weld rule.

Define the Weld Rule using the following example:

The Attachment line creates based on the Boolean return value of the MarkingLinesForConnection attribute defined in the weld rule.

The are three cases:

  1. Update IPM: When you execute this command, for the fasten process:
    • The corresponding Weld line creates.
    • The Weld Business Rule runs.

      If return value is True for MarkingLinesForConnection attribute, the Attachment line and Alignment line are created. If the return value is False, they are not.

  2. Edit Features: When you add a connection in the Connection tab of the Edit Features dialog box for the Assembly level then:
    1. The corresponding Weld line creates.
    2. The Attachment line and Alignment line are complete.

      If the MarkingLinesForConnection attribute is False, they are not created.

  3. Synchronization:: During Synchronization, after you click Compute, if there is a Weld Line creation:
    1. The Status and Action columns for the Attachment, Alignment, and Weld lines, appear as New and Create respectively.
    2. After clicking Synchronize, the Weld line creates.
    3. During the creation of the Attachment line, the Weld Business Rule executes. According to the value of the MarkingLinesForConnection attribute retrieved from the Weld Business Rule, Attachment line creation occurs between connected processes in 3D.

      If the return value is True, the Attachment line creates. If the return value is False, the Attachment line does not create.

Define Attributes: AttachmentLineMarkingSide

You can use attributes to define the weld rule.

The marking side is defined based on the return value of the AttachmentLineMarkingSide attribute defined in the weld rule.

  1. Value 0 (default value) generates the attachment line on the Molded Side.
  2. Value 1 generates the attachment line on the Thick Side.
  3. Value 2 generates the attachment line on the side nearest to the stiffener support.

Controlling the Alignment Line Generation during Update IPM

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.

  1. Boolean (true/false) for creating alignment lines.
  2. Alignment line position:
    • 0 - Both Extremities
    • 1 - Start Extremity only
    • 2 - End Extremity only
    • 3 - Center Extremity only.
  3. Offset value from attachment line extremities.
  4. 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:

  • Update IPM: When executing this command, for the fasten process, the Weld Business Rule runs. If the return value is True for the first element of the list for the AlignmentLineCreation attribute, the alignment line creates. If the return value is False, it does not create.
  • Edit Feature: For an Assembly level in the Connection tab, if adding a new connection, then run the Weld Business Rule. If a return value is True for the first element of the list for the AlignmentLineCreation attribute, the alignment line creates. If the return value is False, it does not.
  • Synchronization: During Synchronization and after clicking Compute, if there is a Weld Line creation:
    • In Status and Action columns for Alignment and Attachment lines, New and Create display.
    • During the creation of the alignment line, execute the Weld Business Rule. If the return value of the first element of the list for AlignmentLineCreation attribute is True, the alignment line creates. If the return value is False, it does not.

    If you do not define the AlignmentLineCreation attribute, then an alignment line is created by default.

Other Weld Types Support

You can use the attachment line for the pilot part and joined part alignment. In the case of the Stiffener of a free edge, you can create an attachment line between the attached parts.

You can create this line between stiffener on the free edge and Panel/Plate. This supports the attachment line creation on the butt-profile-panel and butt-profile-plate weld type. In the weld type, the stiffener on the free edge is the pilot part and the panel/plate is the joined part.

The Attachment Line is created on Panel/Plate for the following conditions. This provides the correct location of the attachment line.

Without this, an offset attachment line is created. It is if the Weld type is the Butt-Profile-Panel and the Butt-Profile-Plate; or if the Stiffener on the free edge can be a Pilot part and the Panel/Plate can be a joined part.

Edit this attachment line through the Attachment Line tab in Edit Features.