SilverScreen Solid Modeler

DIM_STUFF

DIM_STUFF

Previous topic Next topic  

DIM_STUFF

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SilverSharp.DIM_STUFF

 

Structure

A data type that stores the properties of a DETAIL_NODE. The "DIM" in "DIM_STUFF" stands for "Dimensioning".

 

 

 

C# Code

 

class DIM_STUFF

  {

  [System.Flags]

  enum DetailBits

     {

     FIRST_WITNESS    = 0X0004,

     SECOND_WITNESS   = 0X0008,

     FIRST_ARROW      = 0X0010,

     SECOND_ARROW     = 0X0020,

     WITH_UNITS       = 0X0040,

     WITH_ZEROS       = 0X0080,

     WITH_UNDERSCORE  = 0X0003,

     ARROW_INSIDE     = 0X0100,

     SINGLE_TOLERANCE = 0X0200,

     DOUBLE_TOLERANCE = 0X0400,

     WITHOUT_LEADER   = 0X8000,

     WITH_BOX         = 0X4000,

     WITH_ORIGIN      = 0X2000,

     ALL_AROUND       = 0X1000,

     };

 

  enum ArrowTypes

     {

     Arrow = 1,

     Tic   = 2,

     };

       

  enum LocationTypes

     {

     Inside   = 1,

     Outside  = 2,

     Above    = 3,

     };        

 

  enum DirectionTypes

     {

     Horizontal = 1,

     Vertical   = 2,

     Parallel   = 3,

     };

 

  property DetailBits     bits_detail     { get; }

  property ArrowTypes     arrow_type      { get; }

  property LocationTypes  text_location   { get; }

  property DirectionTypes text_direction  { get; }

  property DirectionTypes dim_direction   { get; }

 

  initonly FONT_NODE      font_ptr;

 

  property double         text_height     { get; }

  property double         text_aspect     { get; }

  property double         pos_tolerance   { get; }

  property double         neg_tolerance   { get; }

  property double         arrow_size      { get; }

  property double         tic_size        { get; }

  property double         center_size     { get; }

  property double         witness_offset  { get; }

  property double         witness_ext     { get; }

  property double         round_value     { get; }

  property double         rotation        { get; }

  property SS_RGB         text_rgb        { get; }

  property SS_RGB         witness_rgb     { get; }

  property int            denominator     { get; }

  property int            precision       { get; }

  property UnitsOfMeasure sec_units       { get; }

  property Notation       sec_notation    { get; }

  property int            sec_denominator { get; }

  property int            sec_precision   { get; }

  property bool           is_filled       { get; }

  };

 

 

 

Properties

The following read-only properties mimic the purpose of their counter-parts in the SilverC DIM_STUFF data type:

 

Member

Description

arrow_size

Length of arrow

center_size

Size of center

denominator

Denominator for primary dimension value

font_ptr

Pointer to FONT_NODE

is_filled

Indicates whether or not text is filled

neg_tolerance

Negative tolerance

pos_tolerance

Positive tolerance

precision

Precision for primary dimensioning value

rotation

Angle (degrees) of rotation of dimensioning

round_value

Value to identify where rounding will occur

sec_denominator

denomination for secondary dimensioning value

sec_notation

A Notation enumeration value for secondary dimensioning value

sec_precision

Precision for secondary dimensioning value

sec_units

A UnitsOfMeasure enumeration value for secondary dimensioning value

text_aspect

Aspect ratio of text

text_height

Height of text

text_rgb

Color of text

tic_size

Length of tic

witness_ext

Witness extension beyond dimensioning line

witness_offset

Offset of witness line relative to object dimensioned

witness_rgb

Color of witness lines

 

The following read-only properties extend DIM_STUFF for SilverSharp:

 

Member

Description

arrow_type

An ArrowTypes enumeration value whose meaning is as follows:

 

Name

Description

Arrow

Witness lines will use an arrow

Tic

Witness lines will use a tic-mark

bits_detail

A DetailBits flag that controls detailing appearance options

dim_direction

A DirectionTypes enumeration value whose meaning is as follows:

 

Name

Description

Horizontal

Detail orientation is horizontal

Parallel

Detail orientation is parallel to anchor points

Vertical

Detail orientation is vertical

text_direction

A DirectionTypes enumeration value whose meaning is as follows:

 

Name

Description

Horizontal

text orientation is horizontal

Parallel

text orientation is parallel to anchor points

Vertical

text orientation is vertical

text_location

A LocationTypes enumeration value whose meaning is as follows:

 

Name

Description

Above

Detail text located above

Inside

Detail text located inside

Outside

Detail text located outside

 

 

See Also

DETAIL_NODE, SilverC DIM_STUFF