Table of Contents

getvar

FreeSince 2.0.0

Description

Gets the value of a variable for a specified file or folder.

Syntax

getvar -filePath -variableName -configNames -clear -version

Parameters

Parameter Alias Required Description
-filePath -f No The file or folder to get the variable from.
-variableName -var No The variable name to retrieve.
-configNames -configs No The configuration names to retrieve the variable from, separated by commas.
-clear No Clears the variable value.
-version -ver No The version of the file to retrieve the variable from.

More about parameters

The file or folder to get the variable from.

The variable name to retrieve.

The configuration names to retrieve the variable from, separated by commas.

Clears the variable value.

The version of the file to retrieve the variable from.

Examples

getvar -filePath "file1.sldprt" -variableName "CustomVar"

Remarks

  • The configuration names should be separated by commas.
  • The variable must be in the data card.
  • This comand will return what's in the locale cache which may not be necessarily the latest version. For that, please use getvarfromdb.