Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Batch copy of iProperties fields to custom iProperties of all Inventor files in a folder

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
MatteoR_
660 Views, 7 Replies

Batch copy of iProperties fields to custom iProperties of all Inventor files in a folder

Hello,

I need to batch the following operation on all the Inventor files contained in a folder and all the subfolders.
In particular, I need to copy some iProperties fields to custom iProperties fields, for every .ipt and .iam file.

iProperties.Value("Custom", "Target custom iProperty") = iProperties.Value("Project", "Authority")


I found some hints here and there in the forum, but they were about different tasks and I need to run this script for every Inventor file under a specific folder.
Something like:

Public Sub batch()
Dim oApp As Inventor.Application
Set oApp = GetObject(, "Inventor.Application")
...Open every ipt or iam o dwf in the specified folder and all the subfolders...

Is it possible to do that?
Thank you.
Regards.

Labels (4)
7 REPLIES 7
Message 2 of 8

Yes this is possible.

 

I would advise you to look around in the appstore (https://apps.autodesk.com/INVNTOR/en/Home/Index) there are quite a few batch/iProp apps in there, maybe there is one that suits your needs. 

Contact me for custom app development info@basautomationservices.com. Follow below links to view my Inventor appstore apps.

Free apps: Reset view Representations | Smart Leader | Copy with Constraints | Part Visibility Utility | Property Editor | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle


Message 3 of 8
dalton98
in reply to: MatteoR_

I haven't done this before but I think you can run external rules in the "Task Scheduler" program. Create Custom Task>select folder. Not much help but maybe this can get you started

Message 4 of 8
Michael.Navara
in reply to: MatteoR_

For iProperties edit is very useful ApprenticeServer. Here is a short sample. https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-A1C343E0-2324-4AB1-A7A3-E2359D29DB6D

But you need to create your own exe application. Application must be compiled as 64bit only. It is not possible to use it from invenotr process (or iLogic)

Message 5 of 8
MatteoR_
in reply to: dalton98

This is a nice possibility though, needs a minimum programming approach but opens a wide number of solutions. Thank you.

Message 6 of 8

You were right, I found a nice batch app built from Autodesk, called "iLogic Rule Batch Tool", that does exactly what I need with nearly zero extra effort 🙂 Thank you!

Message 7 of 8
rfloresPM8SH
in reply to: MatteoR_

Ciao Mateo!

Would you mind a link to the app that you found to do this? I have been searching like crazy but cant find anything

Thanks!

 

Message 8 of 8
MatteoR_
in reply to: rfloresPM8SH

I forgot to mention the name. It's "iLogic Rule Batch Tool" by Autodesk.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report