Running a Perl script from inside PTC’s Arbortext IsoDraw in a Window’s CMD shell. The example below is very simple but demonstrates what can be done with Perl.
First you will need a Perl program. I will use Hello World printed to screen as an example. Place the following code inside a file called “hello.pl” and save it at C:\hello.pl.
Second, create a file called “hello.ism“:
Launch "C:\WINDOWS\system32\cmd.exe" "/k c:\hello.pl"
END MACRO
Here is the syntax: Use the keyword Launch and the path to Window’s command shell. The switch (option) /k keeps the command window open. You can use /c to close the command window, but since we are wanting to see the results printed, we will leave the CMD shell open. Enter the full pathname and Perl file name, (e.g., c:\hello.pl)
Place the “hello.ism” inside the Macros folder. For example, my installation is: C:\Program Files\PTC\Arbortext IsoDraw 7.0\Program\Macros”.
Third, launch IsoDraw. Start > Program Files > PTC > Arbortext IsoDraw 7.0 > Arbortext IsoDraw 7.0
To launch a Perl script from a batch file (.ism), from the menu: Macros > hello.

Hello Macro
The script will run and print the results in an open CMD shell and print “Hello World“.

Perl Results. "Hello World"
Again, this is a simple example but it does show how to launch Perl from IsoDraw.

