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?
It is also possible to use MS BASIC macro as autostart.
MS_DGNAPPS > RUNMACRO
MS_DGNMACROS = autostart.bas
2.Then create autostart.bas under Project\macros
3. Edit Autostart.bas and add key ins with command MbeSendKeyin followed by key-in enclosed in qoutes
MbeSendKeyin "set nodes off"
Now each time a file is opened the macro will run. Keep in mind that this soon will be outdated also because in newer versions MS BASIC support could be dropped.
Oto said:It is also possible to use MS BASIC macro as autostart
MicroStation BASIC is obsolete. It is not included with MicroStation CONNECT.
Cole DeBolt said:I'm using Select Series 10 version 08.11.09.829.. I'm trying to attach a reference using, MbeSendKeyin
Prefer to use VBA. Your key-in will continue to be useful with MicroStation CONNECT...
VBA EXECUTE CadInputQueue.SendKeyin "rf=REF_LOCATION:mylarb.3d,,,,,"
Regards, Jon Summers LA Solutions
Bam! thanks Jon, i tried cadinputqueue but forgot the VBA execute part. lol. I'm not very savvy with vba, but, i just need to acclimate to it, theres so much more versatility.
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