Properties
- Property Angle() As
-
Returns or sets the angle of the drawing coordinate dimension.
The angle is measured between the axis system of the drawing view and the
local axis system of the drawing coordinate dimension.
The angle is measured in radians and is counted counterclockwise.
- Example:
-
This example sets the angle of the MyCoordDim drawing Text to 90
degrees clockwise.
You first need to compute the angle in degrees and set the
minus sign to indicate the rotation is clockwise.
Angle90Clockwise = -90 MyCoordDim.Angle = Angle90Clockwise
- Property TextProperties() As (Read Only)
-
Returns the text properties of the drawing coordinate dimension.
- Example:
-
This example retrieves in TextProperties the text properties of
the MyCoordDim drawing coordinate dimension..
Dim TextProperties As DrawingTextProperties Set TextProperties = MyCoordDim.TextProperties
- Property x() As
-
Returns or sets the x coordinate of the drawing coordinate dimension.
It is expressed with respect to the current view coordinate system.
This coordinate, like any length, is measured in millimeters.
- Example:
-
This example retrieves in X the x coordinate of the
MyCoordDim drawing coordinate dimension.
X = MyCoordDim.x
- Property y() As
-
Returns or sets the y coordinate of the drawing coordinate dimension.
It is expressed with respect to the current view coordinate system.
This coordinate, like any length, is measured in millimeters.
- Example:
-
This example sets the y coordinate of the
MyCoordDim drawing coordinate dimension to 5 inches.
You need first to convert the 5 inches into millmeters.
NewYCoordinate = 5*25.4/1000 MyCoordDim.y = NewYCoordinate
Methods
- Sub GetCoordValues( oType, oX, oY, oZ)
-
Returns the value of the drawing coordinate dimension.
- Parameters:
-
- oType
- oType (0: 2D coordinate dimension, 1: 3D coordinate dimension). dd>
- oX
- X value. dd>
- oY
- Y value. dd>
- oZ
- Z value (=0. if 2D coordinate dimension).
- Example:
-
This example gets the type, x, y and z of the MyCoordDim drawing CoordDim
MyCoordDim.GetCoordValues(oType, oX, oY, oZ)