Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Live update selected element

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
577 Views, 3 Replies

Live update selected element

Hello 

I'm contemplating a new plugin, and I'm unsure on how to start it. 

 

The idea is that I have a dockable window(already build), and I would like to, whenever I select an element, to input parameters of that element into the dockable window - It would then have to auto-update if I select a new element. 

 

Any pointers on how to do this? I was thinking about MVVM and bindings, but I'm really not a fan of it so any idea that doesn't include MVVM is preferable. 

 

In a regular WPF or windows forms document I would handle a SelectionChanged event and change the dockable window inputs there - is this possible with the Revit API? 

 

Labels (2)
3 REPLIES 3
Message 2 of 4
Moustafa_K
in reply to: Anonymous

Hi,

There is a selection changed event see this post

 

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
Message 3 of 4
Anonymous
in reply to: Moustafa_K

@Moustafa_K Thank you, allthough I’m dissappionted there isn’t a real Call to the API that does this. 

i might just try to set it up as a MVVM with bindings to selektion properties instead. No idea if it’s work but it’s worth a try. 

Message 4 of 4
Moustafa_K
in reply to: Anonymous

It should works... I also prefer to use MVVM. let us know the out put of your trials

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report