PartSaveStatus Class

class NXOpen.PartSaveStatus

Bases: NXOpen.TransientObject

This class represents a list of part names with associated status codes that serve to communicate why these parts where not able to be saved during part save.

New in version NX3.0.0.

Properties

Property Description
NumberUnsavedObjects Returns the number of objects that could not be saved
NumberUnsavedParts Returns the number of parts that could not be saved

Methods

Method Description
Dispose Free resources associated with the instance.
GetObjectStatus Returns the error code indicating the reason the part could not be saved
GetPart Returns the name of a particular part that could not be saved
GetStatus Returns the error code indicating the reason the part could not be saved

Property Detail

NumberUnsavedObjects

PartSaveStatus.NumberUnsavedObjects

Returns the number of objects that could not be saved

-------------------------------------

Getter Method

Signature NumberUnsavedObjects

Returns:
Return type:int

New in version NX8.5.0.

License requirements: None.

NumberUnsavedParts

PartSaveStatus.NumberUnsavedParts

Returns the number of parts that could not be saved

-------------------------------------

Getter Method

Signature NumberUnsavedParts

Returns:
Return type:int

New in version NX3.0.0.

License requirements: None.

Method Detail

Dispose

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

GetObjectStatus

PartSaveStatus.GetObjectStatus

Returns the error code indicating the reason the part could not be saved

Signature GetObjectStatus(i)

Parameters:i (int) – Index into list of unsaved parts
Returns:Error code reason that part could not

be saved :rtype: int

New in version NX8.5.0.

License requirements: None.

GetPart

PartSaveStatus.GetPart

Returns the name of a particular part that could not be saved

Signature GetPart(i)

Parameters:i (int) – Index into list of unsaved parts
Returns:
Return type:NXOpen.BasePart

New in version NX3.0.0.

License requirements: None.

GetStatus

PartSaveStatus.GetStatus

Returns the error code indicating the reason the part could not be saved

Signature GetStatus(i)

Parameters:i (int) – Index into list of unsaved parts
Returns:Error code reason that part could not

be saved :rtype: int

New in version NX3.0.0.

License requirements: None.