iLogic: Check if Part Exists when Parameter Changes Then Create and Replace

Anonymous

iLogic: Check if Part Exists when Parameter Changes Then Create and Replace

Anonymous
Not applicable

I am trying to create a rule that checks to see if a PART already exists when a parameter changes, and if it does then replace component with that part. And if it does not exist, create a new part and replace.

 

Basically, I have an iLogic FORM that changes the radius of several parts in a pressure vessel system. I need to have new parts created with new part numbers because it is a new part when the parameter (radius) changes.  

 

I have been stuck on this huge roadblock for a while and could use some suggestions. Currently, I am creating a "master" model that replaces parts with a selected part from the FORM. I also want to make it easy for the outer diameter to be customized at all times with the components that connect to that parameter. With this combination, I think I can create a pretty powerful model.

0 Likes
Reply
1,187 Views
3 Replies
Replies (3)

johnsonshiue
Community Manager
Community Manager

Hi! I not an iLogic expert but I think you might need a combination of iLogic rule and iPart. Essentially, the iPart has pre-defined sizes. iLogic rule simply detect whether a part exists. If it does not, simply find the appropriate size on the iPart table and insert the iPart member. Does it make sense?

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Anonymous
Not applicable

Hello,

 

I would like to avoid using iPart unless I publish one to content center. I just seem to have a lot of unexpected issues with them down the road. I can try this out on a simple model to see how it might work though.

 

If there was a different method, that would be idea.

 

Thank you for your input!

0 Likes

Curtis_Waguespack
Consultant
Consultant

Hi caleb.schmitz,

 

Have a look at the example in this thread:

http://forums.autodesk.com/t5/inventor-forum/save-copy-and-replace-with-i-logic/m-p/4712425#M492658

 

Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum too:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

0 Likes