Autodesk Inventor Customization
- Start Article
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
Re: Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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!!!
Re: Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Again Mitch ![]()
Thank you very much for your reply ![]()
I try that!
Re: Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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!
Re: Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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!!!
Re: Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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?
Re: Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
So BOTH the Original and Renamed part will have a star before and after the number?
BEFORE part name = *TABB*
RENAME PART = *L3BR000_TABB24*
Re: Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
no, * is for find all begining or finish
it's possible?
Re: Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
Re: Component name in rule dont change if is copied???
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
me and my english
sorry
and thanks for all Mitch ![]()
