PartCloseResponses Class

class NXOpen.PartCloseResponses

Bases: NXOpen.TransientObject

Manages a list of part name/response pairs which are used to determine whether a part should be closed if modified during part close.

These responses are used as input into the following methods: NXOpen.BasePart.Close() NXOpen.BasePart.Reopen() NXOpen.BasePart.ReopenAs()

They are ignored in these methods unless NXOpen.BasePartCloseModified is set to NXOpen.BasePartCloseModified.UseResponses.

New in version NX3.0.0.

Methods

Method Description
AddResponse Add a response to the list.
Dispose Free resources associated with the instance.

Method Detail

AddResponse

PartCloseResponses.AddResponse

Add a response to the list.

Signature AddResponse(partName, response)

Parameters:
  • partName (str) – Part with which to associate response
  • response (bool) – Whether or not to close the part if modified. A value of true means yes; a value of false means no.

New in version NX3.0.0.

License requirements: None.

Dispose

PartCloseResponses.Dispose

Free resources associated with the instance.

After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.

Signature Dispose()

New in version NX3.0.0.

License requirements: None.