Apprentice using iLogic

Apprentice using iLogic

NachoShaw
Advisor Advisor
1,534 Views
7 Replies
Message 1 of 8

Apprentice using iLogic

NachoShaw
Advisor
Advisor

Hey there!

 

I know that iLogic can't be interacted with directly when using apprentice but what about indirectly?

 

Let's say I change an iProperty value and in my file I have an iLogic rule that will change another iProperty value if any iProperties are changed. By using apprentice and changing the value, would it kick iLogic in and the rule run in the apprentice environment or is iLogic not able to run at all?

 

Thanks

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
1,535 Views
7 Replies
Replies (7)
Message 2 of 8

bradeneuropeArthur
Mentor
Mentor

How and when do you suppose to run the apprentice server?

  • On what event for example?
  • and with a VBA or Vb.net code?
  • With a standalone application (exe)?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 8

A.Acheson
Mentor
Mentor

It is my understanding that iLogic won't run until the document is opened through Inventor. Apprentice can only be used for light document changes such as iProperties. 

 

In a quick check I changed an iProperty through apprentice and when I opened the file the internal rule that was placed on event trigger had not fired or would not fire until the iProperty was changed in the open inventor document. 

 

Can you start up another inventor instance to do your changes?

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

NachoShaw
Advisor
Advisor

Hi

 

Thanks for replying. I currently open the document invisible to do what I need, I was just wondering if I could utilize apprentice a little more. With automation being more advanced and demanding these days, it's a shame apprentice can't do just a little more than iProperties. It has its advantages but they are quite specific. The fact that apprentice doesn't have a design window would prevent modeling oriented development but from an automation side, it could really improve parameter and iproperty updates with an ilogic support for background change.

 

Thanks

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 5 of 8

bradeneuropeArthur
Mentor
Mentor

@NachoShaw are you using Vault Pro or Workgroup?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 6 of 8

NachoShaw
Advisor
Advisor

Hi

 

I would use apprentice as required. An app I am working on requires calls to be carried out inside inventor but it doesn't require inventor per se. I launch inventor in the background, complete my calls in an invisible document then close without saving. Apprentice runs with my .exe project and written in vb.net.

 

It would be great to remove the whole inventor opening session just to do some calls that I'm collecting and storing outside of the document.

 

Not using vault

 

 

 

Thanks

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 7 of 8

A.Acheson
Mentor
Mentor

Would opening an Inventor invisible session through Excel VBA have any advantages? It would leave another session open for you to run Inventor VBA/ilogic and regular modelling tasks. I don't ever use this method in practice but just testing it now. out of curiosity. Regular inventor session seems un affected. 

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

NachoShaw
Advisor
Advisor

Hey

 

I dont think that would help and in some ways, using VBA would inhibit the process timewise. I already open the document through inventor invisible using .Net but i was looking for a potential way to speed it up by not opening the document at all with inventor directly. No matter, it looks like Apprentice will remain as limiting as it will be so my current method in place will remain 🙂

 

Thanks

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes