Using Variables in Target File Names

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.

Using Variables in Target File Names

Postby Haz on Thu Feb 26, 2015 3:08 am

I'm pretty new to Flare so excuse if this is glaringly obvious. I want to use the value of a variable as part of the output file name. Specifically, I have a variable for the document revision that I want to include in the output file name, e.g. ThisUserGuide-<VersionNumnber>.pdf. Is it possible?
Haz
Propeller Head
 
Posts: 16
Joined: Thu Nov 20, 2014 3:01 am

Re: Using Variables in Target File Names

Postby Paulie on Tue Mar 03, 2015 7:03 pm

In TOCs you can enter variables in the following format, but unfortunately this does not work for file names:
Code: Select all
Welcome to version [%=MyVariableSet.MyVersionNumber%]


Our workaround is to add 'VVV' to the end of our file names, then run a script to swap this placeholder text with the version number after our overnight build completes.
"In an ideal world, software should be simple, well designed, and completely intuitive to end users. In the real world, good documentation is king."
Paulie
Sr. Propeller Head
 
Posts: 140
Joined: Sun Mar 01, 2015 3:01 pm

Re: Using Variables in Target File Names

Postby Haz on Wed Mar 04, 2015 12:49 am

Thanks Paulie. The workaround sounds like a good plan.

Cheers
Haz
Haz
Propeller Head
 
Posts: 16
Joined: Thu Nov 20, 2014 3:01 am

Re: Using Variables in Target File Names

Postby dorcutt on Wed Mar 04, 2015 7:37 am

Wow, the fact that [%=MyVariableSet.MyVariable%] works is a godsend. My TOCs just became much happier. Thanks for sharing that tip!
-Dan, Propellerhead-in-training
dorcutt
Sr. Propeller Head
 
Posts: 234
Joined: Thu May 15, 2014 12:16 pm


Return to Tips and Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

cron