How to change settings in snap dialog by Revit API?

How to change settings in snap dialog by Revit API?

Anonymous
Not applicable
795 Views
2 Replies
Message 1 of 3

How to change settings in snap dialog by Revit API?

Anonymous
Not applicable

Hello,

in Revit's ribbon [Manage] - [Snaps] dialog, I want to uncheck the two options: [snap to remote objects ], [snap to point clouds ]. How to do it by Revit API?

QQ截图20180907103810.png

Thanks a lot.

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

jeremytammik
Autodesk
Autodesk

I am not aware of a way to change them globally for the Revit application.

 

You can however specify the snap settings via the ObjectSnapTypes argument when calling PickPoint:

 

https://apidocs.co/apps/revit/2019/7b0edd8c-ea51-0b19-7455-21d3bf3152e8.htm

 

Cheers,

 

Jeremy

 



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

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi  Jeremy, 

 

Thank you for your reply! 

 

In ObjectSnapTypes Enumeration of PickPoint interface, there are no values about the two options: [snap to remote objects] and [snap to point clouds ]. These two options are related to application, but not related to document.

 

If these two options are checked, when you use PickPoint command in a medium large project, it will very slow especially at the begin. So I want to set these two options unchecked.

 

 

 

 

 

0 Likes