Launch Schematic Model Manager in TTY Mode though Batch File
- Last UpdatedNov 22, 2022
- 1 minute read
Instead of using PML commands, a batch file can be created with all the details. Create one windows batch file and one MAC file. In the batch file, define the installation location with project name and its credential with MDB. Then create the MAC file for executing PML commands to start the event driven process.
-
Example for creating a MAC file (Autoimport.mac):
$p "*****smm module initalisation********"
SCHEMATICMODELMANAGER
!A=OBJECT SMM()
q var ! A.AUTOIMPORTXMLFILE()
$P "*********SMM ENVIORNMENT SETUPED**************"
-
Example for creating batch file:
"C:\Program Files (x86)\AVEVA\Diagrams14.1.4\mon.exe"
PROD DIAGRAMS init "C:\Program Files (x86)\AVEVA\Diagrams14.1.4\diagrams.init" -proj=APS -mdb=/ALL -user=SYSTEM
-pass=XXXXXX -tty -macro=D:\spectrum_projects\Autoimport.mac -interactive=FALSE
Note:
In batch file the Autoimport.mac is the same name as the mac file.
In the above batch file creation example:
D:\spectrum_projects-Batch file and MAC file should be available at this location.
The MAC file and batch file can be placed at any location and mention the same in the batch file.
Open the command prompt and execute the batch file and it will start the process to import available drawings in Schematic Model Manager TTY mode.