PmiManager Class

class NXOpen.Annotations.PmiManager

Bases: object

Represents an object that manages PMI objects.

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

New in version NX5.0.0.

Pmis”, “Pmi collection ” “PmiAttributes”, “PmiAttribute collection ” “PmiRegions”, “Region collection ” “SearchModelViews”, “PMI search view collection ” “PmiLightweightSections”, “Lightweight Section View collection ” “PmiWave”, “WAVE collection “

Methods

Method Description
ApplyModelViewOrder Applies a saved explicit order
CopyDisplayInstanceObjects Creates copies of input PMI Display Instance objects in the part.
CopyObjects Creates copies of input PMI objects in the part.
CreateArbitraryAreaSeedBuilder Creates a NXOpen.Annotations.ArbitraryAreaSeedBuilder
CreateExplicitOrderBuilder Creates a NXOpen.Annotations.PMIExplicitOrderBuilder
CreateSuppressPmibuilder Creates a NXOpen.Annotations.SuppressPMIBuilder
CutDisplayInstanceObjects Cuts the input PMI Display Instance objects in the part.
DeleteReplaceAnnotation Deletes or replaces one annotation with another.
GetDisplayInstanceParent Returns the PMI Display Instance parent.
GetInheritParent Returns the inherited PMI parent.
IsEffectivityFiltered The flag indicates whether the PMI is an effectivity filtered PMI because of assembly component configuration from managed environment
IsInheritedPmi The flag indicating whether the annotation is an inherited PMI on the drawing sheet/view.
ResetSize Resets the size of all the PMI displayed in the part.
Resize Resizes all PMI symbols displayed in the active view
RestoreUnpastedObjects Restores the unpasted PMI objects in the part.
SaveModelViewOrder Saves an explicit order defined by the user

Pmis

PmiManager.Pmis

Pmi collection

Signature Pmis

New in version NX3.0.0.

Returns:
Return type:NXOpen.Annotations.PmiCollection

PmiAttributes

PmiManager.PmiAttributes

PmiAttribute collection

Signature PmiAttributes

New in version NX3.0.0.

Returns:
Return type:NXOpen.Annotations.PmiAttributeCollection

PmiRegions

PmiManager.PmiRegions

Region collection

Signature PmiRegions

New in version NX6.0.2.

Returns:
Return type:NXOpen.Annotations.PmiRegionCollection

SearchModelViews

PmiManager.SearchModelViews

PMI search view collection

Signature SearchModelViews

New in version NX7.5.0.

Returns:
Return type:NXOpen.Annotations.SearchModelViewCollection

PmiLightweightSections

PmiManager.PmiLightweightSections

Lightweight Section View collection

Signature PmiLightweightSections

New in version NX7.5.0.

Returns:
Return type:NXOpen.Annotations.PmiLightweightSectionCollection

PmiWave

PmiManager.PmiWave

WAVE collection

Signature PmiWave

New in version NX8.0.0.

Returns:
Return type:NXOpen.Annotations.PmiWaveCollection

Method Detail

ApplyModelViewOrder

PmiManager.ApplyModelViewOrder

Applies a saved explicit order

Signature ApplyModelViewOrder(savedOrderName)

Parameters:savedOrderName (str) –

New in version NX9.0.0.

License requirements: geometric_tol (“GDT”)

CopyDisplayInstanceObjects

PmiManager.CopyDisplayInstanceObjects

Creates copies of input PMI Display Instance objects in the part.

Only PMI Display Instance objects which can be copied in the NX user interface will be copied.

Client must perform update :py:meth:`NXOpen.Update.DoUpdate`() after calling this method.

Signature CopyDisplayInstanceObjects(inputObjects, view)

Parameters:
Returns:

Copies of PMI Display Instance objects

Return type:

list of NXOpen.Annotations.Annotation

New in version NX5.0.0.

License requirements: geometric_tol (“GDT”)

CopyObjects

PmiManager.CopyObjects

Creates copies of input PMI objects in the part.

Only PMI objects which can be copied in the NX user interface will be copied.

Client must perform update NXOpen.Update.DoUpdate() after calling this method.

Signature CopyObjects(inputObjects)

Parameters:inputObjects (list of NXOpen.Annotations.Pmi) – PMI objects to be copied
Returns:Copies of PMI objects
Return type:list of NXOpen.Annotations.Pmi

New in version NX5.0.0.

License requirements: geometric_tol (“GDT”)

CreateArbitraryAreaSeedBuilder

PmiManager.CreateArbitraryAreaSeedBuilder

Creates a NXOpen.Annotations.ArbitraryAreaSeedBuilder

Signature CreateArbitraryAreaSeedBuilder()

Returns:
Return type:NXOpen.Annotations.ArbitraryAreaSeedBuilder

New in version NX6.0.0.

License requirements: None.

CreateExplicitOrderBuilder

PmiManager.CreateExplicitOrderBuilder

Creates a NXOpen.Annotations.PMIExplicitOrderBuilder

Signature CreateExplicitOrderBuilder()

Returns:
Return type:NXOpen.Annotations.PMIExplicitOrderBuilder

New in version NX9.0.0.

License requirements: None.

CreateSuppressPmibuilder

PmiManager.CreateSuppressPmibuilder

Creates a NXOpen.Annotations.SuppressPMIBuilder

Signature CreateSuppressPmibuilder()

Returns:
Return type:NXOpen.Annotations.SuppressPMIBuilder

New in version NX12.0.0.

License requirements: None.

CutDisplayInstanceObjects

PmiManager.CutDisplayInstanceObjects

Cuts the input PMI Display Instance objects in the part.

Cut operation makes the PMI Display Instance object invisible in the view of cut and makes it visible in the view of paste. Only PMI Display Instance objects which can be cut in the NX user interface will be copied.

Client must perform update :py:meth:`NXOpen.Update.DoUpdate`() after calling this method.

Signature CutDisplayInstanceObjects(inputObjects, cutViews, viewOfPaste)

Parameters:
  • inputObjects (list of NXOpen.Annotations.Annotation) – PMI Display Instance objects to be cut
  • cutViews (list of NXOpen.View) – List of cut views. Each PMI Display Instance object is cut from the corresponding view in the list.
  • viewOfPaste (NXOpen.View) – View in which PMI Display Instances are pasted.

New in version NX5.0.0.

License requirements: geometric_tol (“GDT”)

DeleteReplaceAnnotation

PmiManager.DeleteReplaceAnnotation

Deletes or replaces one annotation with another.

This will adjust the requirements ID of the annotation if one annotation replaces another. This method may be used in NX generated automation programs but it is not intended to be used in a customer written automation program.

Signature DeleteReplaceAnnotation(oldAnnotation, newAnnotation)

Parameters:

New in version NX6.0.0.

License requirements: None.

GetDisplayInstanceParent

PmiManager.GetDisplayInstanceParent

Returns the PMI Display Instance parent.

The parent is the PMI Object.

Signature GetDisplayInstanceParent(displayInstance)

Parameters:displayInstance (NXOpen.Annotations.Annotation) – PMI Display Instance
Returns:Parent PMI object
Return type:NXOpen.Annotations.Pmi

New in version NX5.0.0.

License requirements: None.

GetInheritParent

PmiManager.GetInheritParent

Returns the inherited PMI parent.

The parent is the PMI Display Instance in modeling.

Signature GetInheritParent(inheritedPmi)

Parameters:inheritedPmi (NXOpen.Annotations.Annotation) – Inherited PMI
Returns:Parent PMI Display Instance
Return type:NXOpen.Annotations.Annotation

New in version NX5.0.0.

License requirements: None.

IsEffectivityFiltered

PmiManager.IsEffectivityFiltered

The flag indicates whether the PMI is an effectivity filtered PMI because of assembly component configuration from managed environment

Signature IsEffectivityFiltered(object)

Parameters:object (NXOpen.Annotations.Pmi) – PMI object to examine
Returns:
Return type:bool

New in version NX8.5.1.

License requirements: None.

IsInheritedPmi

PmiManager.IsInheritedPmi

The flag indicating whether the annotation is an inherited PMI on the drawing sheet/view.

Inherited PMI is the associative copy of the PMI display instance in modeling.

Signature IsInheritedPmi(object)

Parameters:object (NXOpen.Annotations.Annotation) – Annotation to examine
Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

ResetSize

PmiManager.ResetSize

Resets the size of all the PMI displayed in the part.

This will restore the size of the PMI to the part default.

Signature ResetSize()

New in version NX11.0.0.

License requirements: geometric_tol (“GDT”)

Resize

PmiManager.Resize

Resizes all PMI symbols displayed in the active view

Signature Resize()

New in version NX8.0.0.

License requirements: geometric_tol (“GDT”)

RestoreUnpastedObjects

PmiManager.RestoreUnpastedObjects

Restores the unpasted PMI objects in the part.

This method is used by NX user interface to restore PMI objects that were cut but not pasted. If called by an automation program, this method can cause unexpected results.

Signature RestoreUnpastedObjects()

New in version NX5.0.0.

License requirements: geometric_tol (“GDT”)

SaveModelViewOrder

PmiManager.SaveModelViewOrder

Saves an explicit order defined by the user

Signature SaveModelViewOrder(orderList, saveName)

Parameters:
  • orderList (list of str) –
  • saveName (str) –

New in version NX9.0.0.

License requirements: geometric_tol (“GDT”)