- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a rule that is a super simple if statement that when one of the components is active, then it suppresses the other. But, when I go to use this assembly in a different project, the project updates all the components name to have the prefix of that project, but the part number always stays the same. This means the ilogic does not work unless I change the component names in the rule manually by adding the prefix. How do I get it to refer to the same component by just the part number since that stays the same in every project this assembly is used. Or possibly automatically update the component name in the rule to match the component name in the model tree for the assembly.
If cover_type = "regular" Then Component.IsActive("Flange RV - Vent_Cover:1") = True Component.IsActive("Flange RV - Coned_Cover_Flange_1:1") = False Component.IsActive("Flange RV - Coned_Vent_Cover_1:1") = False Component.IsActive("Flange RV - Coned_Vent_Cover_1:2") = False Else If cover_type = "coned" Then Component.IsActive("Flange RV - Vent_Cover:1") = False Component.IsActive("Flange RV - Coned_Cover_Flange_1:1") = True Component.IsActive("Flange RV - Coned_Vent_Cover_1:1") = True Component.IsActive("Flange RV - Coned_Vent_Cover_1:2") = True Else If cover_type = "N/A" Then Component.IsActive("Flange RV - Vent_Cover:1") = True Component.IsActive("Flange RV - Coned_Cover_Flange_1:1") = True Component.IsActive("Flange RV - Coned_Vent_Cover_1:1") = True Component.IsActive("Flange RV - Coned_Vent_Cover_1:2") = True End If
How do I make these component names update when the prefix is added automatically , for example, if the prefix is "29019 -" and is automatically added to all the part names. The part numbers remain the same as well so I was assuming I would be able to use that.
Solved! Go to Solution.