Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
The macro command
CREATE LINE x1 y1 x2 y2
draws a line from (x1,y1) to (x2,y2), or what kind of "line command" are you looking for?
It is possible to start other programs with the IML command "Launch". This also works the the windows command shell. You need to now where it is located on your system, this is only an example:
# Pass a command to the shell
Launch "C:\WINNT\system32\cmd.exe" "/c echo %TIME% > stamp.txt"
# Keep the shell command window opened
Launch "C:\WINNT\system32\cmd.exe" "/k dir"
(To get more information about the cmd shell options (like /c and /k) e.g. enter "help cmd" on a cmd shell window.)