Having to run rule twice to get subassemblies parameters to update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Still having an issue with my subassembly rule which is being recalled in the top level to update the size of a tool I've designed. Essentially I have a rule in the top level that runs a rule in the sub assembly to allow you to edit the form (which lets you set the size of the tooling in the subassembly). The rule works, and changes the parameters in the part files present in subassembly, but once I've changed and okayed the form the updates don't happen. The only way I've found to get it to update is to run the rule twice, then in the background I will see the subassembly update.
Here is my rule in the Top Level:
iLogicVb.RunRule("Tooling Assembly:1", "Tool Configuration")
Here is my rule in my Subassembly:
iLogicForm.Show("Tooling Configuration") Parameter("BackplateThickness") = Parameter("BackplateThickness") Parameter("Kanga Tooling Template Gasket Side:1", "BackplateThickness") = Parameter("BackplateThickness") Parameter("Kanga Tooling Template:1", "BackplateThickness") = Parameter("BackplateThickness") Parameter("Kanga Tooling Gasket Template:1", "BackplateThickness") = Parameter("BackplateThickness") Parameter("ChevronAngle") = Parameter("ChevronAngle") Parameter("Kanga Tooling Template Gasket Side:1", "ChevronAngle") = Parameter("ChevronAngle") Parameter("Kanga Tooling Template:1", "ChevronAngle") = Parameter("ChevronAngle") Parameter("Kanga Tooling Gasket Template:1", "ChevronAngle") = Parameter("ChevronAngle") Parameter("ProductLength") = Parameter("ProductLength") Parameter("Kanga Tooling Template Gasket Side:1", "ProductLength") = Parameter("ProductLength") Parameter("Kanga Tooling Template:1", "ProductLength") = Parameter("ProductLength") Parameter("Kanga Tooling Gasket Template:1", "ProductLength") = Parameter("ProductLength") Parameter("ProductThickness") = Parameter("ProductThickness") Parameter("Kanga Tooling Template Gasket Side:1", "ProductThickness") = Parameter("ProductThickness") Parameter("Kanga Tooling Template:1", "ProductThickness") = Parameter("ProductThickness") Parameter("Kanga Tooling Gasket Template:1", "ProductThickness") = Parameter("ProductThickness") Parameter("ProductWidth") = Parameter("ProductWidth") Parameter("Kanga Tooling Template Gasket Side:1", "ProductWidth") = Parameter("ProductWidth") Parameter("Kanga Tooling Template:1", "ProductWidth") = Parameter("ProductWidth") Parameter("Kanga Tooling Gasket Template:1", "ProductWidth") = Parameter("ProductWidth") Parameter("SealSpacing") = Parameter("SealSpacing") Parameter("Kanga Tooling Template Gasket Side:1", "SealSpacing") = Parameter("SealSpacing") Parameter("Kanga Tooling Template:1", "SealSpacing") = Parameter("SealSpacing") Parameter("Kanga Tooling Gasket Template:1", "SealSpacing") = Parameter("SealSpacing") Parameter("SealWidth") = Parameter("SealWidth") Parameter("Kanga Tooling Template Gasket Side:1", "SealWidth") = Parameter("SealWidth") Parameter("Kanga Tooling Template:1", "SealWidth") = Parameter("SealWidth") Parameter("Kanga Tooling Gasket Template:1", "SealWidth") = Parameter("SealWidth") Parameter("TabLength") = Parameter("TabLength") Parameter("Kanga Tooling Template Gasket Side:1", "TabLength") = Parameter("TabLength") Parameter("Kanga Tooling Template:1", "TabLength") = Parameter("TabLength") Parameter("Kanga Tooling Gasket Template:1", "TabLength") = Parameter("TabLength") Parameter("TopAndBottomPercentage") = Parameter("TopAndBottomPercentage") Parameter("Kanga Tooling Template Gasket Side:1", "TopAndBottomPercentage") = Parameter("TopAndBottomPercentage") Parameter("Kanga Tooling Template:1", "TopAndBottomPercentage") = Parameter("TopAndBottomPercentage") Parameter("Kanga Tooling Gasket Template:1", "TopAndBottomPercentage") = Parameter("TopAndBottomPercentage") Parameter("TopAndBottomSpacing") = Parameter("TopAndBottomSpacing") Parameter("Kanga Tooling Template Gasket Side:1", "TopAndBottomSpacing") = Parameter("TopAndBottomSpacing") Parameter("Kanga Tooling Template:1", "TopAndBottomSpacing") = Parameter("TopAndBottomSpacing") Parameter("Kanga Tooling Gasket Template:1", "TopAndBottomSpacing") = Parameter("TopAndBottomSpacing") Parameter("GasketThickness") = Parameter("GasketThickness") Parameter("Kanga Tooling Gasket Template:1", "GasketThickness") = Parameter("GasketThickness") 'update all iLogicVb.UpdateWhenDone = True
I had a few responses on my initial post but I couldn't really understand how to get it to work.
Any help would be appreciated thank you!