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_valueendif
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$") thencharacters = 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
I have this in one of my design scripts. I haven't tested it in a bit. It looks like the main different between yours and mine is I use envr_variable instead of envr_var. My inter plot help doesn't indicate envr_var works?
if ((characters == '*$username$*') || (characters == '*$user$*')) then envr_variable="RENDSVC_USERNAME" if (envr_value == "") then characters = username else characters = envr_value endif endif
Also mine checks if the value is empty and if it is doesn't use the RENDSCV variable version
Also if you want to access the ProjectWise file path outside of renditions look at the Active Renditions stuff. This has some of it:
https://communities.bentley.com/products/projectwise/content_publishing/w/wiki/5577/digital-interplot-design-script-extensions-for-projectwise-components-cs
The iplot help has more.
PW_MASTER_FILE_URL is probably what you're looking for (that isn't an environment variable name, it's accessed differently)
Hi Kevin,
Thanks for the reply.
I changed it to envr_variable, it seems like my environment does not take that
Regards
error message says you spelled it envr_variabele instead of variable
That's embarrassing lol.
I changed it to proper English now. It gives me the same value as the envr_var. Only prints "/" which is the string in the code.
I changed it to "character = PW_Master_File" as well. It gives me the same result as the ip_design.
Appreciate the link, I did not know about it.