hexagon logo

Autoname and save file as .pdf

Longtime reader, first-time poster. Thanks to all for the help this forum has provided to me thus far.

I am new to PCDMIS, but an experienced programmer with GeoMeasure (MTI). GeoMeasure is a DMIS language, but vastly different from PCDMIS. I have programmed (10 years) and even taught programming at a local community college (2 yrs). I was away from CMM's for a couple years until I moved to MA from MI last year and took this job, where I first encountered the Demon.

So now that you all have a little background info on me, here is the problem that searching the forum archives has failed to find a solution to.

I had a fixture fabricated that holds up to 16 parts in a 4X4 configuration. I took an existing program that measures a couple hundred points for flatness and created a nested loop to get my vertical and horizontal offsets. I can execute the program without a problem and everything runs fine except for one minor issue: the report needs to print out with a custom report name for each part before the loop completes.

I found a few threads that address using variables to assign the printpath to and then insert the variable into the print command. What I end up with when running is a prompt to save the file (I am not using the print setup from the "file>printing>edit print window setup" dialog box; all of those options are left unchecked). I think the problem may be network related because when I change the file location to the local C: drive, it works flawlessly.

I have attached the program for reference and I appreciate any and all comments that may be helpful.

Also, I am working a 12:30pm to midnight shift and 7:00am-noon on Saturdays, so outside of those hours I may be a bit unresponsive.
Parents
  • Just post the relevant code. Most dont have time to download, unzip and then load your program, not to mention not having all the settings, tips, etc... that you might have used. Use the [code]program code [/code] bbcode to wrap around your program.


    Network drive letters sometimes dont work with the standard path description. You may have to use the UNC for defining the path instead of the mapped drive letter, ie, \\ComputerName\SharedFolder\Resource

    post your code.
Reply
  • Just post the relevant code. Most dont have time to download, unzip and then load your program, not to mention not having all the settings, tips, etc... that you might have used. Use the [code]program code [/code] bbcode to wrap around your program.


    Network drive letters sometimes dont work with the standard path description. You may have to use the UNC for defining the path instead of the mapped drive letter, ie, \\ComputerName\SharedFolder\Resource

    post your code.
Children
No Data