How to let revit show a rectangle when picking points

How to let revit show a rectangle when picking points

Anonymous
Not applicable
1,240 Views
2 Replies
Message 1 of 3

How to let revit show a rectangle when picking points

Anonymous
Not applicable

When I have picked a Point (using Selection. PickPoint) on the view, and then moving the mouse.

 

Can revit provide a functionality to show a rectangle according to the picked point and the current mouse postion?Just like when we creating a wall.

0 Likes
1,241 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Dear Gb1982,

 

Before I add another word, let me ask you whether you have installed the Revit SDK and have convenient access to the Revit API help file RevitAPI.chm, e.g. via a desktop shortcut.

 

Have you looked in there?

 

Do you see the PickPoint method?

 

If you look for other picking methods, you will also note PickBox, which "invokes a general purpose two-click editor that lets the user to specify a rectangular area on the screen."

 

That is what the Revit API can offer you.

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks Jeremy! But PickBox is not what I want.

 

I want it exactly look like when drawing a wall. See attached..

 

As you said,maybe revit cann't offer that! Sorry for that!

 

Best regards,

Bean

0 Likes