Take a look in the API Help Files, there are the following properties:
FlatBendResult.kFactor Property
UnfoldMethod.kFactor Property
I hope it helps,
Philippe.
Hi,
I have the same question I have created the ilogi lines shown below, but are unfinish any help?:
Sub oKFactor()
doc = ThisDoc.Document
Dim aOa As String
oSDef = doc.ComponentDefinition
For Each oEachMethod In oSDef.UnfoldMethods
If oEachMethod.UnfoldMethodType = UnfoldMethodTypeEnum.kLinearUnfoldMethod Then
Select Case iProperties.Value("Project", "Material")
Case "ALUMINIUM"
oEachMethod.kFactor = "0.50"
Case "MILD/ST"
oEachMethod.kFactor = "0.44"
Case "ST/ST (304L)"
oEachMethod.kFactor = "0.36"
Case Else
End Select
End If
Next
kFactor = SheetMetal.ActiveKFactor
MessageBox.Show(kFactor , "K Factor")
End Sub
The iLogic rule should work, I just tested it here if I set the document material to one of that in your Select Case, it does update the kFactor's value.
Can't find what you're looking for? Ask the community or share your knowledge.