Cancel
Showing results for 
Search instead for 
Did you mean: 

Preserving Mapping of Template Assemblies with same subcomponent used in multiple places

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Note: If you do not use the Rulestream in the following scenario’s you can stop reading now:

 

  • Use SolidWorks

 

  • Use Template Assemblies in SolidWorks

 

  • Use complex Template Assemblies in SolidWorks which may have the same subcomponent used in multiple places throughout the assembly.

 

 Still with us? Wow! OK then, please proceed...

 

When rescanning a SolidWorks Template Assembly that has the same subcomponent used in multiple places in the assembly, Rulestream may lose mapped properties to that subcomponent. This can happen when you make changes to that subcomponent in the Template Assembly in native SolidWorks and then rescan it into Rulestream.

 

When a subcomponent is used in more than one place in a Template Assembly, the properties are only shown on one of the instances of that subcomponent so you cannot drive properties in two different locations for the same subcomponent. Due to a limitation of the SolidWorks API, when rescanning, the properties for the subcomponent may end up on a different instance of the subcomponent in the grid from where they were before the rescan. When this happens, the properties mapped to the subcomponent are lost.

 

Example of Template Assembly Structure:

Top _Level_Assembly.SLDAM

  • Assembly_A.SLDASM
    • -> Box_X.SLDPRT
  • Assembly_B.SLDASM
    • -> Box_X.SLDPRT

 

Properties mapped to Box_X.SLDPRT in Rulestream may be lost when Template Assembly is rescanned into Rulestream.

 

There are two methods to prevent this from happening:

 

Method #1:

  1. In Rulestream Architect, check to see which instance of the subcomponent has the properties mapped to it.
  2. When you need to edit the subcomponent on the Template Assembly in native SolidWorks, “drill-down” the model tree to the same instance of the subcomponent that has the properties shown in Architect.
  3. Edit Subcomponent.
  4. Save the Assembly.
  5. Rescan (pencil icon button) into Rulestream.

 

Method #2:

  1. When you need to edit the subcomponent in native SolidWorks, you can use any instance of the subcomponent. 
  2. Edit Subcomponent.
  3. Do a “Save All” of the Assembly.
  4. E02458_1.jpg
  5. Close the Assembly.
  6. Reopen the Assembly.
  7. Click the “Rebuild” Button.
  8. E02458_2.jpg.png
  9. Do another “Save All” of the Assembly.
  10. Rescan (pencil icon button) into Rulestream.