Task to make a PDF on Desktop


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.


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