I've found a difference in running VBA macros from the Intellicad command prompt versus from inside the VBA editor environment.
Running my VBA from the editor, it always works as predicted. There is a big difference running a macro from the command prompt, using the -VBARUN command.
For example, running 'Trav1' (a function which traverses a line over a bearing from point to point and allows the user to select starting coordinates) using the -VBARUN command, when the user selects the option to select starting coordinates, the user input prompt does not appear....instead the prompt just reads 'Macro name: Trav1"
To not crash the instance of Intellicad that I'm running, I have to close the active drawing. After that, the next form pops up (as if user input had been completed). After closing that form (and thus the running VBA), the user input prompt appears (sometimes as garbage characters).
The same behavior is exhibited with other user input prompts if running an individual macro from the intelliCAD command prompt.
I'm looking for an alternative method to running the macros that will not override user input.
VBA macros from within Intellicad vs the VBA Editor: SOLVED
#1
Last edited by Accuright on Mon Oct 29, 2012 2:41 pm, edited 1 time in total.