I require the points on the edge across the width(narrow end) not the length(long end). Please understand this as the bounding box wont work! //these are not useful as they are points on the fixed cartesian plane x,y,z I cannot consistently get X min and max as the wall can be rotated in any orientation.
//**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);