Inventor Customization

Reply
Distinguished Contributor
sergelachance
Posts: 170
Registered: ‎04-30-2012
Message 1 of 10 (146 Views)

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

146 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

Mentor
mehatfie
Posts: 163
Registered: ‎02-10-2012
Message 2 of 10 (142 Views)

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

Distinguished Contributor
sergelachance
Posts: 170
Registered: ‎04-30-2012
Message 3 of 10 (134 Views)

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!

Distinguished Contributor
sergelachance
Posts: 170
Registered: ‎04-30-2012
Message 4 of 10 (133 Views)

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!

Mentor
mehatfie
Posts: 163
Registered: ‎02-10-2012
Message 5 of 10 (125 Views)

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

Distinguished Contributor
sergelachance
Posts: 170
Registered: ‎04-30-2012
Message 6 of 10 (118 Views)

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?

 

 

Mentor
mehatfie
Posts: 163
Registered: ‎02-10-2012
Message 7 of 10 (114 Views)

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*

Distinguished Contributor
sergelachance
Posts: 170
Registered: ‎04-30-2012
Message 8 of 10 (111 Views)

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?

Mentor
mehatfie
Posts: 163
Registered: ‎02-10-2012
Message 9 of 10 (108 Views)

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

Distinguished Contributor
sergelachance
Posts: 170
Registered: ‎04-30-2012
Message 10 of 10 (105 Views)

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:

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube