Access NodeView or ViewModel from NodeModel

Thanks @Michael_Kirschner2 this video has some good Extension/ViewExtension info

@rschmitt I discussed with @Michael_Kirschner2 and there is also another possibility to put your hands on DynamoModel, more precisely DynamoRevitModel. You’ll have to reference DynamoRevit.dll
There is a public class DynamoRevit which has a property RevitDynamoModel.
This is the model that is being used by Player and DynamoRevit as well.
Also there is another property here called ModelState that tells you the state of the model.
RevitDynamoModelState { NotStarted, StartedUIless, StartedUI };
There is the only model at any given moment in time used by the Player and DynamoRevit

3 Likes

@Bzz Thanks, but I don’t see a DynamoRevit.dll anywhere, not on my machine or in any dynamo nuget packages. Where should I be looking?

Might not come as a nugget. Look into the Revit addins/addons install path. It is part of Dynamo For Revit.

1 Like