ilogicRuleStatus

ilogicRuleStatus

tegstette
Advocate Advocate
725 Views
9 Replies
Message 1 of 10

ilogicRuleStatus

tegstette
Advocate
Advocate

HiSmiley Happy

 

Can someone tell me where I can find the property iLogicRuleStatus on the inventor-file? (Maybe it is called RuleStatus...)

 

 

I want to create an ilogic rule that checkes if this property has the value "Remove", if so I want a Message Box to show...

Best regards
TG

Autodesk Inventor/Vault Professional 2021
0 Likes
726 Views
9 Replies
Replies (9)
Message 2 of 10

MechMachineMan
Advisor
Advisor

Your post is a little unclear.


What is the end result you are trying to accomplish by finding "iLogic Rule Status"?


--------------------------------------
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 10

tegstette
Advocate
Advocate

If someone uses the default Rule Set when Copy Design all ilogic-rules are deleted. This is a very bad thing for us...

 

So I want to run an ilogic rule that checkes all files in an Assembly or on a file for the ilogicRuleStatus. If a file has the value "Remove" this means that the default rule has been used during copy design and the ilogic rules/triggers are deleted.

 

this rule will help me locate these files so we can fix them before we export wrong data to Our ERP-system...

Best regards
TG

Autodesk Inventor/Vault Professional 2021
0 Likes
Message 4 of 10

MechMachineMan
Advisor
Advisor

Best way I can see you doing that is just by querying the file for a count of the iLogic rules existing in it, and if it's 0, or not what it should be, then you can flag it from there.

 

See attached excel in the linked thread for your own look at the exposed calls in the iLogic api.

 

https://forums.autodesk.com/t5/inventor-customization/ilogic-api-documentation/td-p/6785772


--------------------------------------
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 5 of 10

tegstette
Advocate
Advocate

Thank you for Your reply and for the interesting Excel-overviewSmiley Happy

 

But I am afraid that the solution by counting ilogic-rules will not work for me... because 50% of my files does not have ilogic in the first Place... The only way I have figured out is by looking at the ilogicrulestatus and if it says Remove these are the files I need to fix...

 

It looks to me that this is an inventor property that is either called ilogicrulestatus or RuleStatus, but my problem is I cannot find it, I Guess it is located in a hidden property set or something?... (i dont have Visual studio so I can run SDK)

Best regards
TG

Autodesk Inventor/Vault Professional 2021
0 Likes
Message 6 of 10

MechMachineMan
Advisor
Advisor
Where did you find that this is an iProperties or status? I browsed through
iProps and attributes in Visual Studio and the closest thing I can see is a
couple attributes that are similar, but nothing called iLogicRuleStatus

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

tegstette
Advocate
Advocate

I attach a Picture of my vault property mapping below

 

2017-01-05 17_18_01-Vault Settings.png

Best regards
TG

Autodesk Inventor/Vault Professional 2021
0 Likes
Message 8 of 10

tegstette
Advocate
Advocate

Anyone that has any idea for this issue?

Best regards
TG

Autodesk Inventor/Vault Professional 2021
0 Likes
Message 9 of 10

Curtis_Waguespack
Consultant
Consultant
0 Likes
Message 10 of 10

Curtis_Waguespack
Consultant
Consultant
0 Likes