Message 1 of 2
How do I pass a variable to a VBA sub from within iLogic?

Not applicable
10-30-2014
01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This is a 2 part question
A. How do I pass a variable to a sub from iLogic
Ie. I have an iLogic rule that runs when pressing a button
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 1098 StartFragment: 314 EndFragment: 1066 StartSelection: 314 EndSelection: 314
InventorVb.RunMacro("DocumentProject", "basExport2FEMAP", "Export2FEMAP")
However I'd like to have a boolean pass to the sub but I don't know how to do that from the iLogic editor
I have....Public Sub Export2FEMAP()
I'd like....Public Sub Export2FEMAP(blAutoMesh as boolean)
B. once I can pass the bool to the sub can I have 2 buttons run one rule w/ a different boolean for each? Right now I have a rule for export with automesh and one for just export. Is there a way of telling the button to change the boolean with just one rule?