Running a keyin at startup

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?

Parents
  • It is also possible to use MS BASIC macro as autostart.

    1. add these variables to UCF or PCF file.

    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.

Reply
  • It is also possible to use MS BASIC macro as autostart.

    1. add these variables to UCF or PCF file.

    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.

Children