User Variables

Topic Contents [Hide]Topic Contents [Show]
    1. User Variable Example

The User Variables section of the CM4D.iniĀ file allows for you to create custom variables to be applied to Image Paths (in CM4D and DataUtility) and wherever variables are used in other areas of CM4D.

User Variables may be created and defined and used with the following expression (where [x] equals the parameter of the defined User Variable): ~user,x~.

User Variables cannot be used with images that will be transferred to the Results Database, via the StreamCacheSmith service, for use in CM4D Peruse. Since user variables can be different on each computer, the image path variables are not supported by a central conversion service like the StreamCacheSmith.

User Variable Example

One way these variables may be used is to support the distribution of a single image across a network without having to change the image path, as shown below:

[UserVariables]
server= "\\NorthServer"
hood= "~User,dev~\Phase\Alpha\Hood\Images\Hood.wrl"
decklid= "\\EastServer\Phase\Alpha\Decklid\Images\Decklid.wrl"
door= "\\SouthServer\Phase\Alpha\Door\Images\Door.wrl"
myLabel= "~label~ ~chr,1~"
myExp= "MyExp: {2.0 * 3.0 + ~act,pos~} ~user,mylabel~"

As a result of the example settings above, when the variable ~user,door~ is used in place of the image path, the image Door.wrl will be loaded from the path defined in the INI file.

Can we improve this topic?