Connect Into

Connect Into

MarryTookMyCoffe
Collaborator Collaborator
1,403 Views
5 Replies
Message 1 of 6

Connect Into

MarryTookMyCoffe
Collaborator
Collaborator

does any one know where in api I can find method for "Connect into". I what connect heater with pipe.

 

first i thought i can find in by a shortcut file but:

Dialog_BuildingSystems_RbsConnectIntoBar:Control_BuildingSystems_RbsConnectInto 

don't tell me much

and it is not in a

Autodesk.Revit.DB.Plumbing.PlumbingUtils or in Autodesk.Revit.DB.Mechanical.MechanicalUtils

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
1,404 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk

Does the functionality you require place a tap?

 

Here are two posts on that:

 

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 6

Anonymous
Not applicable

 

Alternatively, there is also ConnectTo which just requires that you have identified both connectors.

 

Find the two connectors within their connector managers. ConnectTo comes straight from the connector itself.

 

If you call the pipe connector pipeConnector and the heater connector heaterConnector:

 

pipeConnector.ConnectTo(heaterConnector);

 

It won't draw any routing between the connectors, but it will establish a connection. I use this when I know that the connectors are reasonably close (usually doing a distance check between the two and making sure it's within 1/8" or so).

Message 4 of 6

MarryTookMyCoffe
Collaborator
Collaborator

thx for replay, but it not what I was looking for.
I guss i have to make this my self.

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
Message 5 of 6

Anonymous
Not applicable

Hi,

 

Did you manage to find the API for Connect Into yet?

 

Message 6 of 6

MarryTookMyCoffe
Collaborator
Collaborator

no, I did my own extension for it.
Cut pipe insert instance between and connect connector

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
0 Likes