ConnectTo method Breaks Existing Connections

ConnectTo method Breaks Existing Connections

Anonymous
Not applicable
434 Views
0 Replies
Message 1 of 1

ConnectTo method Breaks Existing Connections

Anonymous
Not applicable

I'm attempting to create a small program in Revit 2014 that changes the direction of a selected wire.  The solution I've come up with, while not ideal (I'd prefer to just interact with the graphical object, but can't figure out how) , works for the most part:

 

1) Get the number of grounds

2) Disconnect wire's Connectors from connected Connectors

3) Rotate wire 180 degrees from origin

4) Reconnect opposite connectors to wire's connectors

5) Reset number of grounds

 

The problem occurs during step 4.  When I reconnect the wire, using the ConnectTo method, it breaks all the other physical connections to the connector I'm connecting it to.  I've gone as far as collecting all of these connectors and attempting to connect them back to the fixture's connector afterwards, but Revit really doesn't like this.  Any help would be appreciated.  Thank you.

0 Likes
435 Views
0 Replies
Replies (0)