SDK shell commands
MicroStation SDK shell provides a set of commands (macros) that can be used in the same way as Windows shell (cmd) commands.
In MicroStation CONNECT Edition SDK Update 12, available commands can be grouped by their functionality in this way:
Example of SDKTIP macro output in MicroStation SDK development shell:
Documents
These commands open documents delivered with MicroStation SDK.
Not all documents can be opened using the commands, there are some more in Documentation folder like MSTNPlatformNET.chm or ECObjectsAPI.chm. Use SDKDOCS command to navigate to Documentation folder.
Command | Functionality / Implemented as |
---|---|
SDKHELP | Opens MicroStationAPI help. Command: C:\Program Files\Bentley\MicroStationCONNECTSDK\Documentation\MicroStationAPI.chm |
SDKHELPNET | Opens DgnPlatformNet help. Command: C:\Program Files\Bentley\MicroStationCONNECTSDK\Documentation\DgnPlatformNet.chm |
SDKREADME | Opens MicroStation SDK readme. Command: explorer.exe C:\Program Files\Bentley\MicroStationCONNECTSDK\Documentation\Readme\index.html |
VBAHELP | Opens MicroStation VBA help. Command: C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\MicroStationVBA.chm |
Folders
These commands can be used to go quickly to specific folder. All commands use pushd which allows return back to original folder quickly using "reverse command" popd.
Command | Implemented as |
---|---|
MDLAPPS | pushd C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Mdlapps |
MDLSYSASNEEDED | pushd C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Asneeded |
MDLSYSREQUIRED | pushd C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\MdlSys\Required |
MS | pushd C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\ |
MSWORKSPACES | pushd C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\WorkSpaces\ |
SDK | pushd C:\Program Files\Bentley\MicroStationCONNECTSDK\ |
SDKASSEMBLIES | pushd C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Assemblies\ |
SDKBIN | pushd C:\Program Files\Bentley\MicroStationCONNECTSDK\bin\ |
SDKDOCS | pushd C:\Program Files\Bentley\MicroStationCONNECTSDK\Documentation\ |
SDKEXAMPLES | pushd C:\Program Files\Bentley\MicroStationCONNECTSDK\examples\ |
SDKINC | pushd C:\Program Files\Bentley\MicroStationCONNECTSDK\include\ |
SDKLIB | pushd C:\Program Files\Bentley\MicroStationCONNECTSDK\library\ |
SDKMKI | pushd C:\Program Files\Bentley\MicroStationCONNECTSDK\mki\ |
SDKOUTDIR | pushd C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Mdlapps\ |
SDKPROD | pushd C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\ |
SDKREMAP | pushd C:\Program Files\Bentley\MicroStationCONNECTSDK\MigrationTools\ |
SDKTEMP | pushd C:\Users\jansl\AppData\Local\Temp\Bentley\MicroStationSDK\ |
VCBIN | pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\ |
VCINC | pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\ |
VCLIB | pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\lib\ |
VCTOOLS | pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ |
VSDIR | pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\ |
Informations
These commands provides specific information about SDK configuration and development environment
Command | Implemented as… |
---|---|
SDKCONFIG | Lists SDK shell configuration. Command: cls $T @echo. $T doskey /history $T @echo. $T doskey /macros | sort $T @echo. $T for %a in (SHELLCMDLINE SDK SDKPROD SDKTEMP SDKASSEMBLIES SDKBIN SDKDOCS SDKEXAMPLES SDKINC SDKLIB SDKMKI SDKREMAP SDKOUTDIR SDKBUILDTOOL SDKTITLE SDKVER) do @set %a | findstr -vi "MS_ PATHEXT" $T @echo. $T $1 |
SDKENV | Lists arguments used to start SDK shell. Command: echo Startup SHELL and ARGS: %SHELLARGS% |
SDKMACROS | Lists all macros (commands) available in the shell. Command: cls $T @echo. $T doskey /macros | sort |
SDKTIPS | Clears shell and displays SDK tips. Command: $T for /f "tokens=*" %a in ('where sdktips.txt') do (cls & echo [SDKTIPS] & echo. & type "%a" & echo.) |
Links
These commands open web browser at specified address.
Command | Server or web page / Implemented as… |
---|---|
BDNVIDEOS | BDN videos on YouTube Command: start https://www.youtube.com/playlist?list=PLZVg-nvIew0e4p8Qjx4r0XXVQqc3zbYtG |
BENTLEYFTP | Opens Windows Explorer in incoming Bentle ftp folder. Can be used to share files with Bentley. Command: explorer.exe ftp://ftp.bentley.com/pub/incoming |
BENTLEYVIDEOS | Bentley Systems channel on YouTube Command: start https://www.youtube.com/channel/UCzEPv7twptpXXDVvAYplJEA |
SDKANNOUNCEMENTS | List of announcements about MicroStation SDK Command: explorer.exe https://communities.bentley.com/products/microstation/f/microstation-announcements-forum/tags/SDK |
SDKASKQUESTIONS | MicroStation Programming Forum best practices Command: explorer.exe https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/77384/please-read-microstation-programming-forum-best-practices |
SDKFORUM | MicroStation Programming forum Command: explorer.exe https://communities.bentley.com/products/programming/microstation_programming/ |
SDKIDEAS | MicroStation Programming Ideas forum Command: explorer.exe https://communities.bentley.com/products/programming/microstation_programming/i/microstation-programming---ideas |
SDKLEARN | MicroStation SDK trainings on Bentley LEARN Server Command: start https://learn.bentley.com/app/Public/ViewLearningPathWithMasterCourseExpanded?lpId=112568 |
SDKWIKI | MicroStation Programming wiki Command: explorer.exe https://communities.bentley.com/products/programming/microstation_programming/w/wiki |
Search tools
These commands allow to search (full text search) in SDK files.
Command | Functionality |
---|---|
SDKSEARCH <string> | Search for string in SDK files (include files, chm, examples…) . |
SDKSEARCH <string> VERBOSE | Search for string in SDK and also product (MicroStation) files and workspaces. |
Build tools
These commands can be used to build delivered examples, as well as own projects.
Command | Functionality |
---|---|
BUILDALLEXAMPLES | Compiles all delivered examples using bmake. Can be used to validate a build environment. |
BUILD | Compiles code using bmake and creates basic log. |
BUILD VERBOSE | Compiles code using bmake and creates detailed log. |
Tools & other
Command | Functionality |
---|---|
F [folder] | Lists content of specified folder and all subfolders. |
S <strings> <file name(s)> | Searches for patterns of text in files using this setting:
|
SB <strings> <file name(s)> | Searches for patterns of text in files using this setting:
|
SDKLOGS | Opens Windows Explorer in folder, where SDK log files are saved by default. Command: explorer.exe C:\Users\jansl\AppData\Local\Temp\Bentley\MicroStationSDK\ |