Is it possible to run a keyin at startup? I saw this AskInga article from 2002 that says one can create a txt file and then point the icon properties to it but I imagine that's pretty out of date by now?
Jon, that being said, in your opinion, what is the best way to execute vba's automatically on startup? I'm setting up several client workspaces and I want to try to do this as organized and efficiently as possible. Thank you,
Cole DeBolt said:what is the best way to execute vba's automatically on startup?
Please post questions about VBA to the Programming Forum.
See this page for information about handling MicroStation events with VBA, such as On Design File Open. Read the paragraph about OnProjectLoad, which answers your question.
OnProjectLoad
Regards, Jon Summers LA Solutions
Please check out this article - I use this approach (and an edited version of this file) to perform basic setup for a few things I personally like.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
MicroStation CE actually does support -s option after we toggle on the "Execute Startup Script" in Preference.
See the description for this from online help:
https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v22/en/PreferencesOperation.html
We can place any keyins in the cmdFile.txt.
Is the autorun.mvba a generic file that calls out another key in file? Do i need to write autorun.mvba? I have a complex text file already written for a certain client and would like to just have it run that file via the pcf. It's a pain to try and use this through the shortcut icon.