How to use a PGP file to create command aliases in MicroStation
The configuration variable MS_DWG_PGPFILE can be set to point to a PGP file containing shortcuts or aliases for AutoCAD commands. If no directory is found, the support directory of an AutoCAD installation (if there is one on the computer) is used. The default is acad.pgp, because it is the default file used by AutoCAD.
The PGP file format is simple: each line is either a comment (starting with ; ) or an alias, followed by the command it launches. AutoCAD commands start with *. Therefore, X, *EXTEND defines the X-alias for the AutoCAD EXTEND command. In addition to AutoCAD commands, MicroStation also interprets strings between quotes as inputs to the standard MicroStation keyboard. For example, PX, POPSET ON defines the PX alias for keyboard input MicroStation POPSET ON.
The AutoCAD PGP file is automatically loaded when the RealDWG subsystem is used. Since RealDWG is only used when opening a DWG file, if you have not opened a DWG file during a session, the PGP file is not loaded. If you want PGP commands to be always available, including in DGN format, you can add the following line to one of your configuration files:
_USTN_FIRSTTDGNAPPS > dwgsettings.ma
Thus, MicroStation loads the PGP file as soon as you open your first design file. Thanks to this, AutoCAD commands in the PGP file will always be available. Note that loading the "dwgsettings" application activates the RealDWG subsystem, which will slightly slow the start of MicroStation.