📅  最后修改于: 2022-03-11 14:56:03.650000             🧑  作者: Mango
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());