📜  查找最近的元素 revit api - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:23.835000             🧑  作者: Mango

代码示例1
var view3d = RUtils.Get3dView(doc);

ReferenceIntersector refIntersector = new ReferenceIntersector(
        new ElementCategoryFilter(BuiltInCategory.OST_Walls),
        FindReferenceTarget.Element,
        view3d
);

var x = refIntersector.FindNearest(stairBase, baseDirection);