ModelingViewCollection Class

class NXOpen.ModelingViewCollection

Bases: object

Represents a collection of :py:class:`ModelingView`s.

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

New in version NX4.0.0.

Properties

Property Description
WorkView Returns the work view of the part.

Methods

Method Description
ExpandCollapseModelViewNode Expand or collapse the Model View node in the Part Navigator.
FindObject Finds the ModelingView with the given identifier as recorded in a journal.

Property Detail

WorkView

ModelingViewCollection.WorkView

Returns the work view of the part.

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

Getter Method

Signature WorkView()

Returns:Work view
Return type:NXOpen.ModelingView

New in version NX4.0.0.

License requirements: None.

Method Detail

ExpandCollapseModelViewNode

ModelingViewCollection.ExpandCollapseModelViewNode

Expand or collapse the Model View node in the Part Navigator.

Signature ExpandCollapseModelViewNode(expand)

Parameters:expand (bool) –

New in version NX9.0.3.

License requirements: None.

FindObject

ModelingViewCollection.FindObject

Finds the ModelingView with the given identifier as recorded in a journal. An object may not return the same value as its JournalIdentifier in different versions of the software. However, newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.

An exception will be thrown if no object can be found with the given journal identifier.

Signature FindObject(journalIdentifier)

Parameters:journalIdentifier (str) – Identifier of the modeling view to be found
Returns:View with this identifier
Return type:NXOpen.ModelingView

New in version NX4.0.0.

License requirements: None.