Update tab view when change programmaticaly the name view

Update tab view when change programmaticaly the name view

sizy458
Advocate Advocate
269 Views
1 Reply
Message 1 of 2

Update tab view when change programmaticaly the name view

sizy458
Advocate
Advocate

Hello,
when I change the name of the view by the property View.Name,
and the view is already activated in Revit, the name of the view in the tabcontrol is not updated,
I have to manually click again on the view so that the tabcontrol is updated.

Thanks

 

 

sizy458_0-1681722013356.png

 

0 Likes
270 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Yes, sorry about that. There may be ways to programmatically trigger that update, e.g., simulate the user click using the Windows API, switch back and forth between different views, move an element by a zero-length vector and regenerate, move an element back and forth by a very small non-zero-length vector and regenerate, etc. Please let us know how you end up solving this. Thank you, and good luck!

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes