so im trying to add a task to my vault that exports a jpeg of each configuration in the file and name the jpeg using a configuration specific custom property (Partno).
i believe ive found the right chunk of code but im unsure of how to execute the get command to recieve the property and output it into the correct variable to be used.
<p>Function GetFullFileName(convFileName, conf, i, itemCount)</p><p> ' Configuration name may include backslash. Remove it since otherwise saving will</p><p> ' fail due a missing directory</p><p> conf = Replace(conf, "\\", "")</p><p> conf = Replace(conf, "/", "")</p><p> </p><p> finalFileName = Replace(convFileName, "<Configuration>", conf)</p><p> </p><p> ' If no configuration</p><p> If finalFileName = convFileName And itemCount > 0 Then</p><p> finalFileName = Left(convFileName, InStrRev(convFileName, ".") - 1) & "_" & i & Mid(convFileName, InStrRev(convFileName, "."))</p><p> End If</p><p> </p><p> ' Remove illegal characters from filename</p><p> finalFileName = Replace(finalFileName, "<", "")</p><p> finalFileName = Replace(finalFileName, ">", "")</p><p> finalFileName = Left(finalFileName, 2) + Replace(finalFileName, ":", "", 3) ' Don't start from begin since drive has :</p><p> finalFileName = Replace(finalFileName, "*", "")</p><p> finalFileName = Replace(finalFileName, "?", "")</p><p> finalFileName = Replace(finalFileName, """", "")</p><p> finalFileName = Replace(finalFileName, "|", "")</p><p> </p><p> GetFullFileName = finalFileName</p><p>End Function</p>
<p>GetFullFileName = finalFileName</p><p>End Function</p>
any help on where to go from here would be great.
thanks
SolidworksTask Scheduler