NX Open C++ Reference Guide
|
Represents a collection of sketches
To obtain an instance of this class, refer to NXOpen::Part
Created in NX3.0.0.
More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Represents a collection of sketches
To obtain an instance of this class, refer to NXOpen::Part
Created in NX3.0.0.
iterator NXOpen::SketchCollection::begin | ( | ) |
Returns an iterator addressing the first element.
NXOpen::SketchAngularDimensionBuilder* NXOpen::SketchCollection::CreateAngularDimensionBuilder | ( | NXOpen::Annotations::AngularDimension * | angularDimension | ) |
Creates a NXOpen::SketchAngularDimensionBuilder.
angularDimension | the angular dimension to be edited, if NULL. then create an angular dimension |
NXOpen::SketchAutoConstrainBuilder* NXOpen::SketchCollection::CreateAutoConstrainBuilder | ( | ) |
Creates a NXOpen::SketchAutoConstrainBuilder.
NXOpen::SketchAutoDimensionBuilder* NXOpen::SketchCollection::CreateAutoDimensionBuilder | ( | ) |
Creates a NXOpen::SketchAutoDimensionBuilder.
NXOpen::SketchConstraintBuilder* NXOpen::SketchCollection::CreateConstraintBuilder | ( | ) |
Creates a NXOpen::SketchConstraintBuilder.
NXOpen::ConvertToFromReferenceBuilder* NXOpen::SketchCollection::CreateConvertToFromReferenceBuilder | ( | ) |
Creates a NXOpen::ConvertToFromReferenceBuilder.
NXOpen::SketchCornerBuilder* NXOpen::SketchCollection::CreateCornerBuilder | ( | ) |
Creates a NXOpen::SketchCornerBuilder.
NXOpen::SketchDimensionBuilder* NXOpen::SketchCollection::CreateDimensionBuilder | ( | NXOpen::SketchDimensionalConstraint * | constraint | ) |
Creates a NXOpen::SketchDimensionBuilder.
constraint | The sketch dimensional constraint to be edited. |
NXOpen::SketchEditDefiningSectionBuilder* NXOpen::SketchCollection::CreateEditDefiningSectionBuilder | ( | ) |
Creates a NXOpen::SketchEditDefiningSectionBuilder.
NXOpen::InferredConstraintsBuilder* NXOpen::SketchCollection::CreateInferredConstraintsBuilder | ( | ) |
Creates a NXOpen::InferredConstraintsBuilder.
NXOpen::SketchIntersectionCurveBuilder* NXOpen::SketchCollection::CreateIntersectionCurveBuilder | ( | NXOpen::SketchIntersectionCurve * | operation | ) |
Creates the builder for intersection curve.
operation | operation |
NXOpen::SketchIntersectionPointBuilder* NXOpen::SketchCollection::CreateIntersectionPointBuilder | ( | NXOpen::SketchIntersectionPoint * | operation | ) |
Creates the builder for intersection point.
operation | operation |
NXOpen::SketchLinearDimensionBuilder* NXOpen::SketchCollection::CreateLinearDimensionBuilder | ( | NXOpen::Annotations::Dimension * | linearDimension | ) |
Creates a NXOpen::SketchLinearDimensionBuilder.
linearDimension | the linear dimension to be edited, if NULL, then create a linear dimension |
NXOpen::SketchMakeSymmetricBuilder* NXOpen::SketchCollection::CreateMakeSymmetricBuilder | ( | ) |
Creates a NXOpen::SketchMakeSymmetricBuilder.
NXOpen::SketchInPlaceBuilder* NXOpen::SketchCollection::CreateNewSketchInPlaceBuilder | ( | NXOpen::Sketch * | operation | ) |
Creates a NXOpen::SketchInPlaceBuilder.
Created in NX7.5.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING") OR geometric_tol ("GDT")
operation | The NXOpen::Sketch to reattach or NULL to create a new one |
NXOpen::SketchProjectBuilder* NXOpen::SketchCollection::CreateProjectBuilder | ( | NXOpen::Features::Feature * | operation | ) |
Creates a NXOpen::SketchProjectBuilder.
operation | The feature for the NXOpen::SketchProjectBuilder to be edited, if NULL then create a new one |
NXOpen::SketchQuickExtendBuilder* NXOpen::SketchCollection::CreateQuickExtendBuilder | ( | ) |
Creates a NXOpen::SketchQuickExtendBuilder.
NXOpen::SketchQuickTrimBuilder* NXOpen::SketchCollection::CreateQuickTrimBuilder | ( | ) |
Creates a NXOpen::SketchQuickTrimBuilder.
NXOpen::SketchRadialDimensionBuilder* NXOpen::SketchCollection::CreateRadialDimensionBuilder | ( | NXOpen::Annotations::Dimension * | radialDimension | ) |
Creates a NXOpen::SketchRadialDimensionBuilder.
radialDimension | the radial dimension to be edited, if NULL, then create a radial dimension |
NXOpen::SketchRapidDimensionBuilder* NXOpen::SketchCollection::CreateRapidDimensionBuilder | ( | ) |
Creates a NXOpen::SketchRapidDimensionBuilder.
NXOpen::Sketch* NXOpen::SketchCollection::CreateSketch | ( | const NXString & | name, |
NXOpen::ISurface * | attachmentPlane, | ||
NXOpen::IReferenceAxis * | referenceAxis, | ||
const NXOpen::Vector3d & | referenceDirection, | ||
NXOpen::AxisOrientation | referenceAxisOrientation, | ||
NXOpen::Sense | referenceAxisSense, | ||
NXOpen::PlaneNormalOrientation | normalOrientation | ||
) |
Creates a sketch.
Created in NX3.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
name | Name of the sketch. The name will be converted to upper case. If this is an empty string or NULL, a name will be provided by the system. |
attachmentPlane | A face or datum plane that the sketch will be attached to. Must be planar. |
referenceAxis | Can be a datum axis, edge, datum plane, face, or NULL. If it is an edge, the edge must be a line segment. If it is a face, the face must be a plane. If NULL, the reference_direction is used instead |
referenceDirection | If reference_axis is NULL, this parameter sets the reference direction of the sketch. In this case, this parameter must not be (0,0,0). If reference_axis is not NULL and this parameter is not (0,0,0), this parameter determines whether the reference direction should be in the same direction as reference_axis or in the opposite direction. If this parameter is (0,0,0), this parameter is not used. |
referenceAxisOrientation | indicates whether the reference axis is horizontal or vertical |
referenceAxisSense | Ignored unless reference_direction is (0,0,0) and reference_axis is an edge or datum axis. This parameter indicates whether the reference axis should be in the same direction as reference_axis or in the opposite direction |
normalOrientation | whether the sketch's Z-axis should be outward or inward |
NXOpen::Sketch* NXOpen::SketchCollection::CreateSketch | ( | const char * | name, |
NXOpen::ISurface * | attachmentPlane, | ||
NXOpen::IReferenceAxis * | referenceAxis, | ||
const NXOpen::Vector3d & | referenceDirection, | ||
NXOpen::AxisOrientation | referenceAxisOrientation, | ||
NXOpen::Sense | referenceAxisSense, | ||
NXOpen::PlaneNormalOrientation | normalOrientation | ||
) |
Creates a sketch.
Created in NX3.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
name | Name of the sketch. The name will be converted to upper case. If this is an empty string or NULL, a name will be provided by the system. |
attachmentPlane | A face or datum plane that the sketch will be attached to. Must be planar. |
referenceAxis | Can be a datum axis, edge, datum plane, face, or NULL. If it is an edge, the edge must be a line segment. If it is a face, the face must be a plane. If NULL, the reference_direction is used instead |
referenceDirection | If reference_axis is NULL, this parameter sets the reference direction of the sketch. In this case, this parameter must not be (0,0,0). If reference_axis is not NULL and this parameter is not (0,0,0), this parameter determines whether the reference direction should be in the same direction as reference_axis or in the opposite direction. If this parameter is (0,0,0), this parameter is not used. |
referenceAxisOrientation | indicates whether the reference axis is horizontal or vertical |
referenceAxisSense | Ignored unless reference_direction is (0,0,0) and reference_axis is an edge or datum axis. This parameter indicates whether the reference axis should be in the same direction as reference_axis or in the opposite direction |
normalOrientation | whether the sketch's Z-axis should be outward or inward |
NXOpen::Sketch* NXOpen::SketchCollection::CreateSketch | ( | const NXString & | name, |
NXOpen::ISurface * | attachmentPlane, | ||
NXOpen::IReferenceAxis * | referenceAxis, | ||
const NXOpen::Vector3d & | referenceDirection, | ||
NXOpen::AxisOrientation | referenceAxisOrientation, | ||
NXOpen::Sense | referenceAxisSense, | ||
NXOpen::PlaneNormalOrientation | normalOrientation, | ||
NXOpen::NXObject * | view | ||
) |
Creates a sketch.
This function takes in an argument for the view to create the sketch in a drafting member view.
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
name | Name of the sketch. The name will be converted to upper case. If this is an empty string or NULL, a name will be provided by the system. |
attachmentPlane | A face or datum plane that the sketch will be attached to. Must be planar. |
referenceAxis | Can be a datum axis, edge, datum plane, face, or NULL. If it is an edge, the edge must be a line segment. If it is a face, the face must be a plane. If NULL, the reference_direction is used instead |
referenceDirection | If reference_axis is NULL, this parameter sets the reference direction of the sketch. In this case, this parameter must not be (0,0,0). If reference_axis is not NULL and this parameter is not (0,0,0), this parameter determines whether the reference direction should be in the same direction as reference_axis or in the opposite direction. If this parameter is (0,0,0), this parameter is not used. |
referenceAxisOrientation | indicates whether the reference axis is horizontal or vertical |
referenceAxisSense | Ignored unless reference_direction is (0,0,0) and reference_axis is an edge or datum axis. This parameter indicates whether the reference axis should be in the same direction as reference_axis or in the opposite direction |
normalOrientation | whether the sketch's Z-axis should be outward or inward |
view | View of the drafting view in which the sketch needsto be created |
NXOpen::Sketch* NXOpen::SketchCollection::CreateSketch | ( | const char * | name, |
NXOpen::ISurface * | attachmentPlane, | ||
NXOpen::IReferenceAxis * | referenceAxis, | ||
const NXOpen::Vector3d & | referenceDirection, | ||
NXOpen::AxisOrientation | referenceAxisOrientation, | ||
NXOpen::Sense | referenceAxisSense, | ||
NXOpen::PlaneNormalOrientation | normalOrientation, | ||
NXOpen::NXObject * | view | ||
) |
Creates a sketch.
This function takes in an argument for the view to create the sketch in a drafting member view.
Created in NX4.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
name | Name of the sketch. The name will be converted to upper case. If this is an empty string or NULL, a name will be provided by the system. |
attachmentPlane | A face or datum plane that the sketch will be attached to. Must be planar. |
referenceAxis | Can be a datum axis, edge, datum plane, face, or NULL. If it is an edge, the edge must be a line segment. If it is a face, the face must be a plane. If NULL, the reference_direction is used instead |
referenceDirection | If reference_axis is NULL, this parameter sets the reference direction of the sketch. In this case, this parameter must not be (0,0,0). If reference_axis is not NULL and this parameter is not (0,0,0), this parameter determines whether the reference direction should be in the same direction as reference_axis or in the opposite direction. If this parameter is (0,0,0), this parameter is not used. |
referenceAxisOrientation | indicates whether the reference axis is horizontal or vertical |
referenceAxisSense | Ignored unless reference_direction is (0,0,0) and reference_axis is an edge or datum axis. This parameter indicates whether the reference axis should be in the same direction as reference_axis or in the opposite direction |
normalOrientation | whether the sketch's Z-axis should be outward or inward |
view | View of the drafting view in which the sketch needsto be created |
NXOpen::SketchAlongPathBuilder* NXOpen::SketchCollection::CreateSketchAlongPathBuilder | ( | NXOpen::Sketch * | operation | ) |
Creates a NXOpen::SketchAlongPathBuilder.
operation | The NXOpen::Sketch to reattach or NULL to create a new one |
NXOpen::SketchAssociativeTrimBuilder* NXOpen::SketchCollection::CreateSketchAssociativeTrimBuilder | ( | NXOpen::SketchAssociativeTrim * | trimCon | ) |
Creates a NXOpen::SketchAssociativeTrimBuilder.
trimCon | Trim constraint |
NXOpen::SketchChamferBuilder* NXOpen::SketchCollection::CreateSketchChamferBuilder | ( | ) |
Creates a NXOpen::SketchChamferBuilder.
NXOpen::SketchConicBuilder* NXOpen::SketchCollection::CreateSketchConicBuilder | ( | NXOpen::NXObject * | conic | ) |
Creates a NXOpen::SketchConicBuilder.
conic | The conic to be edited. |
NXOpen::SketchEllipseBuilder* NXOpen::SketchCollection::CreateSketchEllipseBuilder | ( | NXOpen::NXObject * | ellipse | ) |
Creates a NXOpen::SketchEllipseBuilder.
ellipse | The ellipse to be edited. |
NXOpen::SketchInDraftingBuilder* NXOpen::SketchCollection::CreateSketchInDraftingBuilder | ( | ) |
Creates a NXOpen::SketchInDraftingBuilder.
NXOpen::SketchInPlaceBuilder* NXOpen::SketchCollection::CreateSketchInPlaceBuilder2 | ( | NXOpen::Sketch * | operation | ) |
Creates a NXOpen::SketchInPlaceBuilder.
operation | The NXOpen::Sketch to reattach or NULL to create a new one |
NXOpen::SketchMirrorPatternBuilder* NXOpen::SketchCollection::CreateSketchMirrorPatternBuilder | ( | NXOpen::SketchPattern * | con | ) |
Creates a NXOpen::SketchMirrorPatternBuilder.
con | Pattern constraint |
NXOpen::SketchOffsetBuilder* NXOpen::SketchCollection::CreateSketchOffsetBuilder | ( | NXOpen::SketchOffset * | offCon | ) |
Creates a NXOpen::SketchOffsetBuilder .
This command only supports creation of up to 200 output curves. That means number of curves in input section multiplied by the number of copies must be less than or equal to 200.
offCon | Offset constraint |
NXOpen::SketchPasteBuilder* NXOpen::SketchCollection::CreateSketchPasteBuilder | ( | const std::vector< NXOpen::Sketch * > & | sketches | ) |
Creates a NXOpen::SketchPasteBuilder.
sketches | NXOpen::Sketch to be copy/paste |
NXOpen::SketchPatternBuilder* NXOpen::SketchCollection::CreateSketchPatternBuilder | ( | NXOpen::SketchPattern * | con | ) |
Creates a NXOpen::SketchPatternBuilder.
con | Pattern constraint |
NXOpen::SketchPolygonBuilder* NXOpen::SketchCollection::CreateSketchPolygonBuilder | ( | NXOpen::SketchPolygon * | polygonconstraint | ) |
Creates a NXOpen::SketchPolygonBuilder.
polygonconstraint | The polygon constraint. The only acceptable value here is NULL. |
iterator NXOpen::SketchCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::Sketch* NXOpen::SketchCollection::FindObject | ( | const NXString & | name | ) |
Finds the NXOpen::Sketch with the given name.
An exception will be thrown if no object can be found with the given name.
name | The name of the NXOpen::Sketch |
NXOpen::Sketch* NXOpen::SketchCollection::FindObject | ( | const char * | name | ) |
Finds the NXOpen::Sketch with the given name.
An exception will be thrown if no object can be found with the given name.
name | The name of the NXOpen::Sketch |
NXOpen::Sketch* NXOpen::SketchCollection::GetOwningSketch | ( | NXOpen::SmartObject * | geometry | ) |
Returns the sketch that owns the specified geometry.
geometry | geometry |
tag_t NXOpen::SketchCollection::Tag | ( | ) | const |
Returns the tag of this object.