简体   繁体   English

Revit API - 将项目中的面复制到族中

[英]Revit API - Copy a Face from the project into a family

I have a Revit Face, think of a RuledFace with holes, or NurbsSurface, maybe.我有一个 Revit 面,可能是带孔的 RuledFace 或 NurbsSurface。 I need a copy of that Face in a new family document.我需要一份新的家庭文件中那张脸的副本。 Currently, I'm tesselating/triangulating the face and put those triangles into my family, which kind of works, but I have these intermediate edges between the triangles, which is very bad in my scenario.目前,我正在对脸部进行镶嵌/三角剖分并将这些三角形放入我的家庭中,这很有效,但是我在三角形之间有这些中间边缘,这在我的场景中非常糟糕。 I could not find a way to create eg a BRepBuilder with the exact information of the Face element.我找不到一种方法来创建例如具有 Face 元素的确切信息的 BRepBuilder。

The easiest way to transfer geometry from one Revit document to another is by using the copy and paste functionality provided by the CopyElements method .将几何图形从一个 Revit 文档传输到另一个文档的最简单方法是使用CopyElements方法提供的复制和粘贴功能。 Examples of using it are provided in the Revit SDK samples DuplicateViews and GenericStructuralConnection . Revit SDK 示例DuplicateViewsGenericStructuralConnection中提供了使用它的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM