NXOpen .NET Reference Guide  1899
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Public Attributes | List of all members
NXOpen.Sketch.ConstraintGeometry Struct Reference

Used by the create geometric constraint methods to indicate what geometry the constraint should be applied to. More...

Public Member Functions

 ConstraintGeometry (NXOpen.NXObject Geometry, NXOpen.Sketch.ConstraintPointType PointType, int SplineDefiningPointIndex)
 Constructor for the ConstraintGeometry struct. More...
 

Public Attributes

NXOpen.NXObject Geometry
  More...
 
NXOpen.Sketch.ConstraintPointType PointType
  More...
 
int SplineDefiningPointIndex
 Ignored unless PointType is SplineDefiningPoint. More...
 

Detailed Description

Used by the create geometric constraint methods to indicate what geometry the constraint should be applied to.

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
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

Constructor & Destructor Documentation

NXOpen.Sketch.ConstraintGeometry.ConstraintGeometry ( NXOpen.NXObject  Geometry,
NXOpen.Sketch.ConstraintPointType  PointType,
int  SplineDefiningPointIndex 
)
inline

Constructor for the ConstraintGeometry struct.

Parameters
Geometry
PointType
SplineDefiningPointIndexIgnored unless PointType is SplineDefiningPoint. Spline control points are numbered starting from 1

Member Data Documentation

NXOpen.NXObject NXOpen.Sketch.ConstraintGeometry.Geometry

NXOpen.Sketch.ConstraintPointType NXOpen.Sketch.ConstraintGeometry.PointType

int NXOpen.Sketch.ConstraintGeometry.SplineDefiningPointIndex

Ignored unless PointType is SplineDefiningPoint.

Spline control points are numbered starting from 1


The documentation for this struct was generated from the following file:
Copyright 2019 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.