DriveWorks Pro 18: MyNumber [send feedback...]

MyNumber

Gets the specified number from within the owners name.

Syntax

MyNumber([Index])

Where:

Index (optional) is the index specifying which number to return.

When Index is used:
  • A positive number will count the part to return from the left
  • a negative number will count the part to return from the right
  • When no index is specified an index of 1 will be used

Examples

Variables

See Variables.

Variable NameRuleResult
DWVariableMyVar123Test45Test6MyNumber(1)123
DWVariableMyVar123Test45Test6MyNumber(2)45
DWVariableMyVar123Test45Test6MyNumber(3)6
DWVariableMyVar123Test45Test6MyNumber(-3)123
DWVariableMyVar123Test45Test6MyNumber(-2)45
DWVariableMyVar123Test45Test6MyNumber(-1)6

Please note how the index of the number can be supplied by a positive and negative value.

Numbers are treated as multi digit values if adjacent to one another.

Model Rules - see Model Rules.

Model NameRuleResult
Assem1\Part35AMyNumber(2)35
Assem1\Part35AMyNumber(-2)1

DriveWorks 3D Document - see DriveWorks 3D File.

Root AddressRuleResult
Root\RootNode3\ChildNode-9MyNumber(1)3
Root\RootNode3\ChildNode-9MyNumber(-1)9

Table of Contents