Hi,
in V8 it was possible to run simple VBA statements directly from MicroStation key-in "vba execute <vba statement>". In some workflows it was the only way how to e.g. set some values.
This issue has been discovered and discussed several times already (e.g. here), but I don't find any conclusion whether Defect number has been assigned or an explanation why this very useful key-in was removed in CONNECT Edition.
With regards,
Jan
macro vba execute
Answer Verified By: Jan Šlegr
Great, thanks!
So I should change the bug classification from "The key-in is not available" to "It's not documented in product documentation" ;-)
Regards,
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Jan Šlegr said:It's not documented in product documentation
More accurately, it used not to be documented. I notice that the VBA help doc has been updated (see MicroStation VBA Key-ins)...
Use the following key-in: MACRO VBA EXECUTE [projectname] <statement>
However, the documentation also has this...
Use the following key-in: MACRO VBA RUN <macro name>
But I know that the old key-in works perfectly well...
VBA RUN <macro name>
So sometimes we must prefix a VBA command with MACRO, at other times it's unnecessary.
MACRO
Regards, Jon Summers LA Solutions