Obsolete. Superseded by IDisplayDimension::SetUnits2.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SetUnits( _
ByVal UseDoc As System.Boolean, _
ByVal UType As System.Integer, _
ByVal FractBase As System.Integer, _
ByVal FractDenom As System.Integer, _
ByVal RoundToFraction As System.Boolean _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As IDisplayDimension
Dim UseDoc As System.Boolean
Dim UType As System.Integer
Dim FractBase As System.Integer
Dim FractDenom As System.Integer
Dim RoundToFraction As System.Boolean
Dim value As System.Integer
value = instance.SetUnits(UseDoc, UType, FractBase, FractDenom, RoundToFraction) |
Parameters
- UseDoc
True uses the document settings for units, false uses the setting values passed to the arguments (see Remarks)
- UType
Unit display setting as defined in swLengthUnits_e or swAngleUnits_e
- FractBase
Decimal or fraction display setting as defined in swFractionDisplay_e
- FractDenom
Denominator for fraction display
- RoundToFraction
True rounds values to the nearest fraction, false displays fractions only if the values are exact
Return Value
Return status (see Remarks)
Remarks
See Also
Availability
SOLIDWORKS 99, datecode 1999207