SilverScreen Solid Modeler

UnitsOfMeasure        

UnitsOfMeasure        

Previous topic Next topic  

UnitsOfMeasure        

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

UnitsOfMeasure

 

 


UnitsOfMeasure is an enumeration used by the SilverSharp routines which expect a measurement type.

 



 

C# Code

 

 enum UnitsOfMeasure

    {

    Feet = 1,

    Inches,

    Meters,

    Centimeters,

    Millimeter,

    Generic,

    };

 

 


Members

Name

Description

Centimeters

One unit in the drawing is equivalent to one centimeter

Feet

One unit in the drawing is equivalent to one foot

Generic

One unit in the drawing is equivalent to one abstract mathematical unit.

Inches

One unit in the drawing is equivalent to one inch

Meters

One unit in the drawing is equivalent to one meter

Millimeters

One unit in the drawing is equivalent to one millimeter

 

 

Example

The following code shows how a Notation enumeration is used

 

C# Code

 

 SS_XYZ p1 = new SS_XYZ(5.0,6.0,7.0);

 

 SC.ss_command("note p1 is {0}",

                p1.ToString(Notation.Architect, UnitsOfMeasure.Inches));

 

 

 

Remarks

The distance represented by one unit in a SilverScreen drawing depends upon the drawing's unit of measure. See Notation for an example.

 

 

See also

Enumerations, Notation