Change Part File Name in Assembly using iLogic - Can it be done?

Change Part File Name in Assembly using iLogic - Can it be done?

munderwood4GRE6
Enthusiast Enthusiast
665 Views
7 Replies
Message 1 of 8

Change Part File Name in Assembly using iLogic - Can it be done?

munderwood4GRE6
Enthusiast
Enthusiast

I'm trying to setup a rule that will check a newly inserted factory parts file name for a specified text parameter in the assembly.

 

Upon placing the part, it is already selected in the model tree by default but I'm not sure how to access the file name using iLogic.

 

Any help here is appreciated.

0 Likes
666 Views
7 Replies
Replies (7)
Message 2 of 8

A.Acheson
Mentor
Mentor

Are you working with an iPart member?  If so how are you placing this through ilogic or manually? 

If placed manually the part isn't selected in my testing, you would need to find it through code or manually select it with code. . 

AAcheson_0-1639176447640.png

Can you supply more detail with any code you are working with. If I get your request you want to look for a text parameter in the part file selected? 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 8

munderwood4GRE6
Enthusiast
Enthusiast
I’m placing a factory asset into the assembly manually. Once I drop it in it’s automatically assigned a file name by factory that has the factory asset name followed by a bunch of random numbers and letters. The part is automatically selected after placing it. (It’s highlighted blue). I’m wanting to make a try catch loop triggered right after placing it that will add an identifier into the file name that inventor is generating automatically.
0 Likes
Message 4 of 8

A.Acheson
Mentor
Mentor

I am not familiar with factory assets so not sure of their particulars. I would assume like most files it needs to be saved to disk first then you can select the part file and save and replace with new file name and delete the old. Can you share any code you have worked with before relating to these assets? 

Maybe other users can help out also. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 5 of 8

TechInventor20
Advocate
Advocate

That's what I was thinking to. 

 

The other way is to make a copy of the file before you place it and change it to the filename you want and then place that file instead of the "Factory part".

0 Likes
Message 6 of 8

munderwood4GRE6
Enthusiast
Enthusiast

So the issue I have with these solutions is I'm trying to use this as a workaround for the way Inventor places Factory part files in Vault.

 

When you configure Vault and Factory together there  is a hardcoded folder generated in Vault titled Factory  Assets.

When using a Factory Layout (Factory Assembly) in Inventor you place factory Assets by selecting them from the asset browser. This browser is full of "published assets" which are nothing more than .ipt files that have been "published" to Factory library. They are converted into .faf files and contain some key information that Factory uses to include Factory Properties.

 

When you place a Factory Asset, it puts that .ipt into your assembly with the name of the asset followed by a series of letters and numbers to essentially make it unique. 

 

munderwood4GRE6_0-1639405023605.png

 

When you check the Assembly into Vault, this asset is saved in the Factory Assets folder in Vault. Any .ipt that is ever used through factory goes into this folder. If it is removed it loses it Factory functionality.  The problem is the folder becomes rather extensive quickly and I have no identifier for archiving old files. This is why I'm trying to figure out how to change the file name before they get checked into Vault. I still want the auto-generated file name but I just want to add the identifier in the front. This would give me the ability to know what I can remove from the Factory Assets folder in Vault.

 

0 Likes
Message 7 of 8

A.Acheson
Mentor
Mentor

@CGBenner would you possibly know who on the autodesk team looks after factory asset work flow between vault and inventor? The above post would be outside of most people experience on this forum from what I am seeing it has rarely been mentioned. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 8 of 8

CGBenner
Community Manager
Community Manager

@A.Acheson 

 

Between Vault and Factory,.... no.  I don't know of anyone specific.  I will tag @liqinomickey here to see if he may have some ideas.

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