Just to add to this discussion, I tried using the "Format string" type and I pasted the input formula right in there.
When I tried to execute the template it crashed windows explorer.
I re-opened the folder and saw the file was created but the variable was not populated.
First of all have you looked at the administration guide within C:\Program Files\SolidWorks Enterprise PDM\Lang\GB as a resource guide?
Within The template cards section of edit template you have to link the card variable with a template variable.
Then within the files and folders section you have to then map the template variable with the card variable.
Or have I picked up the question incorrectly?
I think maybe my description wasn't clear of the problem.
It's not a problem with populating the file card variable from the template variable, but rather the opposite - I need to populate the template variable from the template card variable.
E.g. (i've changed variable names for clarity)
The template card has an edit box tied to variable "T_Score" - this is derived from an input formula that looks at other variables on the template card.
The file card has an edit box tied to variable "F_Score".
In the template wizard, I've got a template variable named "TEMP_Score".
What I need is to copy "T_Score" to "F_Score".
I don't want to prompt the user for "T_Score" and it's not an environmental variable or anything like that. The value comes from an input formula. I need a way to copy that score to the file card. When creating the template variable ("TEMP_Score") there is no option to copy a template card variable ("T_Score") that I can see.
I know how to populate "F_Score" from "TEMP_Score" - which is what you described above.
Problem is that I can't figure out how to populate "TEMP_Score" from "T_Score".
Does that make sense?
I thought I may have picked it up wrong, hope I've picked it up correctly this time.
If you want the value of T_Score to populate TEMP_Score then create an edit box on the template card and link it to variable TEMP_Score. In the input formula for this edit box select the variable T_Score. This edit box will now populate with whatever you put in for the value of T_Score.
It's a Monday so still not fully up to speed . Hope this helps.
Steven, you make it sound so easy, as I thought it would be!
However using input formula there is no option for selecting an x2 (card) variable.
I can tie it to another template variable, or a handful of date/time formats.
Here is a screenshot.
Like I mentioned in my last post I changed the names to make it more clear what I was trying to do, so variable names are a little different in this actual screenshot, but the goal is still the same.
I have the card variable "DRR_ImpactScore".
I have the template variable "T_Score".
I don't see how I can populate "T_Score" from "DRR_ImpactScore".
Any chance you could export the template and attach it here? I can then have a look at it if you want as well as giving a better understanding.
I have it working.
When you create the template variable, if you set it to "format string" and leave it blank, it will copy the value from whatever card variable it is tied to.
The problem is that this wasn't working because I had control logic on the template card that was hiding the edit box.
Since this wasn't working, it led me down the road of trying to find something that explicitly tied the card variable to the template variable. This explicit link doesn't exist, but there is an implicit link that if you leave the format string blank, it will copy the value from the template card.
This is not really described in the documentation, but I guess can kind of be assumed from the wording "Variables to copy for selected card" (pg 318 of the 2015 admin guide).
I actually figured this out from digging through my training manual from when I took the admin class and in one of the demo exercises I saw how they were copying values this way.
On another forum post I had about how to get the input formula working, it was suggested that if you use control logic to hide a control, there can be issues. It seems that if you use control logic to hide the control, than the value of it's variable won't be available to use for other input formulas or for templates.
And this is documented on page.....oh wait, it's not.
I absolutely hate this software sometimes!
I can't even begin to guess how many hours I've wasted hunting things down because behavior is not as expected and is not documented anywhere.
It's hard to believe Solidworks even puts their name on this garbage.
Glad to hear it Steve!
I've had issues before with control logic and not bringing through the variable from template to card. I ended up just shrinking the box to so it appears not to be there although with this method if re-appears after editing a card so you need to re-shrink it before saving and closing.
I do agree with hating it sometimes.