KnowledgeInterfaces Dimension (Object)
All Frameworks Object Hierarchy This Framework Previous Next Indexes
Dimension (Object)
IUnknown
|
+---IDispatch
|
+---CATBaseUnknown
|
+---CATBaseDispatch
|
+---AnyObject
|
+---Parameter
|
+---RealParam
|
+---Dimension
Represents the dimension parameter.
It is an abstract object which is not intended to be created as such,
but from which the length and angle parameters derive.
See also:
Length , Angle
Property Index
Unit
Returns the unit used for this dimension object.
Method Index
ValueAsString2
Gets the value of the parameter as a string, with a given precision.
Properties
Returns the unit used for this dimension object.
Methods
o Func ValueAsString2 ( long iNbDecimals ,boolean iShowTrailingZeros ) As CATBSTR
Gets the value of the parameter as a string, with a given precision.
Parameters:
iNbDecimals
the maximum number of decimal places to use to generate the string (minimum 0, maximum 9)
iShowTrailingZeros
this argument says if trailing zeros have to be shown
Example:
This example gets the value of the existing dimension parameter
and shows it in a message box
Dim str
str = dimension.ValueAsString ;
MessageBox str
Copyright © 2003, Dassault Systèmes. All rights reserved.