References > Creo Schematics 4.0 API Guide > The Uiextension Package > Interface Connection2
  
Interface Connection2
The Connection2 interface defines whether or not a connection can be made between the fiber shape and a port.
public interface Connection
Hierarchical Diagram
None
Direct Known Subclasses
None
Constructor
None
Methods
canConnectTo
Checks whether a connection can be made between the fiber shape being routed and the port the pointer is hovering over.
public boolean canConnectTo (Shape compshape, Sting portsh_id, FibreShape fibre)
Where:
compshape—The component shape to which the fiber is being routed.
portsh_id—The sys_id of the component port to which the fiber is being routed.
fibre—The prototye of the fibershape being routed.
Throws: RSDException
Methods Inherited
None