PortCollection Class¶
-
class
NXOpen.Diagramming.
PortCollection
¶ Bases:
object
Represents a collection of Port.
To obtain an instance of this class, refer to
NXOpen.Diagramming.DiagrammingManager
New in version NX10.0.0.
Methods¶
Method | Description |
---|---|
CreatePortBuilder | Creates a NXOpen.Diagramming.PortBuilder . |
FindObject | Finds the NXOpen.Diagramming.Port with the given identifier as recorded in a journal. |
Method Detail¶
CreatePortBuilder¶
-
PortCollection.
CreatePortBuilder
¶ Creates a
NXOpen.Diagramming.PortBuilder
.Signature
CreatePortBuilder(port)
Parameters: port ( NXOpen.Diagramming.Port
) –NXOpen.Diagramming.Port
to be edited, if None then create a new oneReturns: Return type: NXOpen.Diagramming.PortBuilder
New in version NX10.0.0.
License requirements: None.
FindObject¶
-
PortCollection.
FindObject
¶ Finds the
NXOpen.Diagramming.Port
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.Port
with this name.Return type: NXOpen.Diagramming.Port
New in version NX10.0.0.
License requirements: None.