How do we get the (x,y,z)cordinates for stairs, ramps ?
using revit application with c#
I used the below code and it give me the location curve of ramps,stairs as null:
Location LOC = tempRamps.Location as Location;
LocationCurve Locrve = tempRamps.Location as LocationCurve;
XYZ p1 = Locrve.Curve.get_EndPoint(0);
Where tempRamps represent for Ramp.