Hide menu
Loading...
Searching...
No Matches

Base class for various dimension types. More...

Inheritance diagram for cadex.Drawing.Dimension:
cadex.Drawing.Element cadex.BaseObject cadex.Drawing.AngularDimension cadex.Drawing.DiametricDimension cadex.Drawing.LinearDimension cadex.Drawing.RadialDimension

Public Types

enum  ArrowType {
  Undefined = 0 , ClosedFilled = 1 , ClosedBlank = 2 , Closed = 3 ,
  Dot = 4 , ArchitecturalTick = 5 , Oblique = 6 , Open = 7 ,
  OriginIndicator = 8 , OriginIndicator2 = 9 , RightAngle = 10 , Open30 = 11 ,
  DotSmall = 12 , DotBlank = 13 , DotSmallBlank = 14 , Box = 15 ,
  BoxFilled = 16 , DatumTriangle = 17 , DatumTriangleFilled = 18 , Integral = 19
}
 the arrow type. More...
 
enum  ArrowheadPlacementType { Internal , External }
 Represents the arrow head placement. More...
 

Public Member Functions

 Dimension (global::System.IntPtr cPtr, bool cMemoryOwn)
 
cadex.Drawing.Dimension.ArrowType FirstArrowType ()
 Returns ArrowType.Undefined if IsNull().
 
void SetFirstArrowType (cadex.Drawing.Dimension.ArrowType theFirstArrowType)
 Sets type of the first arrow of dimension.
 
cadex.Drawing.Dimension.ArrowType SecondArrowType ()
 Returns ArrowType.Undefined if IsNull().
 
void SetSecondArrowType (cadex.Drawing.Dimension.ArrowType theSecondArrowType)
 
cadex.Drawing.Dimension.ArrowheadPlacementType ArrowheadPlacement ()
 Returns ArrowheadPlacementType.Internal by default or if IsNull().
 
void SetArrowheadPlacement (cadex.Drawing.Dimension.ArrowheadPlacementType theArrowheadPlacement)
 Sets the arrowhead placement.
 
bool AlignTextHorizontally ()
 Returns true if the measurement text is align horizontally.
 
void SetAlignTextHorizontally (bool theAlignTextHorizontally)
 
double MeasurementValue ()
 Returns the actual measurement.
 
void SetMeasurementValue (double theMeasurementValue)
 Sets the actual measurement.
 
cadex.Drawing.Text Text ()
 Returns the dimension text.
 
void SetText (cadex.Drawing.Text theText)
 
- Public Member Functions inherited from cadex.Drawing.Element
 Element (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void SetUuid (System.Guid theUuid)
 
System.Guid Uuid ()
 
void Accept (cadex.Drawing.ElementVisitor theVisitor)
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static new bool CompareType (cadex.BaseObject theObject)
 
static cadex.Drawing.Dimension Cast (cadex.Drawing.Element theBase)
 
- Static Public Member Functions inherited from cadex.Drawing.Element
static bool CompareType (cadex.BaseObject theObject)
 Returns true if theObject has the Element type.
 
static cadex.Drawing.Element Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.Drawing.Element
override void Dispose (bool disposing)
 

Detailed Description

Base class for various dimension types.

Dimension entities show length, angle, radius and diameter measurements.

Member Enumeration Documentation

◆ ArrowheadPlacementType

Represents the arrow head placement.

Arrowhead Placment Type Example
Internal Arrowhead Placment
External Arrowhead Placment

◆ ArrowType

the arrow type.

Arrow Types

Member Function Documentation

◆ AlignTextHorizontally()

bool cadex.Drawing.Dimension.AlignTextHorizontally ( )
inline

Returns true if the measurement text is align horizontally.

◆ ArrowheadPlacement()

cadex.Drawing.Dimension.ArrowheadPlacementType cadex.Drawing.Dimension.ArrowheadPlacement ( )
inline

Returns ArrowheadPlacementType.Internal by default or if IsNull().

Arrowheads can be outside or inside the dimension lines. Returns the arrowhead placement.

◆ Dispose()

override void cadex.Drawing.Dimension.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.BaseObject.

◆ FirstArrowType()

cadex.Drawing.Dimension.ArrowType cadex.Drawing.Dimension.FirstArrowType ( )
inline

Returns ArrowType.Undefined if IsNull().

Returns ArrowType.ClosedFilled by default. Returns type of the first arrow of dimension.

◆ MeasurementValue()

double cadex.Drawing.Dimension.MeasurementValue ( )
inline

Returns the actual measurement.

◆ SecondArrowType()

cadex.Drawing.Dimension.ArrowType cadex.Drawing.Dimension.SecondArrowType ( )
inline

Returns ArrowType.Undefined if IsNull().

Returns ArrowType.ClosedFilled by default. Returns type of the second arrow of dimension.

◆ SetArrowheadPlacement()

void cadex.Drawing.Dimension.SetArrowheadPlacement ( cadex.Drawing.Dimension.ArrowheadPlacementType theArrowheadPlacement)
inline

Sets the arrowhead placement.

◆ SetFirstArrowType()

void cadex.Drawing.Dimension.SetFirstArrowType ( cadex.Drawing.Dimension.ArrowType theFirstArrowType)
inline

Sets type of the first arrow of dimension.

◆ SetMeasurementValue()

void cadex.Drawing.Dimension.SetMeasurementValue ( double theMeasurementValue)
inline

Sets the actual measurement.

◆ Text()

cadex.Drawing.Text cadex.Drawing.Dimension.Text ( )
inline

Returns the dimension text.