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

Defines a component represented by a dimensional tolerance. More...

Inheritance diagram for cadex.PMI.DimensionComponent:
cadex.PMI.SemanticComponent cadex.BaseObject

Public Types

enum  DimensionType {
  Undefined , CurveLength , Diameter , SphericalDiameter ,
  Radius , SphericalRadius , ToroidalMinorDiameter , ToroidalMajorDiameter ,
  ToroidalMinorRadius , ToroidalMajorRadius , ToroidalHighMajorDiameter , ToroidalLowMajorDiameter ,
  ToroidalHighMajorRadius , ToroidalLowMajorRadius , Thickness , Angular ,
  LinearDistance , CurvedDistance
}
 

Public Member Functions

 DimensionComponent (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 DimensionComponent ()
 Constructor.
 
 DimensionComponent (double theNominalValue)
 Constructor.
 
 DimensionComponent (double theNominalValue, cadex.PMI.DimensionComponent.DimensionType theType)
 
void SetNominalValue (double theNominalValue)
 Sets the nominal value of the dimension.
 
double NominalValue ()
 Returns the nominal value of the dimension.
 
void SetTypeOfDimension (cadex.PMI.DimensionComponent.DimensionType theType)
 Sets the type of the dimension.
 
cadex.PMI.DimensionComponent.DimensionType TypeOfDimension ()
 Returns the type of the dimension.
 
- Public Member Functions inherited from cadex.PMI.SemanticComponent
 SemanticComponent (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void AddAttribute (cadex.PMI.SemanticAttribute theAttribute)
 Adds the attribute.
 
cadex.Collections.PMISemanticAttributeList Attributes ()
 Returns the attributes.
 
bool HasAttributes ()
 Returns true if semantic attributes were added and false otherwise.
 
uint NumberOfAttributes ()
 Returns the number of added attributes.
 
void Accept (cadex.PMI.SemanticAttributeVisitor theVisitor)
 Accepts the visitor.
 
void Accept (cadex.PMI.SemanticComponentVisitor theVisitor)
 Accepts the visitor.
 
- 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)
 Returns true if DimensionComponent has the SavedView type.
 
- Static Public Member Functions inherited from cadex.PMI.SemanticComponent
static bool CompareType (cadex.BaseObject theObject)
 Returns true if theObject has the SemanticComponent type.
 
static cadex.PMI.SemanticComponent Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.PMI.SemanticComponent
override void Dispose (bool disposing)
 

Detailed Description

Defines a component represented by a dimensional tolerance.

The dimensional tolerance has a nominal value and optionally additional attributes like modifiers, plus-minus bounds etc.

Examples of dimensional tolerance: dimensional size, dimensional location, angular size, etc.

See also
SemanticElement, SemanticAttribute
Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.

Member Function Documentation

◆ Dispose()

override void cadex.PMI.DimensionComponent.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.BaseObject.

◆ NominalValue()

double cadex.PMI.DimensionComponent.NominalValue ( )
inline

Returns the nominal value of the dimension.

Returns 0 by default.

Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.