Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

9 REPLIES 9
Reply
Message 1 of 10
ChristinaForest
434 Views, 9 Replies

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

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

BEFORE.PNG

 

AFTER COPY WITH ILOGIC DESIGN COPY

AFTER.PNG

9 REPLIES 9
Message 2 of 10
mehatfie
in reply to: ChristinaForest

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

Message 3 of 10

Again Mitch 🙂

 

Thank you very much for your reply 🙂

 

I try that!

Message 4 of 10

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!

Message 5 of 10
mehatfie
in reply to: ChristinaForest

 

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

Message 6 of 10

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?

 

 

Message 7 of 10
mehatfie
in reply to: ChristinaForest

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

 

BEFORE part name = *TABB*

RENAME PART = *L3BR000_TABB24*

Message 8 of 10
ChristinaForest
in reply to: mehatfie

no, * is for find all begining or finish

it's possible?

Message 9 of 10
mehatfie
in reply to: ChristinaForest

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

Message 10 of 10
ChristinaForest
in reply to: mehatfie

me and my english 😞 sorry

 

and thanks for all Mitch 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report