it's possible when i copy my assembly with rule in who suppress or unsuppress my component, the parameter part name change same to my new part name in new assembly??? Now when i copy or when i use design assistance the name of my part dont change in rule???
I dont know if is clear because my poor english 😞
Thanks for your help 🙂
BEFORE
AFTER COPY WITH ILOGIC DESIGN COPY
Sergelachance,
The parameters in the rule are hard coded and will NOT change when the part name changes. You would have to manually change the parameter name in the rule or come up with a different method of tracking the name.
If this assembly will be used often, my suggestion is as follows:
Create a custom iProperty that holds a given name
In your rule, search and suppress parts by this iProperty value instead of the occurence name
It would take a bit of effort and time to set this up, which is why I'd only recommend it if this assembly will be used a few times. Otherwise you'll have to manually update the rule.
Regards
Mitch
Let me know if it helps.. Kudos if it works!!!
A little question?
It's possible to put a **** before and after the name to select my part???
If is not possible when to suppress or unsuppress a part without her name?
Thanks!
Sergelachance,
If you put a *** directly before the parts name:
The attached code looks through each component and reads its name, if the name has 3 *** directly at the beginning it will supress or unsuppress based on the chosen option.
The attached picture shows an example name.
Regards
Mitch
Let me know if it helps... Kudos if it works!!!
it's my horrible english 😞
my idea is all part begining by * and finish by*
BEFORE part name = TABB
RENAME PART = L3BR000_TABB24
MY IDEA
Component.IsActive("*TABB*:1")=False
DO YOU UNDERSTAND WHY I TRY TO TEL YOU?
So BOTH the Original and Renamed part will have a star before and after the number?
BEFORE part name = *TABB*
RENAME PART = *L3BR000_TABB24*
I'm sorry sergelachance but I don't understand your idea unfortunately.
In order for the rule to continue from copy to copy, something has to STAY THE SAME. There has to be a consistant iProperty, or portion of the name that will allow you to identify the parts you wish to suppress.
You must come up with this item that will stay the same throughout your parts with wach copy
Regards
Mitch