Procedure SecondaryUnits sets the secondary unit parameters for the active document. The secondary units setting is used primarily for display of alternate dimensions when a dual dimension standard is active.
{| class="wikitable" style="float: right;" |+ Table - Units Formats ! Units Format
| ! Constant |
|---|
| Decimal |
| style="text-align:center" |
| - |
| Fractional |
| style="text-align:center" |
| - |
| Decimal Ft/Inches |
| style="text-align:center" |
| - |
| Fractional Ft/Inches |
| style="text-align:center" |
| } |
| { |
| + Table - Standard Unit Settings |
| ! Units Setting !! Constant |
| - |
| Custom |
| style="text-align:center" |
| - |
| Feet/Inches |
| style="text-align:center" |
| - |
| Inches |
| style="text-align:center" |
| - |
| Feet |
| style="text-align:center" |
| - |
| Yards |
| style="text-align:center" |
| - |
| Miles |
| style="text-align:center" |
| - |
| Microns |
| style="text-align:center" |
| - |
| Millimeters |
| style="text-align:center" |
| - |
| Centimeters |
| style="text-align:center" |
| - |
| Meters |
| style="text-align:center" |
| - |
| Kilometers |
| style="text-align:center" |
| } |
PROCEDURE SecondaryUnits(
style : INTEGER;
dimPrec : LONGINT;
format : INTEGER;
showMark : BOOLEAN;
dispFrac : BOOLEAN);def vs.SecondaryUnits(style, dimPrec, format, showMark, dispFrac):
return None| Name | Type | Description |
|---|---|---|
| style | INTEGER | Active secondary unit style for document. |
| dimPrec | LONGINT | Dimension precision. |
| format | INTEGER | Decimal formatting. |
| showMark | BOOLEAN | Unit mark display setting. |
| dispFrac | BOOLEAN | Fractional display setting. |
See [[VS:GetPrimaryUnitInfo| GetPrimaryUnitInfo]] for details on changes in version 9 and again in version 12.
==== VectorScript ====
SecondaryUnits(1, 6, 2, TRUE, TRUE);
{ Sets the secondary units to feet/inches with a dimension precision of 1/64, }
{ unit mark displayed, and fractional display of units values enabled. }==== Python ====
Availability: from MiniCAD 7.0
- Units