Hii,
thanks for the reply.
(Code Region 10-6)
bool LocationRotate(Autodesk.Revit.ApplicationServices.Application application, Autodesk.Revit.DB.Element element)
{
bool rotated = false;
// Rotate the element via its location curve.
LocationCurve curve = element.Location as LocationCurve;
if (null != curve)
{
Curve line = curve.Curve;
XYZ aa = line.GetEndPoint(0);
XYZ cc = new XYZ(aa.X, aa.Y, aa.Z + 10);
Line axis = Line.CreateBound(aa, cc);
rotated = curve.Rotate(axis, Math.PI / 2.0);
}
return rotated;
}
above code will rotate the wall with some given angle and return true or false.
i want something like
1) drawn a wall and rotated the wall with 90 Degree.
wall given for rotation 90 degree
2) i need to get the rotation value like ( in this case it is 90 degree).wall after rotating 90 degree
needed the rotated value. via api .