public static class Sketch.ConstraintGeometry extends Object implements Serializable
Examples: Assume in these examples that you have a Line object in a variable named line1 and a Spline object in a variable named spline1. 1. To specify an entire line, set Geometry = line1 PointType = None SplineDefiningPointIndex = 0 2. To specify the start vertex of a line, set Geometry = line1 PointType = StartVertex SplineDefiningPointIndex = 0 3. To specify the third defining point of a spline Geometry = spline1 PointType = SplingDefiningPoint SplineDefiningPointIndex = 3 4. To specify the first defining point of a spline Geometry = spline1 PointType = StartVertex SplineDefiningPointIndex = 0 -- OR -- Geometry = spline1 PointType = SplingDefiningPoint SplineDefiningPointIndex = 1 Notes on splines: - spline defining points are numbered starting from 1 - to specify the first [or last] defining point of a spline, you can either use PointType = SplineDefiningPoint and set SplineDefiningPointIndex or use PointType = StartVertex [or EndVertex] - SplineDefiningPointIndex is only used when PointType = SplineDefiningPoint
Modifier and Type | Field and Description |
---|---|
NXObject |
geometry |
Sketch.ConstraintPointType |
pointType |
int |
splineDefiningPointIndex
Ignored unless PointType is SplineDefiningPoint.
|
Constructor and Description |
---|
ConstraintGeometry() |
ConstraintGeometry(NXObject geometryInitial,
Sketch.ConstraintPointType pointTypeInitial,
int splineDefiningPointIndexInitial)
Constructor for the ConstraintGeometry object.
|
public NXObject geometry
public Sketch.ConstraintPointType pointType
public int splineDefiningPointIndex
public ConstraintGeometry()
public ConstraintGeometry(NXObject geometryInitial, Sketch.ConstraintPointType pointTypeInitial, int splineDefiningPointIndexInitial)
geometryInitial
- pointTypeInitial
- splineDefiningPointIndexInitial
- Ignored unless PointType is SplineDefiningPoint.
Spline control points are numbered starting from 1Copyright 2016 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.