Replace only the active components

Replace only the active components

Anonymous
Not applicable
390 Views
3 Replies
Message 1 of 4

Replace only the active components

Anonymous
Not applicable

Hello,

 

I have an assembly and we are able to modify the BOM list by iLogic. How can I replace only that components which are active in the model history and ignore the models which are not found? 

 

 

Thanks in advance

 

0 Likes
Accepted solutions (1)
391 Views
3 Replies
Replies (3)
Message 2 of 4

mcgyvr
Consultant
Consultant

@Anonymous wrote:

Hello,

 

I have an assembly and we are able to modify the BOM list by iLogic. How can I replace only that components which are active in the model history and ignore the models which are not found? 

 

 

Thanks in advance

 


Here is the example page for component functions with ilogic..

http://help.autodesk.com/view/INVNTOR/2014/ENU/?guid=GUID-AFA099F1-B161-4822-914D-307F5CD8FE20

 

See if that helps you..

You might want to be more specific with your example to let us know how Inventor will know which part should be replaced with what? excel file? 

Is it supposed to find a specific part only and replace it or what

 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 3 of 4

Martin-Winkler-Consulting
Advisor
Advisor

HI @Anonymous

what do you mean with "modify the BOM list by iLogic". What did you do exactly with the BOM List.

Are you working with Level of Detail Representation in the Browser Tree? Otherwise all components in the Browser Tree are normally active.

Perhaps you can post your iLogic Rule here?

 

Sorry, but i need a bit more input for trying to help you.

Martin Winkler
CAD Developer
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature

0 Likes
Message 4 of 4

Anonymous
Not applicable
Accepted solution

Hi All,

 

I know I provided not enough information, sorry for this.

We found the solution. I just wanted to replace that components which are built in and if the rule doesn`t find one of the component then go on and doesn`t show an error message. ("The component is not found")

 

I used that:

 

Try

If Component.IsActive("itemname1:1") Then

Component.Replace("itemname1:1", "itemname2.ipt", True)

End If

Catch

End Try

 

Thank you for help

Jnaos

 

 

0 Likes