how to change part names in assembly so that the parameters in ilogic auto change?

how to change part names in assembly so that the parameters in ilogic auto change?

Anonymous
Not applicable
891 Views
3 Replies
Message 1 of 4

how to change part names in assembly so that the parameters in ilogic auto change?

Anonymous
Not applicable

When I change all part component names in Assembly. Then the parameters in Ilogic will not change. How to automate. Please help me.1.PNG

0 Likes
892 Views
3 Replies
Replies (3)
Message 2 of 4

bhavik4244
Collaborator
Collaborator

@Anonymous 

 

you could do one thing, Make the browser name identical for example, by default it will be "Part:1" so make it to "Part1" or "xxx" any name you want.

 

After doing this whenever you change the part name or you do copy design it will be intact with parameters.

 

bhavik4244_0-1610947050668.png

 


Bhavik Suthar
Message 3 of 4

dutt.thakar
Collaborator
Collaborator

@Anonymous 

 

Whenever you are working on iLogic with parameters, make sure you change the names of occurrences (that you see in the browser with suffix :1) to a custom name. In your code as an example "KG-28-19-BL-01-00:1" should be named to something else that will always stay intact and not break your iLogic. Another tip from my end is always keep the default names of browser nodes and not the file name. Currently, in your browser name, it is showing extension, which means it is set to "File name", whenever you work with iLogic I always recommend to set it to default. See attached snaps, form where you can change this setting.

 

The rule of thumb to make your iLogic work after copy/copy design (when you get the new filenames) is to always change the names in the browser when you are creating an iLogic model, you can do this manually when you are creating an assembly, and I prefer that is the best way.

 

 

Also if you already have created your iLogic code and changed the names in the assembly browser, please note that in your rule as you have now, it will not change automatically, you can use "Search and Replace" inside iLogic rule editor to change very quickly rather than doing manually.

 

Hope this will be helpful.

 

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
Message 4 of 4

gcoombridge
Advisor
Advisor

You can change the name then change it back. This is best done with a ilogic rule itself (either external or part of the assembly template). See this link:

https://www.cadlinecommunity.co.uk/hc/en-us/articles/202020161-Inventor-2014-iLogic-Stabilise-Browse...

Use iLogic Copy? Please consider voting for this long overdue idea (not mine):https://forums.autodesk.com/t5/inventor-ideas/string-replace-for-ilogic-design-copy/idi-p/3821399