TransformerData Class¶
-
class
NXOpen.GeometricUtilities.
TransformerData
¶ Bases:
NXOpen.TaggedObject
,NXOpen.GeometricUtilities.IComponentBuilder
Transformation and orientation tool.
New in version NX9.0.0.
Methods¶
Method | Description |
---|---|
Activate | Sets a component of the tool to be active. |
AlignToAbsoluteCoordinateSystem | Reorient the tool by aligning it to absolute coordinate system |
AlignToWorkCoordinateSystem | Reorient the tool by aligning it to work coordinate system |
ReorientByCoordinateSystem | Reorient the tool by aligning it to a coordinate system. |
ReorientByDirection | Reorient the tool by changing its axis direction. |
Reposition | Repositions the tool at a coordinate system. |
RepositionByOrigin | Repositions the tool by changing its origin. |
RepositionByPlane | Repositions the tool by changing its plane. |
Reverse | Reverses the axis. |
Rotate | Rotates the tool. |
Scale | Sets the scale factor. |
SetTransformationObject | Sets a component of the tool using which transformation is started. |
StartTransformation | Sets current coordinate system as reference coordinate system for the transformation. |
Translate | Translates the tool. |
UpdateOnOriginMove | Updates tool upon movement of the point representing origin. |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
TransformerDataObjectType Enumeration | Type of objects. |
Method Detail¶
Activate¶
-
TransformerData.
Activate
¶ Sets a component of the tool to be active.
Signature
Activate(objectType)
Parameters: objectType ( NXOpen.GeometricUtilities.TransformerDataObjectType
) –New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
AlignToAbsoluteCoordinateSystem¶
-
TransformerData.
AlignToAbsoluteCoordinateSystem
¶ Reorient the tool by aligning it to absolute coordinate system
Signature
AlignToAbsoluteCoordinateSystem()
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
AlignToWorkCoordinateSystem¶
-
TransformerData.
AlignToWorkCoordinateSystem
¶ Reorient the tool by aligning it to work coordinate system
Signature
AlignToWorkCoordinateSystem()
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
ReorientByCoordinateSystem¶
-
TransformerData.
ReorientByCoordinateSystem
¶ Reorient the tool by aligning it to a coordinate system.
Signature
ReorientByCoordinateSystem(matrix)
Parameters: matrix ( NXOpen.Matrix3x3
) –New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
ReorientByDirection¶
-
TransformerData.
ReorientByDirection
¶ Reorient the tool by changing its axis direction.
Signature
ReorientByDirection(objectType, direction)
Parameters: - objectType (
NXOpen.GeometricUtilities.TransformerDataObjectType
) – - direction (
NXOpen.Vector3d
) –
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
- objectType (
Reposition¶
-
TransformerData.
Reposition
¶ Repositions the tool at a coordinate system.
Signature
Reposition(origin, matrix)
Parameters: - origin (
NXOpen.Point3d
) – - matrix (
NXOpen.Matrix3x3
) –
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
- origin (
RepositionByOrigin¶
-
TransformerData.
RepositionByOrigin
¶ Repositions the tool by changing its origin.
Signature
RepositionByOrigin(origin)
Parameters: origin ( NXOpen.Point3d
) –New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
RepositionByPlane¶
-
TransformerData.
RepositionByPlane
¶ Repositions the tool by changing its plane.
Signature
RepositionByPlane(objectType, planeOrigin, planeNormal)
Parameters: - objectType (
NXOpen.GeometricUtilities.TransformerDataObjectType
) – - planeOrigin (
NXOpen.Point3d
) – - planeNormal (
NXOpen.Vector3d
) –
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
- objectType (
Reverse¶
-
TransformerData.
Reverse
¶ Reverses the axis.
Signature
Reverse(axisType)
Parameters: axisType ( NXOpen.GeometricUtilities.TransformerDataObjectType
) –New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Rotate¶
-
TransformerData.
Rotate
¶ Rotates the tool.
Signature
Rotate(axisType, angle)
Parameters: - axisType (
NXOpen.GeometricUtilities.TransformerDataObjectType
) – - angle (float) –
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
- axisType (
Scale¶
-
TransformerData.
Scale
¶ Sets the scale factor.
Signature
Scale(axisType, factor)
Parameters: - axisType (
NXOpen.GeometricUtilities.TransformerDataObjectType
) – - factor (float) –
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
- axisType (
SetTransformationObject¶
-
TransformerData.
SetTransformationObject
¶ Sets a component of the tool using which transformation is started.
It is possible that user starts transformation without activating a tool component.
Signature
SetTransformationObject(objectType)
Parameters: objectType ( NXOpen.GeometricUtilities.TransformerDataObjectType
) –New in version NX10.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
StartTransformation¶
-
TransformerData.
StartTransformation
¶ Sets current coordinate system as reference coordinate system for the transformation.
Signature
StartTransformation()
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Translate¶
-
TransformerData.
Translate
¶ Translates the tool.
Signature
Translate(axisType, distance)
Parameters: - axisType (
NXOpen.GeometricUtilities.TransformerDataObjectType
) – - distance (float) –
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
- axisType (
UpdateOnOriginMove¶
-
TransformerData.
UpdateOnOriginMove
¶ Updates tool upon movement of the point representing origin.
Signature
UpdateOnOriginMove()
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Validate¶
-
TransformerData.
Validate
¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()
Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.