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: 

Radiobutton in mvvm for choosing the linked model parameters

1 REPLY 1
Reply
Message 1 of 2
KStaseva
119 Views, 1 Reply

Radiobutton in mvvm for choosing the linked model parameters

Hello, colleagues, maybe someone has the example of radiobutton in mvvm or an article, where to read about it? I have to connect the radiobutton to one of parameters in the linked model. If it exists, this parameter will be used, if not - the number from the text box. 

1 REPLY 1
Message 2 of 2
RPTHOMAS108
in reply to: KStaseva

I don't think MVVM is really an appropriate pattern for this.

 

Your controls don't have direct and continuous access to the Revit model as you would an SQL database etc. At best you can bind to a property that makes a request of Revit and gets a response. It is better to make a shallow copy of the information you are interested in (the data context object) have that bound to your controls  and push all of the changes for the object onto Revit rather than in bits and pieces via individual controls.

 

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community