Create FlexPipe and Connect it to a given Connector

Create FlexPipe and Connect it to a given Connector

BenoitE&A
Collaborator Collaborator
425 Views
3 Replies
Message 1 of 4

Create FlexPipe and Connect it to a given Connector

BenoitE&A
Collaborator
Collaborator

Hello,

I created a FlexPipe using the AI :

 

Autodesk.Revit.DB.Plumbing.FlexPipe pipe = Autodesk.Revit.DB.Plumbing.FlexPipe.Create(myDoc, systemTypeId, pipeTypeId, idLvl, -XYZ.BasisZ, -XYZ.BasisZ, trajet);

 

You have to believe me on the fact that all the parameters are correct because it actually creates my FlexPipe.

The thing is: the FlexPipe connects 2 connectors (in the present case a PipeFitting on one side, a radiator on the other side. But even if the System of the PipeFitting is known, the new FlexPipe does not belong to the given System.

BenoitEA_0-1675852951964.png

 

Any idea how to do this ?


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
426 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

How do you do it in the UI?

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 4

BenoitE&A
Collaborator
Collaborator

Hey Jeremy,

In the UI I start my FlexPipe on the Connector. 

But in the AI I can not Create a FlexPipe from a Connector.

Searching...


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
Message 4 of 4

Chuong.Ho
Advocate
Advocate

Use  :

doc.Create.NewFlexPipe(xyzes,flexPipeType);

Chuong Ho

EESignature

0 Likes