Using Design Script w/ ICS Rendition Service for Character Substitution

Hi, 

I was trying to play around of the printing method in case the ICS server is down. 

When I do create rendition, the following code for printing file name works. 

if (characters eq "$FILE$") then
envr_var = "RENDSVC_VAULTPATHNAME"
characters = envr_value
envr_var = "RENDSVC_DOCFILENAME"
characters = characters + "\" + envr_value
endif

The file consists this code was in Projectwise.

I exported it, and instead of using create rendition, I used "File">>"Print">>"Design Script"

Neither characters or envr_value printed.

I assume that these codes only work for ICS server and to make this work is using Create Rendition Server.

How do achieve the same result with a code allows me to print locally?

I tried the code below, but result was bit different.

if (characters eq "$FILE$") then
characters = ip_design

So my question is how would I print out same value as the code for ICS server.

Any suggestion or hint is appreicaited

Regards,

KZ