Revit.SDK.Samples.Selections.CS.SelectionManager.PickPoint C# (CSharp) Method

PickPoint() private method

Pick the point from UI.
private PickPoint ( ) : void
return void
        internal void PickPoint()
        {
            try
            {
                // Pick a point.
                XYZ targetPoint = m_document.Selection.PickPoint("Please pick a point.");
                SelectedPoint = targetPoint;
            }
            catch (Exceptions.OperationCanceledException)
            {
                // Point selection cancelled.
                SelectedPoint = null;
            }
        }