PDA

View Full Version : Pick a point



fabrice
2007-06-23, 06:18 PM
How to let user pick a point ?

Do anyone know?

Thanks!

sbrown
2007-06-25, 12:59 PM
there are no points in revit.

fabrice
2007-06-25, 03:57 PM
I know that!!!!

I want to let the user draw something and let him/her use the snap tool, and thus, pick points.

truevis
2007-06-25, 04:00 PM
there are no points in revit.
And what layer are those points not on?:beer:...

The closest thing to picking a point in regular Revit is placing a Spot Dimension. I'd think that would have some useful properties. Would that be accessible though API?

GuyR
2007-06-25, 10:50 PM
Although it's not clear exactly what you're trying to do I think either you

a.. Use the pickone() method to select and element and extract points from the selected element

b.. Use win32 API's to try and get the point information you require from the screen.

HTH,

Guy

fabrice
2007-06-28, 04:01 PM
Thanks Guy, that's about want I want to do. But I guess from your answer, the snap won't work. Too bad.

GuyR
2007-06-28, 09:43 PM
Snap is essentially a User interaction device. Therefore I'm guessing it would technically be possible to implement something similar via the API.

eg (Pseudo code)

Get wall start point and end point.
Is wall modulo 4inches(snap distance)?
If yes draw wall, if not ask for new selection.

HTH,

Guy