Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to use revitapi to realize the function of creating rectangular detailline in Revit.
The final rectangle detailline is very simple, but the important thing is the dynamic process in the middle. After selecting a point, follow the mouse to draw a rectangle dynamically.
My idea is,
1. Get the coordinates of the mouse, just like the MouseMoveEvent in WinForm.
2. The draw () method is necessary.
3. You may need API in "user32. DLL".
Do you have a demo like this? The demo of drawing line or line segment is the best.
thank you
Solved! Go to Solution.