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?
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?
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.
Blog: hjalte.nl - github.com
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.
Blog: hjalte.nl - github.com
Can't find what you're looking for? Ask the community or share your knowledge.