Run I-logic (External) rule with inventor start up.

Run I-logic (External) rule with inventor start up.

bradeneuropeArthur
Mentor Mentor
1,232 Views
10 Replies
Message 1 of 11

Run I-logic (External) rule with inventor start up.

bradeneuropeArthur
Mentor
Mentor

Hi,

 

is it possible to run an I-logic (External) rule with inventor startup?

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
Accepted solutions (1)
1,233 Views
10 Replies
Replies (10)
Message 2 of 11

MechMachineMan
Advisor
Advisor

There is a sample with the add-ins that is called something like "VBA AutoMacros".

 

As far as I know, an add-in is the only way to run a custom rule on startup. But you could just make a custom add-in that adds the functionality to run whatever rule you so choose.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 11

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Thank you for your remark.

I agree an know what you are saying.

 

Please read my idea in the idea station why I am asking this:

 

inventor-ideas (run-i-logic-rule-on-inventor-startup)

 

Do you agree with the idea and the statement?

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 4 of 11

waynehelley
Collaborator
Collaborator

I don't really see much benefit of Autodesk implementing this as it seems like something that would be of interest to very few users.  If you really want an iLogic rule to be triggered at startup, just create an Add-In that will trigger the iLogic rule.

 

 

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
Message 5 of 11

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Or better Create an Add-in Only!

 

Why should you mix I-logic with an Add-in, knowing that add-ins have benefits?

 

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 11

waynehelley
Collaborator
Collaborator

Personally I would create an add-in only.  In the spirit of the thread title, I was just trying to think about maybe there are people who specifically want to trigger an iLogic rule.

 

Somebody might want to trigger an iLogic rule since iLogic rules are quick and easy to edit without having to load up an IDE.  Also, an inexperienced programmer, who would be in charge of creating/modifying the iLogic rule, might want an experienced programmer to create the Add-In for them.

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
Message 7 of 11

bradeneuropeArthur
Mentor
Mentor

Hi,

 

I agree with this.

 

I think when you are familiar with I-logic, starting your first add in is not that complicated.

I think it will have only benefits.

 

Programming in I-logic and also in VBA can be used for testing and for simple coding that never ever needs to be changed....

 

 

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 8 of 11

bradeneuropeArthur
Mentor
Mentor
Hi,

But when implemented I logic Autodesk should have made this possible for many reasons!

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 9 of 11

waynehelley
Collaborator
Collaborator

I'm not sure about this.  If you look at all the documentation and examples that Autodesk have published on iLogic, it seems that it was originally intended just for writing 'rules' which would manipulate model geometry and feature/part suppression.  People have just taken advantage of the fact that it is a quick and easy way to write code which hits the API.  Personally I think people using iLogic instead of a dedicated IDE can be a very bad thing.  Objects/Classes created in iLogic rules are not visible from other iLogic rules, hence it encourages people to using procedural programming instead of object oriented programming.

 

Also, I might be mistaken but I think iLogic was originally created as an Add-In by somebody who wasn't part of Autodesk.

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
Message 10 of 11

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Fully agreed from my side.

 

Good is the discussion to make people aware of the fact programming in I logic is not intended as some people use it.

 

Isn't it?

 

Hope people will see programming add ins is much easier.

 

 

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 11 of 11

Curtis_Waguespack
Consultant
Consultant
Accepted solution

I was looking for a quick way to run some "Start Up" code and tried this, so I thought I would it add it here in case others find it useful.

 

Basically we can use this application option to create a new file on Start up

aaa.png

 

And then add "New Document" trigger to that template, and have it trigger a rule... in my example the rule is just a container rule that calls other rules that I might want to run on Start Up.

 

aaa.png

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

 

EESignature