« Mixed Mode C++ in Revit 2012 | Main | Connecting Pieces, Like Navisworks »

March 13, 2012

Comments

The most common use for duct piping in residential construction is to shorten the amount of flex duct required to connect the duct truck line to the register. Flex duct has a higher rate of friction loss than smooth duct pipe and, therefore, adding round pipe to your duct system increases the efficiency of your system.

Hi Jeremy,

How to split a model line at point?

Regards,

Dear Bang,

You can modify the existing line's curve's endpoint to shorten it as desired.

You will have to create a new second model line to replace the missing part, though.

Cheers, Jeremy.

I created a flex duct with the API through the Document.Create.NewFlexDuct(Connector1, Connector2, FlexDuctType) method. But now I want to change the flex duct size to match the connector size at my diffuser. This should be simple enough, but MEPCurve.Diameter is read only, I can't edit it. Is it possible to change flex duct size through the API?

Dear Ryan,

I would say yes.

Indeed, the MEPCurve.Diameter is read only, because it is driven by the entire duct system.

You can change the dimensions by editing the connectors, I believe, or by adding a fitting somewhere in between.

Look at the Connector Height, Width and Radius properties, for example. They are all read-write.

I would also expect the duct size to update automatically as soon as you connect it to the diffuser.

Cheers, Jeremy.

Jeremy, thanks for the help. We were able to get it to work finally. We created an MEPCurve from the flex duct, a connector set from the MEPCurve, then changed connector radii of the connector set to equal the diffuser connector size. Now we can draw flex duct in a section view.

Dear Ryan,

Thank you for the appreciation and explanation.

I am very glad it helped.

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource