public void GetParameters() { Document doc = Wall.Document; WallType type = Wall.WallType; Width = type.LookupParameter("Width").AsDouble(); LocationCurve lc = Wall.Location as LocationCurve; Curve c = lc.Curve; Parameter boP = Wall.LookupParameter("Base Offset"); c = GeomUtil.OffsetCurve(c, XYZ.BasisZ, boP.AsDouble()); List <XYZ> ps = new List <XYZ> { c.GetEndPoint(0), c.GetEndPoint(1) }; ps.Sort(new ZYXComparer()); DrivingCurve = Line.CreateBound(ps[0], ps[1]); Length = DrivingCurve.Length; Parameter uhP = Wall.LookupParameter("Unconnected Height"); Height = uhP.AsDouble(); }