cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Line command possible?

thendricks
3-Visitor

Line command possible?

I've been told that running a line command from within a macro is not possible. Does anyone know a workaround or know if this will be added in the near future?
5 REPLIES 5

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?

Sorry that I was not specific enough. I mean an external shell command.

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.)

Thank you!

Is there any documentation on the Launch command? I can't find reference to it in the manual for 7 and I've checked a copy of 6 that I found on-line. Also, can I use the Launch command to grab the user variable to a variable within IsoDraw? Reason is that we're trying to identify the last modifier of the file and this would work.
Announcements