change Revit application setting?

change Revit application setting?

zhuliyi0
Enthusiast Enthusiast
952 Views
5 Replies
Message 1 of 6

change Revit application setting?

zhuliyi0
Enthusiast
Enthusiast

Can I change application settings programably?

 

Specifically, I want to change the settings at the lower right corner of UI:

zhuliyi0_0-1614332616871.png

 

0 Likes
Accepted solutions (3)
953 Views
5 Replies
Replies (5)
Message 2 of 6

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @zhuliyi0 ,

try using this below link

https://www.revitapidocs.com/2020/12e366b2-1437-3e59-f754-8e141ebbe031.htm 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 6

zhuliyi0
Enthusiast
Enthusiast
I tried looking for something in API doc, couldn't find any. I might
missed it somewhere in it?
0 Likes
Message 4 of 6

Sean_Page
Collaborator
Collaborator
Accepted solution

As @naveen.kumar.t  mentioned, I believe this is what your looking for.

 

https://www.revitapidocs.com/2020/b08cf01a-6a3e-4833-8b73-ccf7803f977b.htm

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
0 Likes
Message 5 of 6

franciscopossetto
Advocate
Advocate
Accepted solution

Hey,

 

I tested what @naveen.kumar.t  provided you. It is working. Just one detail to mention is that the icons are not updated after modify the properties... until you click one of them from the UI. Then they are updated.

 

 

SelectionUIOptions selectionUIOptions = SelectionUIOptions.GetSelectionUIOptions();
selectionUIOptions.SelectLinks = false;
selectionUIOptions.SelectUnderlay = false;
selectionUIOptions.SelectFaces = false;
selectionUIOptions.SelectPinned = false;
selectionUIOptions.DragOnSelection = false;

 

 

This is the result after run this code, everything is locked but icons haven't changed.

 

franciscopossetto_6-1614434809805.png

 

If I click one of them, it changes and the rest are updated.

 

franciscopossetto_7-1614434839709.png

 

 

Kind regards.

Github:
https://github.com/franpossetto
0 Likes
Message 6 of 6

zhuliyi0
Enthusiast
Enthusiast

Thanks guys, it worked.

0 Likes