I'm trying to figure out if there is a way to programmatically allow the user to draw a line in Revit 2014 or to call the model-line command (using the line option, not rectangle, circle, etc). I need that the user call my command, this command shows a form that have an option that is "Draw the path", if the user clicks that option the form should hide/close and the user should be able to draw a model line directly inside the project. When the user ends to draw the line the form should be re-shown and it should have a reference to the drawn line.
I've searched all the day for a solution but found nothing, I've also search how to lunch a standard Revit command (such as model line) but the only way seems to call the PostCommand
that will add the command to the queue and thus the command will be lunched after my command terminates. I've searched also how to draw a line having only the start point and positioning the endpoint under the mouse but it seems that the MouseMove
event is not available on a Revit document..
Really there is no way to ask the user to draw a line??