AnsweredAssumed Answered

Using Input Card variables to build a file path for the Solidworks Task Add-in

Question asked by Jim Clark on Sep 6, 2018
Latest reply on Oct 22, 2018 by Brandon Brewer

I'm trying to build a custom PDM task to print drawings as PDF's in a user-defined location.  To do this, I made a copy of the standard convert task, attached an input card which prompts the user to select a file location, and referenced that variable in the output path.  The problem is that it seems like the task isn't converting the variable name to its value.  Instead of the file path that was selected on the input card, the error log shows that it tried to print to %Print Location%\file.pdf


Has anyone tried doing anything like this?  I've seen some posts about using data card variables but the solutions involved referencing the file; in this case, the variable isn't attached to any of the files that are being converted as it comes from the input card.  I also saw some articles that talked about referring to card variables using { } syntax but I'm not sure what exactly that means.