kuklev9797's picture
download
raw
1.95 kB
Application: BRepBuilderExample
Revit Platform: All
Revit Version: 2018.0
First Released For: 2017.0
Programming Language: C#
Skill Level: Medium
Category: Geometry
Type: ExternalApplication
Subject: BRepBuilder usage example
Summary:
Several cases of BRepBuilder usage for constructing Revit geometry using API.
Classes:
Autodesk.Revit.UI.IExternalApplication
Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.DB.BRepBuilder
Autodesk.Revit.DB.DirectShape
Project Files:
Application.cs
It contains the class Application which inherits from interface IExternalApplication and implements OnStartup and OnShutdown methods.
CreateCube.cs
It contains the class CreateCube which inherits from interface IExternalCommand and implements the Execute method.
CreateNURBS.cs
It contains the class CreateNURBS which inherits from interface IExternalCommand and implements the Execute method.
CreatePeriodic.cs
It contains the class CreatePeriodic which inherits from interface IExternalCommand and implements the Execute method.
Description:
This sample provides the following functionalities:
-
Let user create simple cubical solid using BRepBuilder.
pict001.png
-
Let user create Nurbs surface (open shell) using BRepBuilder.
pict002.png
-
Let user create two solids (truncated cone and cylinder) with periodic face surfaces using BRepBuilder.
pict003.png
Geometry created by BRepBuilder then set in DirectShape element to make it visible in Revit views.
Instructions:
Open Revit application. Open empty architectural template.and create 3D View.
Notice the extra Ribbon Pannel named
Create Geometry
. It has three buttons:
1.
CreateCube
. Press it to create simple cubical solid using BRepBuilder.
2.
CreateNURBS
. Press it to create Nurbs surface (open shell) using BRepBuilder.
3.
CreatePeriodic
. Press it to create two solids (cone and cylinder) with periodic face surfaces using BRepBuilder.

Xet Storage Details

Size:
1.95 kB
·
Xet hash:
666f0e54159adaa49ce3338d9a9a8fcc2abdd79d187e49ad1677d7a030673fa3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.