IDimension::Expression

Description

This property allows you to get and change dimension values using a mathematic expression. An expression may be a simple positive real number or a compound statement containing other dimensions and mathematical operation like +, -, *, / that connect them or functions: sin(), cos(), sqrt() - square root, ^ - raising to a power, log(), ln(), exp() , etc.

Syntax

Property get:

DimensionExpression = Expression ( );

Return: (String) DimensionExpression

A string with a dimension expression.

 

Property set:

Expression( DimensionExpression );

Input: (String) DimensionExpression

A string with a dimension expression.

Note

Dimensions that are used in Expression must follow the standard "ModelTitel:DimensionInternalName", where ModelTitel is a model title that you can get using IPdm::TitleOfPidor if there is a part file, by the ICimDocument::Title method. DimensionInternalName is an internal name of dimensions that you can get from the  IDimension::Name property.

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.