NX Open C++ Reference Guide
|
Edit the geometry references of an existing sketch dimension. More...
Public Types | |
enum | ExpOption { ExpOptionKeepExpression, ExpOptionMeasureGeometry } |
This enum determines the expression behavior when a dimension is attached to new geometry. More... | |
Public Member Functions | |
NXOpen::SketchDimensionBuilder::ExpOption | ExpressionOption () |
Returns the expression option Created in NX5.0.0. More... | |
NXOpen::SelectNXObject * | FirstGeometry () |
Returns the first geometry Created in NX5.0.0. More... | |
NXOpen::SelectNXObject * | SecondGeometry () |
Returns the second geometry. More... | |
void | SetExpressionOption (NXOpen::SketchDimensionBuilder::ExpOption option) |
Sets the expression option Created in NX5.0.0. More... | |
void | SetSnapRadius (double radius) |
Sets the snap radius. More... | |
double | SnapRadius () |
Returns the snap radius. More... | |
Public Member Functions inherited from NXOpen::Builder | |
NXOpen::NXObject * | Commit () |
Commits any edits that have been applied to the builder. More... | |
void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. More... | |
std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. More... | |
NXOpen::NXObject * | GetObject () |
Returns the object currently being edited by this builder. More... | |
void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. More... | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. More... | |
Public Member Functions inherited from NXOpen::TaggedObject | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Edit the geometry references of an existing sketch dimension.
For active dimensions, the driving expression can be kept or reset to the measured value of the new geometry.
To create a new instance of this class, use NXOpen::SketchCollection::CreateDimensionBuilder
Created in NX5.0.0.
NXOpen::SketchDimensionBuilder::ExpOption NXOpen::SketchDimensionBuilder::ExpressionOption | ( | ) |
Returns the expression option
Created in NX5.0.0.
License requirements : None
NXOpen::SelectNXObject* NXOpen::SketchDimensionBuilder::FirstGeometry | ( | ) |
Returns the first geometry
Created in NX5.0.0.
License requirements : None
NXOpen::SelectNXObject* NXOpen::SketchDimensionBuilder::SecondGeometry | ( | ) |
Returns the second geometry.
This will be NULL for Radius or Diameter dimensions.
Created in NX5.0.0.
License requirements : None
void NXOpen::SketchDimensionBuilder::SetExpressionOption | ( | NXOpen::SketchDimensionBuilder::ExpOption | option | ) |
Sets the expression option
Created in NX5.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
option | option |
void NXOpen::SketchDimensionBuilder::SetSnapRadius | ( | double | radius | ) |
Sets the snap radius.
This is used to determine if the geometry is selected at a control point.
Created in NX5.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
radius | radius |
double NXOpen::SketchDimensionBuilder::SnapRadius | ( | ) |
Returns the snap radius.
This is used to determine if the geometry is selected at a control point.
Created in NX5.0.0.
License requirements : None