OperationTeaching Class

class NXOpen.CAM.OperationTeaching

Bases: NXOpen.Builder

Represents a OperationTeaching Builder

To create a new instance of this class, use NXOpen.CAM.CAMSetup.CreateOperationTeaching

New in version NX8.0.0.

Properties

Property Description
Tag Returns the Tag for this object.

Methods

Method Description
Commit Commits any edits that have been applied to the builder.
Destroy Deletes the builder, and cleans up any objects created by the builder.
GetCommittedObjects For builders that create more than one object, this method returns the objects that are created by commit.
GetFeature Gets the selected feature @return
GetLibraryPath Gets the selected library path @return
GetObject Returns the object currently being edited by this builder.
GetOperations Gets the selected operations @return
SetFeature Sets the selected feature
SetLibraryPath Sets the selected library path
SetOperations Sets the selected operations
ShowResults Updates the model to reflect the result of an edit to the model for all builders that support showing results.
Teach Teaches the new operations @return
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Method Detail

GetFeature

OperationTeaching.GetFeature

Gets the selected feature

Signature GetFeature()

Returns:
Return type:NXOpen.CAM.CAMFeature

New in version NX8.0.0.

License requirements: fbm_author (“FBM Author”)

GetLibraryPath

OperationTeaching.GetLibraryPath

Gets the selected library path

Signature GetLibraryPath()

Returns:
Return type:str

New in version NX8.0.0.

License requirements: fbm_author (“FBM Author”)

GetOperations

OperationTeaching.GetOperations

Gets the selected operations

Signature GetOperations()

Returns:
Return type:list of NXOpen.CAM.Operation

New in version NX8.0.0.

License requirements: fbm_author (“FBM Author”)

SetFeature

OperationTeaching.SetFeature

Sets the selected feature

Signature SetFeature(feature)

Parameters:feature (NXOpen.CAM.CAMFeature) –

New in version NX8.0.0.

License requirements: fbm_author (“FBM Author”)

SetLibraryPath

OperationTeaching.SetLibraryPath

Sets the selected library path

Signature SetLibraryPath(path)

Parameters:path (str) –

New in version NX8.0.0.

License requirements: fbm_author (“FBM Author”)

SetOperations

OperationTeaching.SetOperations

Sets the selected operations

Signature SetOperations(aOperations)

Parameters:aOperations (list of NXOpen.CAM.Operation) –

New in version NX8.0.0.

License requirements: fbm_author (“FBM Author”)

Teach

OperationTeaching.Teach

Teaches the new operations

Signature Teach()

Returns:
Return type:list of str

New in version NX8.0.0.

License requirements: fbm_author (“FBM Author”)

Validate

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