• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor Customization

    Reply
    Valued Contributor
    Posts: 82
    Registered: ‎04-30-2012

    Component name in rule dont change if is copied???

    79 Views, 9 Replies
    12-10-2012 09:26 AM

    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 :smileysad:

     

    Thanks for your help :smileyhappy:

     

    BEFORE

    BEFORE.PNG

     

    AFTER COPY WITH ILOGIC DESIGN COPY

    AFTER.PNG

    Please use plain text.
    Mentor
    mehatfie
    Posts: 163
    Registered: ‎02-10-2012

    Re: Component name in rule dont change if is copied???

    12-10-2012 10:59 AM in reply to: sergelachance

    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!!!

    Please use plain text.
    Valued Contributor
    Posts: 82
    Registered: ‎04-30-2012

    Re: Component name in rule dont change if is copied???

    12-11-2012 01:56 AM in reply to: sergelachance

    Again Mitch :smileyhappy:

     

    Thank you very much for your reply :smileyhappy:

     

    I try that!

    Please use plain text.
    Valued Contributor
    Posts: 82
    Registered: ‎04-30-2012

    Re: Component name in rule dont change if is copied???

    12-11-2012 01:59 AM in reply to: sergelachance

    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!

    Please use plain text.
    Mentor
    mehatfie
    Posts: 163
    Registered: ‎02-10-2012

    Re: Component name in rule dont change if is copied???

    12-11-2012 09:11 AM in reply to: sergelachance

     

    Spoiler
     

    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!!!

    Please use plain text.
    Valued Contributor
    Posts: 82
    Registered: ‎04-30-2012

    Re: Component name in rule dont change if is copied???

    12-11-2012 10:33 AM in reply to: sergelachance

    it's my horrible english :smileysad:

     

    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?

     

     

    Please use plain text.
    Mentor
    mehatfie
    Posts: 163
    Registered: ‎02-10-2012

    Re: Component name in rule dont change if is copied???

    12-11-2012 10:43 AM in reply to: sergelachance

    So BOTH the Original and Renamed part will have a star before and after the number?

     

    BEFORE part name = *TABB*

    RENAME PART = *L3BR000_TABB24*

    Please use plain text.
    Valued Contributor
    Posts: 82
    Registered: ‎04-30-2012

    Re: Component name in rule dont change if is copied???

    12-11-2012 10:58 AM in reply to: mehatfie

    no, * is for find all begining or finish

    it's possible?

    Please use plain text.
    Mentor
    mehatfie
    Posts: 163
    Registered: ‎02-10-2012

    Re: Component name in rule dont change if is copied???

    12-11-2012 11:03 AM in reply to: sergelachance

    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

    Please use plain text.
    Valued Contributor
    Posts: 82
    Registered: ‎04-30-2012

    Re: Component name in rule dont change if is copied???

    12-11-2012 11:38 AM in reply to: mehatfie

    me and my english :smileysad: sorry

     

    and thanks for all Mitch :smileyhappy:

    Please use plain text.