To ensure a product license is checked out before loading a module and checked back in when finished with a module, create load/unload tools in the MicroStation CONNECT ribbon that call a batch file to check out/in the license before/after loading/unloading the module making use of the silent checkout capabilities of the Terra License Manager.


Key-in to checkout a license and load the module:
“! c:\terra64\license\CheckoutTScanLicense.bat; mdl l tscan”
, where CheckoutTScanLicense.bat is:
c:
cd C:\terra64\license\
license_manager 020 1 scan
exit
Key-in to unload the module and check in the license:
mdl u tscan; ! c:\terra64\license\CheckinTScanLicense.bat
, where CheckinTScanLicense.bat is:
c:
cd C:\terra64\license\
license_manager 020 0 scan
exit