Dispatch\Administrate Actions.....Set Card Variables not working?

Good evening all,

   I was wondering if anyone could point me to the errors in my variables? I am trying to create a dispatch that will copy variables out of a part/asm file data card, create a word doc from a template, and paste those variables to the new word doc. 

Here's a screenshot of what a blank one should be

I had it working earlier this afternoon, but of course I didn't save the acn file and something happened (I tried to combine them into 1 dispatch). Now I recreated what I had earlier (I thought), but it won't copy the variables like it was doing before. I'm guessing that my variables aren't mapped correctly.

Here is a screenshot of what I have. I'm not good at writing these, but was able to string together this from reading these forums.

Step one: Select the Solidworks files and create shipping tag in PDM. (I tried to have the files checked in automatically but I couldn't get it to work)

This should copy the part number from the data card of the CAD, but it isn't working. It then should name the new docx. file after the one selected to create it.

 Step 2: RMB on the CAD files, Update the properties from the CAD data card to the .docx data card.

Note: There were quite a few more Set card variables Commands but I removed a majority of them just trying to get one to work.

I'm sure that this is something simple that I'm overlooking, but I've racked my brain all day trying to get back to where I was (NOTE: Save copies outside the vault?) If anyone could point me in the right direction, I'd sure appreciate it!

Thanks in advance!!!

SolidworksSolidworks Pdm/enterprise Pdm
Answers 4
WM
WM 2021-03-26 Best Answer

Hi Ian, 

You could try specifying a 'configuration' to read the variable from e.g @ 

Cheers

Wayne

IS
IS 2021-03-26

Wayne,

      Thanks! I think I'm getting there. I still have to fix the extra ., but I added a message box to show the filename and that check-in was successful. Thanks for all the help!!

WM
WM 2021-03-26

Regarding the .dot that probably depends how you are defining he new filename (I'm assuming you are maybe copying an existing word doc and renaming it?) It could be that one of the left / right string manipulations needed to isolate the file name from the file extension needs 1 adding r taking away from it? 

Regarding the Check In. This should work but need to make sure you are sending it the 'new' file name to check in including your variables and the extension (with / without the dot). If you can get your message box to display it correctly then using the same syntax on the Check In action should work. 

Cheers

Wayne

IS
IS 2021-03-26

Wayne,

   Thanks, I thought of that this morning. I did go back and specify the Default config, and it is pulling the properties correctly. Now I'm having issues with the file name that is being created. It copies the number correctly, but it keeps adding a . after the part number. I also still haven't been able to figure out how to automatically check-in the file after it is created. Any thoughts?

Lost in translation...