Run rule in a subassembly

Run rule in a subassembly

sheetal.b
Participant Participant
260 Views
1 Reply
Message 1 of 2

Run rule in a subassembly

sheetal.b
Participant
Participant

I placed a sub-assembly in a main assembly. The sub-assembly to be placed is selected by ilogic rules. So the name of sub-assembly changes every time. I placed constraints on this sub-assembly.

Constraints.AddFlush("", componentA, "Work Plane1", "PART:1", "XY Plane",
                     offset := 0.0, biasPoint1 := Nothing, biasPoint2 := Nothing)

Now, I want to rule a rule in the sub-assembly. But I am getting an error.

iLogicVb.RunRule(componentA,, "Myrule")

 How can I solve this?

0 Likes
261 Views
1 Reply
Reply (1)
Message 2 of 2

JelteDeJong
Mentor
Mentor

try using

iLogicVb.RunRule(componentA, "Myrule")

 Pay attention to the "," that I left away. the 3 argument should be a NamevalueMap not the name of your rule.

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes