ShapeCollection Class

class NXOpen.Diagramming.ShapeCollection

Bases: object

Represents a collection of Shape.

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

New in version NX10.0.0.

Methods

Method Description
CreateShapeBuilder Creates a NXOpen.Diagramming.ShapeBuilder.
FindObject Finds the NXOpen.Diagramming.Shape with the given identifier as recorded in a journal.

Method Detail

CreateShapeBuilder

ShapeCollection.CreateShapeBuilder

Creates a NXOpen.Diagramming.ShapeBuilder.

Signature CreateShapeBuilder(shape)

Parameters:shape (NXOpen.Diagramming.Shape) – NXOpen.Diagramming.Shape to be edited, if None then create a new one
Returns:
Return type:NXOpen.Diagramming.ShapeBuilder

New in version NX10.0.0.

License requirements: None.

FindObject

ShapeCollection.FindObject

Finds the NXOpen.Diagramming.Shape with the given identifier as recorded in a journal.

An exception will be thrown if no object can be found with given name.

Signature FindObject(journalIdentifier)

Parameters:journalIdentifier (str) – Identifier to be found
Returns:NXOpen.Diagramming.Shape with this name.
Return type:NXOpen.Diagramming.Shape

New in version NX10.0.0.

License requirements: None.