Fastener Attributes Management Rule

During fastener generation, this action rule sets attributes on the structure fastener.

This page discusses:

General Information

This action rule is invoked when you click Generate in the Structure Fastener panel.

Arguments

Name Type Description
iPilotPart Feature The pilot part feature
iJoinedPart Feature The joined part feature
iTemplateInstance VPMInstance The fastener template instance
iInterferenceType String Interference type: clash or contact
oListAttributeName List Attribute name
oListAttributeValue List Attribute value

Sample

The following action rule modifies the name of the instantiated fastener according to the pilot and joined parts.

/*
iPilotPart Type = Feature
iJoinedPart Type = Feature
iTemplateInstance Type = VPMInstance
iInterferenceType Type = String
oListAttributeName Type = List
oListAttributeValue Type = List
*/


//Set Fastener Name
let FstReference(VPMReference)
set FstReference = iTemplateInstance.Reference
if (FstReference <> NULL){
	let Name(String)
	set Name = iPilotPart.Name + "_" + iJoinedPart.Name + "_Fst"
	
	if(Name.Length() < 100){
		//In EKL, naming length must be under 100
		FstReference.Name = Name
		iTemplateInstance.Name = Name
	}
}