public interface PortCollection extends TaggedObjectCollection
Port
objects.
Iterating this collection only returns live uncondemned objects contained in the owning part
of the collection. Note that Port
is a smart object and many smart objects are condemned as they
only exist to support other objects and are not displayed. RouteManager
TaggedObjectCollection.Iterator
Modifier and Type | Method and Description |
---|---|
void |
convertToFeatures()
Cycles through all the
Port objects and creates
a FeaturePort object for FittingPort object,
FixturePort object, MultiPort object, and
TerminalPort object. |
ExtractPort |
createExtractPort(Port port)
Creates a
ExtractPort . |
ExtractPort |
createExtractPort(Port port,
boolean allowMultipleConnections)
Creates a
ExtractPort . |
Port[] |
getComponentPorts(Component component)
Given a component, returns the port occurrences that belong to it.
|
Port[] |
getObjectPorts(NXObject entity)
Given any
NXObject , returns any port occurrences that
belong to it. |
_find_next, iterator
ExtractPort createExtractPort(Port port) throws NXException, RemoteException
ExtractPort
. Default
allows multiple connections to this port.
port
- Port to extract fromNXException
RemoteException
ExtractPort createExtractPort(Port port, boolean allowMultipleConnections) throws NXException, RemoteException
port
- Port to extract fromallowMultipleConnections
- Does this fitting port allow multiple wires to be routed to it?NXException
RemoteException
void convertToFeatures() throws NXException, RemoteException
Port
objects and creates
a FeaturePort
object for FittingPort
object,
FixturePort
object, MultiPort
object, and
TerminalPort
object.
NXException
RemoteException
Port[] getComponentPorts(Component component) throws NXException, RemoteException
component
- NXException
RemoteException
Port[] getObjectPorts(NXObject entity) throws NXException, RemoteException
NXObject
, returns any port occurrences that
belong to it. Returns null otherwise.
The type of ports returned depends on the type of object given.
If given a ISegment
, if there is stock on the segment,
returns the ports from stock. If there is no stock, returns any fitting ports at the segment ends.
If given a Stock
, returns the ports at ends of stock.
If given a Port
, returns itself.
if given a ControlPoint
, returns any fitting ports at the Control Point.
If given a part, returns any ports in the part.
entity
- NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.