📜  获取萨里基点 revit api - 任何代码示例

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

代码示例1
StringBuilder sb = new StringBuilder();
            
            IEnumerable points = new FilteredElementCollector(doc)
                .OfClass(typeof(BasePoint))
                .Cast();
            foreach(BasePoint bp in points)
            {
                string name = bp.IsShared? "surveypoint": "project basepoint";
                BoundingBoxXYZ bb = bp.get_BoundingBox(null);
                XYZ pos = bb.Min;
                sb.AppendLine(string.Format("{0} :  {1}",name, pos));
            }
            TaskDialog.Show("debug",sb.ToString());