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. More... | |
NXOpen::Features::GeometricConstraintData::AutoConstraintType | AutomaticConstraintType () |
Returns the automatic constraint type Created in NX5.0.0. More... | |
bool | CanInferConstraintFromAttachmentParent () |
Returns the flag indicating if a constraint can be inferred from the parent of the attachment object of the point. More... | |
NXOpen::Offset * | Curvature () |
Returns the curvature. More... | |
NXOpen::Offset * | CurvatureDerivative () |
Returns the curvature derivative. More... | |
bool | HasSymmetricModelingConstraint () |
Returns the flag indicating if tangent direction is used for creating symmetric modeling constraint. More... | |
NXOpen::Point * | Point () |
Returns the point. More... | |
void | SetAutomaticConstraintDirection (NXOpen::Features::GeometricConstraintData::ParameterDirection autoConstraintDirection) |
Sets the automatic constraint direction type. More... | |
void | SetAutomaticConstraintType (NXOpen::Features::GeometricConstraintData::AutoConstraintType autoConstraintType) |
Sets the automatic constraint type Created in NX5.0.0. More... | |
void | SetCanInferConstraintFromAttachmentParent (bool canInferConstraintFromAttachmentParent) |
Sets the flag indicating if a constraint can be inferred from the parent of the attachment object of the point. More... | |
void | SetCurvature (NXOpen::Offset *curvature) |
Sets the curvature. More... | |
void | SetCurvatureDerivative (NXOpen::Offset *curvatureDerivative) |
Sets the curvature derivative. More... | |
void | SetHasSymmetricModelingConstraint (bool symmetric) |
Sets the flag indicating if tangent direction is used for creating symmetric modeling constraint. More... | |
void | SetPoint (NXOpen::Point *point) |
Sets the point. More... | |
void | SetTangentDirection (NXOpen::Direction *tangentDirection) |
Sets the tangent direction. More... | |
void | SetTangentMagnitude (NXOpen::Scalar *tangentMagnitude) |
Sets the tangent magnitude. More... | |
NXOpen::Direction * | TangentDirection () |
Returns the tangent direction. More... | |
NXOpen::Scalar * | TangentMagnitude () |
Returns the tangent magnitude. More... | |
Public Member Functions inherited from NXOpen::TaggedObject | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents Geometric Constraint Data class.
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 NXOpen.Features.GeometricConstraintData.
NXOpen.Features.GeometricConstraintData can be specified as automatic or fixed type.
Automatic type -
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 NXOpen::Features::GeometricConstraintData::AutoConstraintType and NXOpen::Features::GeometricConstraintData::ParameterDirection are necessary.
Fixed type -
To specify NXOpen.Features.GeometricConstraintData as a fixed type, the actual objects representing different types of constraints such as NXOpen::Direction for tangent, NXOpen::Scalar for tangent magnitude or NXOpen::Offset for curvature or curvature derivative are specified.
To create a new instance of this class, use NXOpen::Features::GeometricConstraintDataManager::CreateGeometricConstraintData
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.
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 : None
NXOpen::Features::GeometricConstraintData::AutoConstraintType NXOpen::Features::GeometricConstraintData::AutomaticConstraintType | ( | ) |
Returns the automatic constraint type
Created in NX5.0.0.
License requirements : None
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 : None
NXOpen::Offset* NXOpen::Features::GeometricConstraintData::Curvature | ( | ) |
Returns the curvature.
Used only when automatic constraint type is none.
Created in NX5.0.0.
License requirements : None
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 : None
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 : None
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 : None
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 : None
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 : None
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 : None
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 : None
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 : None
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 : None
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 : None
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 : None
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 : None
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 : None
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 : None