Sets the units used by the end-user for the model.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim UType As System.Short
Dim FractBase As System.Short
Dim FractDenom As System.Short
Dim SigDigits As System.Short
Dim RoundToFraction As System.Boolean
instance.SetUnits(UType, FractBase, FractDenom, SigDigits, RoundToFraction) |
Parameters
- UType
- Model units as defined in swLengthUnit_e
- FractBase
Decimal vs. fraction as defined in swFractionDisplay_e
- FractDenom
Used only for fractional inches and is the denominator for the smallest fraction to be used, for example, 64 for 1/64
- SigDigits
Significant digits if using decimal units
- RoundToFraction
Flag denoting whether or not to round to the fraction; for example, if 4 is the denominator value given in fractDenom and the actual value is 0.27, it is rounded to 0.25
Example
Remarks
See Also
Availability
SOLIDWORKS 2001Plus FCS, Revision Number 10.0