我需要宽度(窄端)而不是长度(长端)边缘上的点。请理解这一点,因为边界框不起作用!//这些没有用,因为它们是固定笛卡尔平面 x,y,z 上的点,因为墙可以在任何方向上旋转,所以我无法始终获得 X 最小值和最大值。
//**Wall0
BoundingBoxXYZ Wall0_BB = wall0.get_BoundingBox(null);
XYZ vector1 = Wall0_BB.Min;
XYZ vector2 = new XYZ(Wall0_BB.Max.X, Wall0_BB.Min.Y, Wall0_BB.Min.Z);
XYZ vectorA = vector1 - vector2;
//these are not useful as they won't give me the corner points
LocationCurve locationcurve0 = wall0.Location as LocationCurve;
Line line0 = locationcurve0.Curve as Line;
XYZ pointA0 = line0.GetEndPoint(0);
XYZ pointA1 = line0.GetEndPoint(1);