Jump to content

PCM command to show setup picture upon opening program


---
 Share

Recommended Posts

Hi,

 

 There are 2 easier ways of doing this,

1) using plan > Measurement run info for CNC Start

2) using a 'programmable stop' inside of your first feature

 

but if you want to use PCM : These should work :

systemCallWithWait("cmd.exe /c start C:\path_to_your_set_up\setup.ppt")

 

Also :

// Assuming set up pic is in your program folder - probably the best place for it.
DIR=getActualInspectionDir()

systemCallWithWait("cmd.exe /c start "+DIR+"\set_up.ppt")
  • Like! 1
Link to comment
Share on other sites

Another easy way without using pcm is the "inspection_post_load.bat" method.  

inspection_post_load will run when you load the program.  

Just create a file with this name and place it in your program folder.  To call a file all you have to do is put the file path inside the file.  For example:

"C:\Lab\Lab Documents\SampleFile.pdf"

 

Be sure to include the quotation marks.  

  • Like! 2
Link to comment
Share on other sites

Please sign in to view this quote.

Can that code be used on systems that do not have a PCM license? (I use images).

Link to comment
Share on other sites

 Share

×
×
  • Create New...