ConnectivityService Class

class NXOpen.MechanicalRouting.ConnectivityService

Bases: object

Represents a NXOpen.MechanicalRouting.ConnectivityService object.

Use the MechanicalRouting.RoutingManager.ConnectivityService() to obtain an instance of this class.

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

New in version NX11.0.0.

Methods

Method Description
GetConnectedPorts Returns the pairs of connected ports in the subset.
GetPortsConnectedToDesignElement Returns the pairs of ports connected to the given Design Element.

Method Detail

GetConnectedPorts

ConnectivityService.GetConnectedPorts

Returns the pairs of connected ports in the subset.

Signature GetConnectedPorts(part)

Parameters:part (NXOpen.Part) – The subset part.
Returns:a tuple
Return type:A tuple consisting of (connectedPorts1, connectedPorts2). connectedPorts1 is a list of NXOpen.Routing.Port. connectedPorts2 is a list of NXOpen.Routing.Port.

New in version NX11.0.0.

License requirements: routing_base (“Routing Basic”)

GetPortsConnectedToDesignElement

ConnectivityService.GetPortsConnectedToDesignElement

Returns the pairs of ports connected to the given Design Element.

Signature GetPortsConnectedToDesignElement(part)

Parameters:part (NXOpen.Assemblies.Component) – The component of the Design Element.
Returns:a tuple
Return type:A tuple consisting of (connectedPorts1, connectedPorts2). connectedPorts1 is a list of NXOpen.Routing.Port. connectedPorts2 is a list of NXOpen.Routing.Port.

New in version NX11.0.0.

License requirements: routing_base (“Routing Basic”)