Task to make a PDF on Desktop

January 2nd, 2014 by

Here is a quick modification you can make to a SolidWorks Enterprise PDM “Convert” task so it will save the file to the user’s desktop.

Go to the task’s “Advanced Scripting Options” find the line:

convFileName = "[OutputPath]"

and replace it with: (it should be only one line in your editor)

convFileName = environ("userprofile") & "\desktop\" & "[OutputPath]"

You can modify any of the task settings you like except do not include the path when defining the “Primary output path”, just define the file name.

DefaultPath

(Don’t define the file path because you defined it when you changed the code earlier.)

Jeff Sweeney

CSWE Engineering Data Specialist 3DVision Technologies

Tags: , , ,

Leave a Reply


× three = twenty four

Follow
Get every new post delivered to your inbox
Join other followers
Powered By WPFruits.com
Bear