Error - iLogic failing to find VBA Module

Error - iLogic failing to find VBA Module

Anonymous
Not applicable
320 Views
1 Reply
Message 1 of 2

Error - iLogic failing to find VBA Module

Anonymous
Not applicable

Good afternoon,

 

i have a iLogic rule which is using inventorvb.runmacro to call a VBA user form - when i have a mixture of idw files open, some containing the user form & related VBA code and some not, i get an error saying that no VBA module was found in the 'DocumentProject'.  i may be wrong, but I believe this stems from the fact that in the VBA project explorer window, the idw files are called 'Documentproject' meaning the rule can't identify which one to call - is there a way of getting inventorvb.runmacro to target an exact 'documentproject' so it always calls the 'documentproject' that contains the VBA code & userform?

Currently, the only way to get the rule to call the userform is close the idw's that don't contain the userform & code.

 

Many thanks in advance.

 

Ja

0 Likes
321 Views
1 Reply
Reply (1)
Message 2 of 2

MechMachineMan
Advisor
Advisor

There could be.

 

In the links in my signature, there is API documentation which would reveal the further arguements available on the iLogic call.

 

If that doesn't work, one of the other links shows the direct API call for calling a Macro from a rule which would be useful.


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