NX Open C++ Reference Guide
|
Represents Geometric Constraint Data class. More...
Public Types | |
enum | AutoConstraintType { AutoConstraintTypeNone, AutoConstraintTypeTangent, AutoConstraintTypeCurvature, AutoConstraintTypeCurvatureDerivative } |
Automatic constraint types. More... | |
enum | ParameterDirection { ParameterDirectionIso, ParameterDirectionSection, ParameterDirectionNormal, ParameterDirectionPerpendicular } |
Parameter direction to be used for creation of the constraint at a point which is attached to an object, for example a curve or a face. More... | |
Public Member Functions | |
NXOpen::Features::GeometricConstraintData::ParameterDirection | AutomaticConstraintDirection () |
Returns the automatic constraint direction type. | |
NXOpen::Features::GeometricConstraintData::AutoConstraintType | AutomaticConstraintType () |
Returns the automatic constraint type Created in NX5.0.0. | |
bool | CanInferConstraintFromAttachmentParent () |
Returns the flag indicating if a constraint can be inferred from the parent of the attachment object of the point. | |
NXOpen::Offset * | Curvature () |
Returns the curvature. | |
NXOpen::Offset * | CurvatureDerivative () |
Returns the curvature derivative. | |
bool | HasSymmetricModelingConstraint () |
Returns the flag indicating if tangent direction is used for creating symmetric modeling constraint. | |
NXOpen::Point * | Point () |
Returns the point. | |
void | SetAutomaticConstraintDirection (NXOpen::Features::GeometricConstraintData::ParameterDirection autoConstraintDirection) |
Sets the automatic constraint direction type. | |
void | SetAutomaticConstraintType (NXOpen::Features::GeometricConstraintData::AutoConstraintType autoConstraintType) |
Sets the automatic constraint type Created in NX5.0.0. | |
void | SetCanInferConstraintFromAttachmentParent (bool canInferConstraintFromAttachmentParent) |
Sets the flag indicating if a constraint can be inferred from the parent of the attachment object of the point. | |
void | SetCurvature (NXOpen::Offset *curvature) |
Sets the curvature. | |
void | SetCurvatureDerivative (NXOpen::Offset *curvatureDerivative) |
Sets the curvature derivative. | |
void | SetHasSymmetricModelingConstraint (bool symmetric) |
Sets the flag indicating if tangent direction is used for creating symmetric modeling constraint. | |
void | SetPoint (NXOpen::Point *point) |
Sets the point. | |
void | SetTangentDirection (NXOpen::Direction *tangentDirection) |
Sets the tangent direction. | |
void | SetTangentMagnitude (NXOpen::Scalar *tangentMagnitude) |
Sets the tangent magnitude. | |
NXOpen::Direction * | TangentDirection () |
Returns the tangent direction. | |
NXOpen::Scalar * | TangentMagnitude () |
Returns the tangent magnitude. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents Geometric Constraint Data class.
<br> This class acts as a container of various types of geometric constraints such as position(G0), tangent(G1), tangent magnitude, curvature(G2) and curvature derivative(G3). An array of objects of this class may be used to create a curve. Not all features support all types of constraints. For details of the supported types by a feature, refer to feature documentation. Position is a minimum required element of <b>GeometricConstraintData</b>. <br> <br> <b>GeometricConstraintData</b> can be specified as automatic or fixed type. <br> <br> Automatic type - <br> <br> When a point (G0) is attached to an object such as curve or a face, constraint types such as tangent, curvature or curvature derivative can be automatically inferred from the attached object. In this case the tangent direction is determined by some scheme decided by the feature. To specify automatic type @link Features::GeometricConstraintData::AutoConstraintType Features::GeometricConstraintData::AutoConstraintType@endlink and @link Features::GeometricConstraintData::ParameterDirection Features::GeometricConstraintData::ParameterDirection@endlink are necessary. <br> <br> Fixed type - <br> <br> To specify <b>GeometricConstraintData</b> as a fixed type, the actual objects representing different types of constraints such as @link Direction Direction@endlink for tangent, @link Scalar Scalar@endlink for tangent magnitude or @link Offset Offset@endlink for curvature or curvature derivative are specified. <br> <br> To create a new instance of this class, use @link Features::GeometricConstraintDataManager::CreateGeometricConstraintData Features::GeometricConstraintDataManager::CreateGeometricConstraintData @endlink <br>
Created in NX5.0.0.
Parameter direction to be used for creation of the constraint at a point which is attached to an object, for example a curve or a face.
ParameterDirectionIso |
Iso parameter. |
ParameterDirectionSection |
General section if point is attached to face. |
ParameterDirectionNormal |
Normal. |
ParameterDirectionPerpendicular |
Perpendicular to curve on face or edge. |
NXOpen::Features::GeometricConstraintData::ParameterDirection NXOpen::Features::GeometricConstraintData::AutomaticConstraintDirection | ( | ) |
Returns the automatic constraint direction type.
For a constraint on a face it is necessary to specify parameter direction.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
NXOpen::Features::GeometricConstraintData::AutoConstraintType NXOpen::Features::GeometricConstraintData::AutomaticConstraintType | ( | ) |
Returns the automatic constraint type
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
bool NXOpen::Features::GeometricConstraintData::CanInferConstraintFromAttachmentParent | ( | ) |
Returns the flag indicating if a constraint can be inferred from the parent of the attachment object of the point.
E.g. if point is attached to an edge or a curve on face, then infer constraint from the face of the edge or the curve.
Created in NX8.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
NXOpen::Offset* NXOpen::Features::GeometricConstraintData::Curvature | ( | ) |
Returns the curvature.
Used only when automatic constraint type is none.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
NXOpen::Offset* NXOpen::Features::GeometricConstraintData::CurvatureDerivative | ( | ) |
Returns the curvature derivative.
Used only when automatic constraint type is none
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
bool NXOpen::Features::GeometricConstraintData::HasSymmetricModelingConstraint | ( | ) |
Returns the flag indicating if tangent direction is used for creating symmetric modeling constraint.
If true, only tangent direction object is used for constraint evaluation.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
NXOpen::Point* NXOpen::Features::GeometricConstraintData::Point | ( | ) |
Returns the point.
Point is the minimum required data to create a constraint.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
void NXOpen::Features::GeometricConstraintData::SetAutomaticConstraintDirection | ( | NXOpen::Features::GeometricConstraintData::ParameterDirection | autoConstraintDirection | ) |
Sets the automatic constraint direction type.
For a constraint on a face it is necessary to specify parameter direction.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
autoConstraintDirection | auto constraint direction |
void NXOpen::Features::GeometricConstraintData::SetAutomaticConstraintType | ( | NXOpen::Features::GeometricConstraintData::AutoConstraintType | autoConstraintType | ) |
Sets the automatic constraint type
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
autoConstraintType | auto constraint type |
void NXOpen::Features::GeometricConstraintData::SetCanInferConstraintFromAttachmentParent | ( | bool | canInferConstraintFromAttachmentParent | ) |
Sets the flag indicating if a constraint can be inferred from the parent of the attachment object of the point.
E.g. if point is attached to an edge or a curve on face, then infer constraint from the face of the edge or the curve.
Created in NX8.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
canInferConstraintFromAttachmentParent | caninferconstraintfromattachmentparent |
void NXOpen::Features::GeometricConstraintData::SetCurvature | ( | NXOpen::Offset * | curvature | ) |
Sets the curvature.
Used only when automatic constraint type is none.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
curvature | curvature |
void NXOpen::Features::GeometricConstraintData::SetCurvatureDerivative | ( | NXOpen::Offset * | curvatureDerivative | ) |
Sets the curvature derivative.
Used only when automatic constraint type is none
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
curvatureDerivative | curvature derivative |
void NXOpen::Features::GeometricConstraintData::SetHasSymmetricModelingConstraint | ( | bool | symmetric | ) |
Sets the flag indicating if tangent direction is used for creating symmetric modeling constraint.
If true, only tangent direction object is used for constraint evaluation.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
symmetric | symmetric |
void NXOpen::Features::GeometricConstraintData::SetPoint | ( | NXOpen::Point * | point | ) |
Sets the point.
Point is the minimum required data to create a constraint.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
point | point |
void NXOpen::Features::GeometricConstraintData::SetTangentDirection | ( | NXOpen::Direction * | tangentDirection | ) |
Sets the tangent direction.
Used only when automatic constraint type is none.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
tangentDirection | tangent direction |
void NXOpen::Features::GeometricConstraintData::SetTangentMagnitude | ( | NXOpen::Scalar * | tangentMagnitude | ) |
Sets the tangent magnitude.
Used only when automatic constraint type is none.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
tangentMagnitude | tangent magnitude |
NXOpen::Direction* NXOpen::Features::GeometricConstraintData::TangentDirection | ( | ) |
Returns the tangent direction.
Used only when automatic constraint type is none.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")
NXOpen::Scalar* NXOpen::Features::GeometricConstraintData::TangentMagnitude | ( | ) |
Returns the tangent magnitude.
Used only when automatic constraint type is none.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING") OR cam_base ("CAM BASE")