5-Regular Member
December 24, 2015
Question
Java Function for connected fibers
- December 24, 2015
- 0 replies
- 1006 views
Sometimes you will have a connector on multiple sheets and will want to know the names of the fibers that are already connected to the connector
In the image below connector HARN001-P1 Exists on sheet 1 and sheet 2

By adding a label to the connector ports with the function {QueryCoShapes.connectedFibers()}

On the second instance of the connector on sheet two I am able to see the names of the fibers that are already connected to the ports on the first sheet.

The attached java files can be used at your own risk, enjoy!
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

