hide form and get input

hide form and get input

Anonymous
Not applicable
620 Views
2 Replies
Message 1 of 3

hide form and get input

Anonymous
Not applicable

How do I hide a form and get input from the user. Is this case I need XYZ coordinates from the screen. Thanks. 

0 Likes
621 Views
2 Replies
Replies (2)
Message 2 of 3

Paulio
Advocate
Advocate

Get the current UIDocument then use UIDoc.Selection.PickPoint

 

0 Likes
Message 3 of 3

Joe.Ye
Alumni
Alumni

 

In a button click handler, set the form's DialogResult to DialogResult.OK, or Cancel.

      DialogResult = DialogResult.OK;

 

The the form will be hidden.

 

In the Revit Execute() method, after the code of ShowDialog(), call Selection.PickPoint() to ask the user to pick a point.

After the PickPoint() method, you can show the dialog again. The coordiantes of the point picked by calling PickPoint() is Revit model coordinates system.



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes