BIM World
A Professional BIM Learning Platform


Understanding Volume Calculation in Revit Secondary Development Layouts

The layout function of Revit’s volume is one of the most versatile features. Interestingly, the official classic secondary development tutorials hardly cover this topic. However, based on my experience developing plugins for bridges, I found that irregular structures are easier to handle using volumes or adaptive component families. Therefore, I want to share some insights on this subject.

Essentially, the layout function in an adaptive component family works the same way as in a mass.

Let’s start by discussing the APIs available for layout in Revit volumes:

  1. Generate geometry using contour and direction:
    Form NewExtrusionForm(bool isSolid, ReferenceArray profile, DB.XYZ direction);
  2. Generate faces using contour lines:
    Form NewFormByCap(bool isSolid, ReferenceArray profile);
  3. Create volumes from surfaces and vectors:
    Form NewFormByThickenSingleSurface(bool isSolid, Form singleSurfaceForm, DB.XYZ thickenDir);
  4. Generate volumes using contour groups:
    Form NewLoftForm(bool isSolid, ReferenceArrayArray profiles);
  5. Create geometry using layout paths and contour groups:
    Form NewSweptBlendForm(bool isSolid, ReferenceArray path, ReferenceArrayArray profiles);

One challenge is obtaining the ReferenceArray. After investigation, I found it can be obtained by appending modelCurve.GeometryCurve.Reference to the profile.

For detailed examples, please refer to the source materials.

What practical uses do these APIs have? They are very valuable in developing plugins, such as those for modeling prestressed steel strands or terrain.

Layout in Revit secondary development volume

As shown above, this example demonstrates generating a terrain map shaped like pork belly. Another example includes generating prestressed steel strands.

In fact, the core code behind both examples relies on the five APIs mentioned earlier.

xuebim
Follow the latest BIM developments in the architecture industry, explore innovative building technologies, and discover cutting-edge industry insights.
← Scan with WeChat
Like(0) 打赏
BIM WORLD » Understanding Volume Calculation in Revit Secondary Development Layouts

Comment Get first!

Must log in before commenting!

 

BIM World, A Professional BIM Learning Platform

Stay updated on the latest architecture trends and share new building technologies.

Contact UsAbout Us

觉得文章有用就打赏一下小编吧

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

Account Login

By signing in, you agree toUser Agreement

Sign Up