14.2.3. Constants

Constant

Meaning

  

$CURRENT_DATE.

Current date

$CADENAS_LANGUAGE.

Current language

$PROJECT_VERSION.

Project version

$VALUERANGES.

Values of all value range variables

$VALUERANGESWITHNAME.

Values of all value range variables with names of the variables

$CHANGEABLEVALUES.

Values of all value range variables that can be changed by the user, i.e. are not locked (see common.cfg - LockDimRange=0/1)

$CHANGEABLEVALUESWITHNAME.

Changeable value ranges with names

$CATALOG_NAME.

Name of catalog

$CATALOG_DESC.

Visible name of the catalog (in the current language)

$SHORTNB.

Short standard designation

$CADSYSTEMNAME.

Name of registered CAD system (if more than one is registered, separate by comma)

are registered, then comma-separated list)

$CALCED_ROW.

The line number that is currently being calculated

$NB.

Standard name

$LINA.

BOM name

$NENN.

For DIN 912 e.g. $d.x$L. (Only for standard parts, not for catalogs)

$NORM_NUMBER.

Standard number of a part

Located in the tab file; can be seen in PARTdesigner -> Identification specifications or in index tree

$NORM_TITLE.

Standard title of a part

Located in the tab file; can be seen in PARTdesigner -> Identification specifications or in index tree

$MATERIAL_NAME.

Material (internal name) from the material dialog during export (see PARTdataManager -> Extras -> Settings -> tab PARTdataManager -> Select material when exporting [Choose material on export] ; can be switched on or off)

(Attention: For ERP functionality content, additional column needed)

$MATERIAL_DESC.

Description text for the material

(Attention: For ERP functionality content, additional column needed)

$VARNAME.

Variable name

(For example in PARTadmin and PARTlinkManager in the ERP settings for the specification of a standard designation or in PARTdesigner, PARTproject in the line description)

The syntax for the variable description is:

$VARNAME(SRC=VARDESC).

Syntax for the value description is:

$VARNAME(SRC=VALDESC).

Syntax for the unit is:

$VARNAME(SRC=VARUNIT).

In addition, you can state the language optionally:

$VARNAME(SRC=VARDESC;LANGUAGE=german).

$VARDESC.

Variable description

$VALDESC. Variable's value description
$VARVALUE. Variable value
$LISTOFCOLUMNS.

Display of list with variable values of current row. The format of the display may be influenced.

Example:

$LISTOFCOLUMNS(COLTYPE=ALL;EXCLUDE=D,L;
VALUE=$VARNAME.=$VARVALUE.)
  
COLTYPE     
ALL         Alle Variablen
VISIBLE     Alle sichtbaren VAriablen
ERP         Alle ERP Variablen

  
EXCLUDE     Liste von VAriablen, die nicht ausgegeben
            werden sollen
INCLUDE     Liste von Variablen, die zusätzlich 
            zu den durch COLTYPE spezifizierten Variablen 
            ausgegeben werden sollen

VALUE       Gibt an, wie die Daten für eine Variabele
            ausgegeben werden sollen
            Dabei können die folgenden Platzhalter 
            verwendet werden
$VARNAME.   Variablenname
$VARDESC.   Variablenbeschreibung
$VALDESC.   Wertebeschreibung
$VARVALUE.  Wert

CURRENTVARSET

Used in order to uniquely identify a row.

The variable CURRENTVARSET contains current values of all variables. It can be used to transfer parameters to a website, for example.

The variable CURRENTVARSET can be specified by different type declarations.

Example:

$CURRENTVARSET(type=ERP_VARSET,MAXLENGTH=4000)

Possible types are:

  • COMPLETE

  • ERP_VARSET

  • ERP_COMPLETE

  • ERP_UPDATE

  • SHORT (compact varset, sufficient to find a row)

  • XVARSET (only value ranges)

The types ERP_* and SHORT support the "MAXLENGTH" parameter in addition.

The types ERP_* support a parameter PINDIMVARS (value range 0/1). PINDIMVARS controls, whether dimensioning variables shall be included in the varset, which is not the case by default.

Any ERP field

Address like all constants via $xy