Change a part template on existing part and assembly

Change a part template on existing part and assembly

aroNLGVQ
Community Visitor Community Visitor
468 Views
4 Replies
Message 1 of 5

Change a part template on existing part and assembly

aroNLGVQ
Community Visitor
Community Visitor

Hi,

 

I've created several part files and assemblies with the wrong template resulting in a missing Ilogic rule. Now I would have to change Iproperties manually and I have lot of files, this would result in a big time loss and lot of potential mistakes.

 

Is there an easy way to migrate an Ilogic rule to all my parts and assemblies created with the wrong template ?

 

Thanks

Antoine

0 Likes
469 Views
4 Replies
Replies (4)
Message 2 of 5

CGBenner
Community Manager
Community Manager

@aroNLGVQ 

Welcome to the Community.  I feel like this could possibly be done with another program which searches a group of files for the missing ilogic, and adds it if needed.  I'm not a programmer at all, so lets see what the group here thinks.  If needed I can move this post to the Inventor programming forum.

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

Message 3 of 5

CCarreiras
Mentor
Mentor

Hi!

 

Manually, you can copy paste rules between different parts.

Also you can use external rules, instead of local rules. Check if your system/rules can be use as external rules.

 

There's not an easy way to do that out of the box in Inventor. Search/ask for this in iLogic forum, probably others had this kind of need in the past and there's already a solution ready.

CCarreiras

EESignature

Message 4 of 5

WCrihfield
Mentor
Mentor

Hi @aroNLGVQ.  Yes, what you want to do is relatively easy for us to do by code now.  There are lots of forum discussions about that type of process here in this forum, and there are also several blog posts about this type of code based process in forum user's personal blog sites.

 

However, there are several differences between all the current 'solutions' available, depending on the specific situation / needs of the one asking for help.  When we write code to do a task, that code usually needs to be extremely specific, so we would need to know as much as possible about your situation, and very specifically how you want the rule to work / function.

  What do you want to see happen when you run the rule?

There are lots of questions / variables involved in that process.

  • Which document will be 'active' (visibly showing on your screen) when you run the rule?
    • The 'source' document, with the 'source' rule in it?
    • Or the 'destination' document, where you want the 'source' rule to be copied into?
    • Or, do you not want the rule to pay any attention to the 'active' document when the rule is ran?
  • How do you want to specify either the 'source' or 'destination' document(s)?
    • Is including the full String (text) file path and file name within the code OK?
    • Or do you need to be able to 'browse' for one of them, or both of them, using a file dialog?
  • How do you want to specify the 'source' rule that should be copied?
    • Again, by specifying the String of its name directly within the rule itself?
    • Or do you want the rule to show you a 'list' of all internal rules within the 'source' document, so you can choose one (or more)?
  • Do you want this rule to just copy one rule to one document per run of the rule, or do you want one run of the rule to copy the source rule to multiple documents?
    • If multiple, then how do you want to specify which group of destination documents it should copy the rule into?
    • Should it try to 'process' every Inventor file in a whole folder?
      • If so, then should it also go down into all levels of sub-folders?

I could keep asking questions, but you get the point.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 5 of 5

CGBenner
Community Manager
Community Manager

@aroNLGVQ Hello, do you still need help with this question?

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

0 Likes