前言
JoinGeometryUtils 是 Revit API 中关于几何图元连接的通用接口。
接口 JoinGeometryUtils
JoinGeometryUtils
:
- 可以判断构件是否在几何上是连接的,
AreElementsJoined
; - 得到和当前构件几何连接的其它构件,
GetJoinedElements
; - 判断连接的两个构件中,第一个构件是否在几何上切割了第二个构件,
IsCuttingElementInJoin
; - 从几何上连通构件,
JoinGeometry
; - 交换构件连通顺序,
SwitchJoinOrder
; - 取消构件的几何连通,
UnjoinGeometry
。
namespace Autodesk.Revit.DB
{
public static class JoinGeometryUtils
{
public static bool AreElementsJoined(Document document, Element firstElement, Element secondElement);
public static ICollection<ElementId> GetJoinedElements(Document document, Element element);
public static bool IsCuttingElementInJoin(Document document, Element firstElement, Element secondElement);
public static void JoinGeometry(Document document, Element firstElement, Element secondElement);
public static void SwitchJoinOrder(Document document, Element firstElement, Element secondElement);
public static void UnjoinGeometry(Document document, Element firstElement, Element secondElement);
}
}