Environment variables set by rendition service for character substitution


  
 Applies To 
  
 Product(s):Bentley i-Model Composition Server for PDF (iCS)
 Version(s):08.11.11.449
 Environment: N/A
 Area: PDF
 Subarea: 
 Original Author:Dawn Gentry, Bentley Technical Support Group
  

 

 

 

 

 

 

 

 

Note: This Wiki also applies to ProjectWise Dynamic Composition Server for PDF (DCS).

Background

When creating renditions, the InterPlot processor defines a number of ProjectWise properties in the IPS plot properties that can be used for design script text substitution.  They will not appear as operating system environment variables in either the iplotorg.exe or ustation.exe processes.

Steps to Accomplish

For example, the following logic in a design script will substitute the name of the ProjectWise Explorer submitting user or the PW login name persisted in a stored job, or if not defined, the Windows user name.

if (characters == "$USER") then

   envr_var = "RENDSVC_USERNAME"

   characters = envr_value

endif 

Below is a list of available variables (note that in DCS, these variables start with "DCS_"  and in iCS, they start with "RENDSVC_".)

RENDSVC_JOBNAME

RENDSVC_DATASOURCE

RENDSVC_USERNAME

RENDSVC_USERDESC

RENDSVC_USEREMAIL

RENDSVC_DOCID

RENDSVC_DOCNAME

RENDSVC_DOCFILENAME

RENDSVC_DOCDESC

RENDSVC_DOCVERSION

RENDSVC_DOCCREATOR

RENDSVC_DOCUPDATER

RENDSVC_DOCFILEUPDATER

RENDSVC_DOCCREATETIME

RENDSVC_DOCUPDATETIME

RENDSVC_DOCFILEUPDATETIME

RENDSVC_DOCWORKFLOWNAME

RENDSVC_DOCSTATENAME

RENDSVC_VAULTID

RENDSVC_VAULTNAME

RENDSVC_VAULTDESC

RENDSVC_VAULTPATHNAME

RENDSVC_VAULTPATHDESC

RENDSVC_FULLFILEPATHNAME

RENDSVC_ENVPROP_<DocumentEnvironmentName>

RENDSVC_PROJPROP_<RichProjectPropertyName>

Note: When using ProjectWise document environment and rich project properties, if the property contains a space, use an underbar in the variable name. 

For example, if the project property is "Project Name", the rendition variable will be RENDSVC_PROJPROP_PROJECT_NAME.