ToolingSession Class

class NXOpen.Tooling.ToolingSession

Bases: object

Represents Tooling session

To obtain an instance of this class, refer to NXOpen.Session

New in version NX8.0.0.

Methods

Method Description
ClosePart Close an existing part
CreateCloneObject Creates the clone operation object
CreateComponentPattern Create component pattern
CreateSpreadsheetData Creates an instance of class NXOpen.Tooling.SpreadsheetData.
GetReusableComponent Gets the reusable component
GetReusableObjects Gets the last added reusable object
LoadReusablePart Opens an existing part, but does not set it to be the displayed part.
SetWizardType Sets the wizard type of tooling application.

Method Detail

ClosePart

ToolingSession.ClosePart

Close an existing part

Signature ClosePart(part, wholeTree, closeModified)

Parameters:

New in version NX9.0.2.

License requirements: None.

CreateCloneObject

ToolingSession.CreateCloneObject

Creates the clone operation object

Signature CreateCloneObject(applicationType, cloneActionType)

Parameters:
Returns:

the new NXOpen.Tooling.CloneObject instance

Return type:

NXOpen.Tooling.CloneObject

New in version NX8.0.0.

License requirements: None.

CreateComponentPattern

ToolingSession.CreateComponentPattern

Create component pattern

Signature CreateComponentPattern(component, targetEntity)

Parameters:

New in version NX11.0.2.

License requirements: None.

CreateSpreadsheetData

ToolingSession.CreateSpreadsheetData

Creates an instance of class NXOpen.Tooling.SpreadsheetData.

Please note this method will only create an empty class NXOpen.Tooling.SpreadsheetData object, it needs to call other method NXOpen.Tooling.SpreadsheetData.ReadData() to retrieve the data.

Signature CreateSpreadsheetData()

Returns:the new NXOpen.Tooling.SpreadsheetData instance
Return type:NXOpen.Tooling.SpreadsheetData

New in version NX8.0.0.

License requirements: None.

GetReusableComponent

ToolingSession.GetReusableComponent

Gets the reusable component

Signature GetReusableComponent()

Returns:The array of reuseable components
Return type:list of NXOpen.Assemblies.Component

New in version NX9.0.0.

License requirements: None.

GetReusableObjects

ToolingSession.GetReusableObjects

Gets the last added reusable object

Signature GetReusableObjects(part)

Parameters:part (NXOpen.NXObject) – Tag of the part that contains reusable objects
Returns:Objects, mainly bodies, from the input part
Return type:list of NXOpen.NXObject

New in version NX10.0.0.

License requirements: None.

LoadReusablePart

ToolingSession.LoadReusablePart

Opens an existing part, but does not set it to be the displayed part.

Signature LoadReusablePart(filename, isNativePart)

Parameters:
  • filename (str) – Name of part file
  • isNativePart (bool) – Is the file from native or TC
Returns:

Part Tag

Return type:

NXOpen.BasePart

New in version NX9.0.1.

License requirements: None.

SetWizardType

ToolingSession.SetWizardType

Sets the wizard type of tooling application.

Signature SetWizardType(type)

Parameters:type (int) – wizard type of current tooling application

New in version NX11.0.2.

License requirements: None.