public void
PickPoint(UIDocument uidoc)
{
ObjectSnapTypes snapTypes
= ObjectSnapTypes.Endpoints | ObjectSnapTypes.Intersections;
XYZ point = uidoc.Selection.PickPoint(snapTypes, "Select an end
point or intersection");
string strCoords = "Selected point
is " + point.ToString();
TaskDialog.Show("Revit",
strCoords);
}