PortCollection Class¶
-
class
NXOpen.Diagramming.PortCollection¶ Bases:
objectRepresents a collection of Port.
To obtain an instance of this class, refer to
NXOpen.Diagramming.DiagrammingManagerNew 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.Portto be edited, if None then create a new oneReturns: Return type: NXOpen.Diagramming.PortBuilderNew in version NX10.0.0.
License requirements: None.
FindObject¶
-
PortCollection.FindObject¶ Finds the
NXOpen.Diagramming.Portwith 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.Portwith this name.Return type: NXOpen.Diagramming.PortNew in version NX10.0.0.
License requirements: None.