DirectionCollection Class¶
-
class
NXOpen.
DirectionCollection
¶ Bases:
object
Represents a collection of
NXOpen.Direction
.Iterating this collection only returns live uncondemned objects contained in the owning part of the collection. Note that
NXOpen.Direction
is a smart object and many smart objects are condemned as they only exist to support other objects and are not displayed. Condemned objects will be deleted when their references go away. To obtain an instance of this class, refer toNXOpen.BasePart
New in version NX3.0.0.
Methods¶
Method | Description |
---|---|
CreateDirection | Creates a NXOpen.Direction without parameters. |
CreateDirectionOnPointParentCurve | Creates a NXOpen.Direction on a parent NXOpen.ICurve of a NXOpen.Point . |
Method Detail¶
CreateDirection¶
-
DirectionCollection.
CreateDirection
¶ Overloaded method CreateDirection
CreateDirection(origin, vector, update)
CreateDirection(line, sense, updateOption)
CreateDirection(edge, sense, updateOption)
CreateDirection(datumAxis, sense, updateOption)
CreateDirection(startPoint, endPoint, updateOption)
CreateDirection(startPoint, endPoint, updateOption)
CreateDirection(face, sense, updateOption)
CreateDirection(plane, sense, updateOption)
CreateDirection(plane, sense, updateOption)
CreateDirection(conic, sense, updateOption)
CreateDirection(icurve, t, option, sense, updateOption)
CreateDirection(icurve, point, option, sense, updateOption)
CreateDirection(face, u, v, sense, updateOption)
CreateDirection(face, u, v, absoluteUv, option, sectionDirection, sense, updateOption)
CreateDirection(face, u, v, absoluteUv, sectionAngle, sense, updateOption)
CreateDirection(atPoint, face, option, sectionDirection, sense, updateOption)
CreateDirection(directionExtract, xform, updateOption)
CreateDirection(point, vector)
CreateDirection(geomObj, point, sense, updateOption)
CreateDirection(direction, updateOption)
CreateDirection(port, sense, updateOption)
CreateDirection(direction1, direction2, updateOption)
CreateDirection(point, exp, sense, updateOption)
CreateDirection(face, point, sense, updateOption)
-------------------------------------
Creates a
NXOpen.Direction
without parameters.Signature
CreateDirection(origin, vector, update)
Parameters: - origin (
NXOpen.Point3d
) – - vector (
NXOpen.Vector3d
) – - update (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using aNXOpen.Line
.Signature
CreateDirection(line, sense, updateOption)
Parameters: - line (
NXOpen.Line
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using a linearNXOpen.Edge
or the axis of a conicalNXOpen.Edge
.Signature
CreateDirection(edge, sense, updateOption)
Parameters: - edge (
NXOpen.IBaseCurve
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using aNXOpen.DatumAxis
.Signature
CreateDirection(datumAxis, sense, updateOption)
Parameters: - datumAxis (
NXOpen.DatumAxis
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using two :py:class:`NXOpen.Routing.ControlPoint`s.Signature
CreateDirection(startPoint, endPoint, updateOption)
Parameters: - startPoint (
NXOpen.Routing.ControlPoint
) – The Routing Control Points (RCPs) - endPoint (
NXOpen.Routing.ControlPoint
) – The Routing Control Points (RCPs) - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX7.5.4.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using two :py:class:`NXOpen.Point`s.Signature
CreateDirection(startPoint, endPoint, updateOption)
Parameters: - startPoint (
NXOpen.Point
) – - endPoint (
NXOpen.Point
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using the normal of aNXOpen.Face
or the axis of a cylindricalNXOpen.Face
.Signature
CreateDirection(face, sense, updateOption)
Parameters: - face (
NXOpen.IParameterizedSurface
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using the normal of anNXOpen.IBasePlane
.Signature
CreateDirection(plane, sense, updateOption)
Parameters: - plane (
NXOpen.IBasePlane
) – Plane or DatumPlane - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using the normal of aNXOpen.Sketch
.Signature
CreateDirection(plane, sense, updateOption)
Parameters: - plane (
NXOpen.Sketch
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using the axis of aNXOpen.Conic
.Signature
CreateDirection(conic, sense, updateOption)
Parameters: - conic (
NXOpen.Conic
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
on aNXOpen.ICurve
using aNXOpen.Scalar
representing the t parameter.Signature
CreateDirection(icurve, t, option, sense, updateOption)
Parameters: - icurve (
NXOpen.IBaseCurve
) – - t (
NXOpen.Scalar
) – - option (
NXOpen.DirectionOnCurveOption
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
on aNXOpen.ICurve
at aNXOpen.Point
.Signature
CreateDirection(icurve, point, option, sense, updateOption)
Parameters: - icurve (
NXOpen.IBaseCurve
) – - point (
NXOpen.Point
) – - option (
NXOpen.DirectionOnCurveOption
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a Direction normal to the
NXOpen.Face
using two :py:class:`NXOpen.Scalar`s representing the u and v parameters.Signature
CreateDirection(face, u, v, sense, updateOption)
Parameters: - face (
NXOpen.Face
) – - u (
NXOpen.Scalar
) – - v (
NXOpen.Scalar
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
on aNXOpen.Face
using two :py:class:`NXOpen.Scalar`s representing the u and v parameters with the option of direction on face.Signature
CreateDirection(face, u, v, absoluteUv, option, sectionDirection, sense, updateOption)
Parameters: - face (
NXOpen.Face
) – - u (
NXOpen.Scalar
) – - v (
NXOpen.Scalar
) – - absoluteUv (bool) – true if u and v are absolute parameters
- option (
NXOpen.DirectionOnFaceOption
) – - sectionDirection (
NXOpen.Direction
) – necessary when option isNXOpen.DirectionOnFaceOption.Section
- sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a sectional
NXOpen.Direction
on aNXOpen.Face
using twoNXOpen.Scalar`s representing the u and v parameters and a :py:class:`NXOpen.Scalar
representing section angle measured with respect to positive U parameter direction at u and v parameters of the face.Signature
CreateDirection(face, u, v, absoluteUv, sectionAngle, sense, updateOption)
Parameters: - face (
NXOpen.Face
) – - u (
NXOpen.Scalar
) – - v (
NXOpen.Scalar
) – - absoluteUv (bool) – true if u and v are absolute parameters
- sectionAngle (
NXOpen.Scalar
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
on aNXOpen.Face
at aNXOpen.Point
. The input point could be a point on curve whose parent curve is an edge or a curve on surface feature. Or it could be an extract point whose parent point is a point on face. User can optionally supply a face in which case it is honored instead of looking for the parent face of the input point. In that case input point is projected on the face to find the direction at the projected location.Signature
CreateDirection(atPoint, face, option, sectionDirection, sense, updateOption)
Parameters: - atPoint (
NXOpen.Point
) – A point on curve or an extract point. In case of a non associative point a face must be specified. - face (
NXOpen.Face
) – Optional input - option (
NXOpen.DirectionOnFaceOption
) – - sectionDirection (
NXOpen.SmartObject
) – An object of typeNXOpen.Direction
orNXOpen.Scalar
and is necessary when option isNXOpen.DirectionOnFaceOption.Section
- sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX8.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using an extractNXOpen.Direction
with optionalNXOpen.Xform
.Signature
CreateDirection(directionExtract, xform, updateOption)
Parameters: - directionExtract (
NXOpen.Direction
) – - xform (
NXOpen.Xform
) – Optional Xform - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX3.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
based upon the parameters used to define the point. If the direction can be defined solely by the point then the vector parameter is ignored.Signature
CreateDirection(point, vector)
Parameters: - point (
NXOpen.Point
) – - vector (
NXOpen.Vector3d
) –
Returns: Return type: New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
normal to aNXOpen.Face
at a givenNXOpen.Point
.Signature
CreateDirection(geomObj, point, sense, updateOption)
Parameters: - geomObj (
NXOpen.Face
) –NXOpen.Face
- point (
NXOpen.Point
) –NXOpen.Point
- sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
reverse to that of givenNXOpen.Direction
.Signature
CreateDirection(direction, updateOption)
Parameters: - direction (
NXOpen.Direction
) –NXOpen.Direction
- updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
aligned to that of givenNXOpen.Routing.Port
.Signature
CreateDirection(port, sense, updateOption)
Parameters: - port (
NXOpen.Routing.Port
) –NXOpen.Routing.Port
- sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using two :py:class:`NXOpen.Direction`s.Signature
CreateDirection(direction1, direction2, updateOption)
Parameters: - direction1 (
NXOpen.Direction
) – - direction2 (
NXOpen.Direction
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using anNXOpen.Expression
.Signature
CreateDirection(point, exp, sense, updateOption)
Parameters: - point (
NXOpen.Point
) – - exp (
NXOpen.Expression
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
Creates a
NXOpen.Direction
using the normal of a non-planarNXOpen.Face
at aNXOpen.Point
Signature
CreateDirection(face, point, sense, updateOption)
Parameters: - face (
NXOpen.IParameterizedSurface
) – - point (
NXOpen.Point
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX6.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR nx_masterfem (“Finite Element Modeling”) OR geometric_tol (“GDT”)
-------------------------------------
CreateDirectionOnPointParentCurve¶
-
DirectionCollection.
CreateDirectionOnPointParentCurve
¶ Creates a
NXOpen.Direction
on a parentNXOpen.ICurve
of aNXOpen.Point
.The input point could be an extract point whose parent point is a point on curve. User can optionally supply a curve in which case it is honored instead of looking for the parent curve of the input point. In that case input point is projected on the curve to find the direction at the projected location.
Signature
CreateDirectionOnPointParentCurve(atPoint, curve, option, sense, updateOption)
Parameters: - atPoint (
NXOpen.Point
) – An extract point or a non associative point in which case a curve should be specified. - curve (
NXOpen.IBaseCurve
) – OptionalNXOpen.Curve
orNXOpen.Edge
input - option (
NXOpen.DirectionOnCurveOption
) – - sense (
NXOpen.Sense
) – - updateOption (
NXOpen.SmartObjectUpdateOption
) –
Returns: Return type: New in version NX8.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”) OR drafting (“DRAFTING”) OR geometric_tol (“GDT”)
- atPoint (