SketchCollection Class¶
-
class
NXOpen.SketchCollection¶ Bases:
objectRepresents a collection of sketches
To obtain an instance of this class, refer to
NXOpen.PartNew in version NX3.0.0.
Methods¶
Method Detail¶
CreateAngularDimensionBuilder¶
-
SketchCollection.CreateAngularDimensionBuilder¶ Creates a
NXOpen.SketchAngularDimensionBuilderSignature
CreateAngularDimensionBuilder(angularDimension)Parameters: angularDimension – the angular dimension to be edited, if None. then create an angular dimension :type angularDimension:
NXOpen.Annotations.AngularDimension:returns: the angular dimension builder :rtype:NXOpen.SketchAngularDimensionBuilderNew in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
CreateAutoConstrainBuilder¶
-
SketchCollection.CreateAutoConstrainBuilder¶ Creates a
NXOpen.SketchAutoConstrainBuilderSignature
CreateAutoConstrainBuilder()Returns: Sketch Auto-Constrain Builder object Return type: NXOpen.SketchAutoConstrainBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateAutoDimensionBuilder¶
-
SketchCollection.CreateAutoDimensionBuilder¶ Creates a
NXOpen.SketchAutoDimensionBuilderSignature
CreateAutoDimensionBuilder()Returns: Sketch Auto-Dimension Builder object Return type: NXOpen.SketchAutoDimensionBuilderNew in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateConstraintBuilder¶
-
SketchCollection.CreateConstraintBuilder¶ Creates a
NXOpen.SketchConstraintBuilderSignature
CreateConstraintBuilder()Returns: Return type: NXOpen.SketchConstraintBuilderNew in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateConvertToFromReferenceBuilder¶
-
SketchCollection.CreateConvertToFromReferenceBuilder¶ Creates a
NXOpen.ConvertToFromReferenceBuilderSignature
CreateConvertToFromReferenceBuilder()Returns: Sketch ConvertToFromReferenceBuilder object Return type: NXOpen.ConvertToFromReferenceBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateCornerBuilder¶
-
SketchCollection.CreateCornerBuilder¶ Creates a
NXOpen.SketchCornerBuilderSignature
CreateCornerBuilder()Returns: CornerBuilder object Return type: NXOpen.SketchCornerBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateDimensionBuilder¶
-
SketchCollection.CreateDimensionBuilder¶ Creates a
NXOpen.SketchDimensionBuilderSignature
CreateDimensionBuilder(constraint)Parameters: constraint ( NXOpen.SketchDimensionalConstraint) – The sketch dimensional constraint to be edited.Returns: DimensionBuilder object Return type: NXOpen.SketchDimensionBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateEditDefiningSectionBuilder¶
-
SketchCollection.CreateEditDefiningSectionBuilder¶ Creates a
NXOpen.SketchEditDefiningSectionBuilderSignature
CreateEditDefiningSectionBuilder()Returns: Edit Defining Section Builder object Return type: NXOpen.SketchEditDefiningSectionBuilderNew in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
CreateInferredConstraintsBuilder¶
-
SketchCollection.CreateInferredConstraintsBuilder¶ Creates a
NXOpen.InferredConstraintsBuilderSignature
CreateInferredConstraintsBuilder()Returns: InferredConstraintsBuilder object Return type: NXOpen.InferredConstraintsBuilderNew in version NX5.0.0.
License requirements: None.
CreateIntersectionCurveBuilder¶
-
SketchCollection.CreateIntersectionCurveBuilder¶ Creates the builder for intersection curve
Signature
CreateIntersectionCurveBuilder(operation)Parameters: operation ( NXOpen.SketchIntersectionCurve) –Returns: Return type: NXOpen.SketchIntersectionCurveBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateIntersectionPointBuilder¶
-
SketchCollection.CreateIntersectionPointBuilder¶ Creates the builder for intersection point
Signature
CreateIntersectionPointBuilder(operation)Parameters: operation ( NXOpen.SketchIntersectionPoint) –Returns: Return type: NXOpen.SketchIntersectionPointBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateLinearDimensionBuilder¶
-
SketchCollection.CreateLinearDimensionBuilder¶ Creates a
NXOpen.SketchLinearDimensionBuilderSignature
CreateLinearDimensionBuilder(linearDimension)Parameters: linearDimension ( NXOpen.Annotations.Dimension) – the linear dimension to be edited, if None, then create a linear dimensionReturns: the linear dimension builder Return type: NXOpen.SketchLinearDimensionBuilderNew in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
CreateMakeSymmetricBuilder¶
-
SketchCollection.CreateMakeSymmetricBuilder¶ Creates a
NXOpen.SketchMakeSymmetricBuilderSignature
CreateMakeSymmetricBuilder()Returns: MakeSymmetricBuilder object Return type: NXOpen.SketchMakeSymmetricBuilderNew in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateNewSketchInPlaceBuilder¶
-
SketchCollection.CreateNewSketchInPlaceBuilder¶ Creates a
NXOpen.SketchInPlaceBuilderSignature
CreateNewSketchInPlaceBuilder(operation)Parameters: operation ( NXOpen.Sketch) – TheNXOpen.Sketchto reattach or None to create a new oneReturns: SketchInPlaceBuilder object Return type: NXOpen.SketchInPlaceBuilderNew in version NX7.5.0.
Deprecated since version NX11.0.0: Use
NXOpen.SketchCollection.CreateSketchInPlaceBuilder2()instead.License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateProjectBuilder¶
-
SketchCollection.CreateProjectBuilder¶ Creates a
NXOpen.SketchProjectBuilderSignature
CreateProjectBuilder(operation)Parameters: operation ( NXOpen.Features.Feature) – The feature for theNXOpen.SketchProjectBuilderto be edited, if None then create a new oneReturns: ProjectBuilder object Return type: NXOpen.SketchProjectBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateQuickExtendBuilder¶
-
SketchCollection.CreateQuickExtendBuilder¶ Creates a
NXOpen.SketchQuickExtendBuilderSignature
CreateQuickExtendBuilder()Returns: Sketch Quick-Extend Builder object Return type: NXOpen.SketchQuickExtendBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateQuickTrimBuilder¶
-
SketchCollection.CreateQuickTrimBuilder¶ Creates a
NXOpen.SketchQuickTrimBuilderSignature
CreateQuickTrimBuilder()Returns: Sketch QuickTrim Builder object Return type: NXOpen.SketchQuickTrimBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateRadialDimensionBuilder¶
-
SketchCollection.CreateRadialDimensionBuilder¶ Creates a
NXOpen.SketchRadialDimensionBuilderSignature
CreateRadialDimensionBuilder(radialDimension)Parameters: radialDimension ( NXOpen.Annotations.Dimension) – the radial dimension to be edited, if None, then create a radial dimensionReturns: the radial dimension builder Return type: NXOpen.SketchRadialDimensionBuilderNew in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
CreateRapidDimensionBuilder¶
-
SketchCollection.CreateRapidDimensionBuilder¶ Creates a
NXOpen.SketchRapidDimensionBuilderSignature
CreateRapidDimensionBuilder()Returns: the rapid dimension builder Return type: NXOpen.SketchRapidDimensionBuilderNew in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
CreateSketch¶
-
SketchCollection.CreateSketch¶ Overloaded method CreateSketch
CreateSketch(name, attachmentPlane, referenceAxis, referenceDirection, referenceAxisOrientation, referenceAxisSense, normalOrientation)CreateSketch(name, attachmentPlane, referenceAxis, referenceDirection, referenceAxisOrientation, referenceAxisSense, normalOrientation, view)
-------------------------------------Creates a sketch
Signature
CreateSketch(name, attachmentPlane, referenceAxis, referenceDirection, referenceAxisOrientation, referenceAxisSense, normalOrientation)Parameters: - name (str) – Name of the sketch. The name will be converted to upper case. If this is an empty string or None, a name will be provided by the system.
- attachmentPlane (
NXOpen.ISurface) – A face or datum plane that the sketch will be attached to. Must be planar. - referenceAxis (
NXOpen.IReferenceAxis) – Can be a datum axis, edge, datum plane, face, or NXOpen.IReferenceAxis.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 NXOpen.IReferenceAxis.NULL, the reference_direction is used instead - referenceDirection (
NXOpen.Vector3d) – If reference_axis is None, 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 None 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 (
NXOpen.AxisOrientation) – indicates whether the reference axis is horizontal or vertical - referenceAxisSense (
NXOpen.Sense) – 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 (
NXOpen.PlaneNormalOrientation) – whether the sketch’s Z-axis should be outward or inward
Returns: the new sketch
Return type: New in version NX3.0.0.
Deprecated since version NX7.5.3: Use
NXOpen.SketchInPlaceBuilderinstead.License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”)
-------------------------------------Creates a sketch. This function takes in an argument for the view to create the sketch in a drafting member view.
Signature
CreateSketch(name, attachmentPlane, referenceAxis, referenceDirection, referenceAxisOrientation, referenceAxisSense, normalOrientation, view)Parameters: - name (str) – Name of the sketch. The name will be converted to upper case. If this is an empty string or None, a name will be provided by the system.
- attachmentPlane (
NXOpen.ISurface) – A face or datum plane that the sketch will be attached to. Must be planar. - referenceAxis (
NXOpen.IReferenceAxis) – Can be a datum axis, edge, datum plane, face, or NXOpen.IReferenceAxis.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 NXOpen.IReferenceAxis.NULL, the reference_direction is used instead - referenceDirection (
NXOpen.Vector3d) – If reference_axis is None, 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 None 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 (
NXOpen.AxisOrientation) – indicates whether the reference axis is horizontal or vertical - referenceAxisSense (
NXOpen.Sense) – 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 (
NXOpen.PlaneNormalOrientation) – whether the sketch’s Z-axis should be outward or inward - view (
NXOpen.NXObject) – View of the drafting view in which the sketch needsto be created
Returns: the new sketch
Return type: New in version NX4.0.0.
Deprecated since version NX7.5.3: Use
NXOpen.SketchInDraftingBuilderinstead.License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”)
-------------------------------------
CreateSketchAlongPathBuilder¶
-
SketchCollection.CreateSketchAlongPathBuilder¶ Creates a
NXOpen.SketchAlongPathBuilderSignature
CreateSketchAlongPathBuilder(operation)Parameters: operation ( NXOpen.Sketch) – TheNXOpen.Sketchto reattach or None to create a new oneReturns: SketchAlongPathBuilder object Return type: NXOpen.SketchAlongPathBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchAssociativeTrimBuilder¶
-
SketchCollection.CreateSketchAssociativeTrimBuilder¶ Creates a
NXOpen.SketchAssociativeTrimBuilderSignature
CreateSketchAssociativeTrimBuilder(trimCon)Parameters: trimCon ( NXOpen.SketchAssociativeTrim) – Trim constraintReturns: Return type: NXOpen.SketchAssociativeTrimBuilderNew in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchChamferBuilder¶
-
SketchCollection.CreateSketchChamferBuilder¶ Creates a
NXOpen.SketchChamferBuilderSignature
CreateSketchChamferBuilder()Returns: Sketch Chamfer Builder object Return type: NXOpen.SketchChamferBuilderNew in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchConicBuilder¶
-
SketchCollection.CreateSketchConicBuilder¶ Creates a
NXOpen.SketchConicBuilderSignature
CreateSketchConicBuilder(conic)Parameters: conic ( NXOpen.NXObject) – The conic to be edited.Returns: SketchConicBuilder object Return type: NXOpen.SketchConicBuilderNew in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchEllipseBuilder¶
-
SketchCollection.CreateSketchEllipseBuilder¶ Creates a
NXOpen.SketchEllipseBuilderSignature
CreateSketchEllipseBuilder(ellipse)Parameters: ellipse ( NXOpen.NXObject) – The ellipse to be edited.Returns: SketchEllipseBuilder object Return type: NXOpen.SketchEllipseBuilderNew in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchInDraftingBuilder¶
-
SketchCollection.CreateSketchInDraftingBuilder¶ Creates a
NXOpen.SketchInDraftingBuilderSignature
CreateSketchInDraftingBuilder()Returns: SketchInDraftingBuilder object Return type: NXOpen.SketchInDraftingBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”)
CreateSketchInPlaceBuilder2¶
-
SketchCollection.CreateSketchInPlaceBuilder2¶ Creates a
NXOpen.SketchInPlaceBuilderSignature
CreateSketchInPlaceBuilder2(operation)Parameters: operation ( NXOpen.Sketch) – TheNXOpen.Sketchto reattach or None to create a new oneReturns: SketchInPlaceBuilder object Return type: NXOpen.SketchInPlaceBuilderNew in version NX11.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchMirrorPatternBuilder¶
-
SketchCollection.CreateSketchMirrorPatternBuilder¶ Creates a
NXOpen.SketchMirrorPatternBuilderSignature
CreateSketchMirrorPatternBuilder(con)Parameters: con ( NXOpen.SketchPattern) – Pattern constraintReturns: Return type: NXOpen.SketchMirrorPatternBuilderNew in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchOffsetBuilder¶
-
SketchCollection.CreateSketchOffsetBuilder¶ 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.
Signature
CreateSketchOffsetBuilder(offCon)Parameters: offCon ( NXOpen.SketchOffset) – Offset constraintReturns: Return type: NXOpen.SketchOffsetBuilderNew in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchPasteBuilder¶
-
SketchCollection.CreateSketchPasteBuilder¶ Creates a
NXOpen.SketchPasteBuilderSignature
CreateSketchPasteBuilder(sketches)Parameters: sketches (list of NXOpen.Sketch) –NXOpen.Sketchto be copy/pasteReturns: Return type: NXOpen.SketchPasteBuilderNew in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchPatternBuilder¶
-
SketchCollection.CreateSketchPatternBuilder¶ Creates a
NXOpen.SketchPatternBuilderSignature
CreateSketchPatternBuilder(con)Parameters: con ( NXOpen.SketchPattern) – Pattern constraintReturns: Return type: NXOpen.SketchPatternBuilderNew in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
CreateSketchPolygonBuilder¶
-
SketchCollection.CreateSketchPolygonBuilder¶ Creates a
NXOpen.SketchPolygonBuilderSignature
CreateSketchPolygonBuilder(polygonconstraint)Parameters: polygonconstraint – The polygon constraint. The only acceptable value here is None. :type polygonconstraint:
NXOpen.SketchPolygon:returns: SketchPolygonBuilder object :rtype:NXOpen.SketchPolygonBuilderNew in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR geometric_tol (“GDT”)
FindObject¶
-
SketchCollection.FindObject¶ Finds the
NXOpen.Sketchwith the given name.An exception will be thrown if no object can be found with the given name.
Signature
FindObject(name)Parameters: name (str) – The name of the NXOpen.SketchReturns: Sketch with this name Return type: NXOpen.SketchNew in version NX3.0.0.
License requirements: None.
GetOwningSketch¶
-
SketchCollection.GetOwningSketch¶ Returns the sketch that owns the specified geometry
Signature
GetOwningSketch(geometry)Parameters: geometry ( NXOpen.SmartObject) –Returns: The sketch that owns the geometry Return type: NXOpen.SketchNew in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”)