NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::SketchDimensionBuilder Class Reference

Edit the geometry references of an existing sketch dimension. More...

Inheritance diagram for NXOpen::SketchDimensionBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

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::SelectNXObjectFirstGeometry ()
 Returns the first geometry
Created in NX5.0.0. More...
 
NXOpen::SelectNXObjectSecondGeometry ()
 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::NXObjectCommit ()
 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::NXObjectGetObject ()
 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...
 

Detailed Description

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.

Member Enumeration Documentation

This enum determines the expression behavior when a dimension is attached to new geometry.

Enumerator
ExpOptionKeepExpression 

keep expression, adjust geometry

ExpOptionMeasureGeometry 

remove expression, measure geometry

Member Function Documentation

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")

Parameters
optionoption
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")

Parameters
radiusradius
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


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.