Updating Sub-iAssembly Within an iLogic Assembly

Updating Sub-iAssembly Within an iLogic Assembly

Anonymous
Not applicable
360 Views
1 Reply
Message 1 of 2

Updating Sub-iAssembly Within an iLogic Assembly

Anonymous
Not applicable

I am working on an iLogic driven assembly which contains iAssemblies within it. When 1 of 8 widths is selected, I am using the following statement to change the configuration of the iAssembly. 

 

SyntaxEditor Code Snippet

If Width = 18 Then
iPart.ChangeRow("Assembly:1", "Assembly-01")
ElseIf Width = 24 Then
iPart.ChangeRow("Assembly:1", "Assembly-02")
ElseIf Width = 30 Then
iPart.ChangeRow("Assembly:1", "Assembly-03")
ElseIf Width = 36 Then
iPart.ChangeRow("Assembly:1", "Assembly-04")
ElseIf Width = 42 Then
iPart.ChangeRow("Assembly:1", "Assembly-05")
ElseIf Width = 44 Then
iPart.ChangeRow("Assembly:1", "Assembly-06")
ElseIf Width = 48 Then
iPart.ChangeRow("Assembly:1", "Assembly-07")
ElseIf Width = 60 Then
iPart.ChangeRow("Assembly:1", "Assembly-08")
End If

Each configuration has its own "Width" value so I use the code below to  push the paramater to the parts

 

SyntaxEditor Code Snippet

Parameter("Part1:1", "Width")=Width
Parameter("Part2:1", "Width")=Width

 

The iLogic works, but the sub-iassembly only updates when I open it. I am looking an iLogic statement that will update all of the sub-iAssemblies then update the main Assembly.

I have tried

iLogicVb.UpdateWhenDone = True

and

RuleParametersOutput()
ThisDoc.Document.Rebuild()

at multiple levels and combinations but haven't had any luck.

0 Likes
Accepted solutions (1)
361 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

I was able to make it work using

 

SyntaxEditor Code Snippet

iLogicVb.RunRule("Assembly:1", "Rule1")
0 Likes