Dynamic Update after Element Translation

AGGilliam
Collaborator

Dynamic Update after Element Translation

AGGilliam
Collaborator
Collaborator

I'm trying to learn about how the Dynamic Updater works, and I 'm getting a bit stuck. I was looking through an old example that updates a section to follow a window after it gets moved but, when I move the window, nothing happens. I imagine it has something to do with the trigger functionality changing over the years but I'm not sure how to fix it.

 

Does anyone know how I might accomplish this in Revit 2020? The example classes I looked at can be found here and here.

0 Likes
Reply
Accepted solutions (1)
724 Views
3 Replies
Replies (3)

jeremytammik
Autodesk
Autodesk
Accepted solution

You are pointing at the DynamicModelUpdate Revit SDK sample.

 

The Revit SDK samples are continuously maintained and should work perfectly well out of the box for whatever version of Revit you are working with.

 

The sample you point out seems to be from the Revit 2012 API.

 

Since you are working with Revit 2020, I suggest you try to use the corresponding DynamicModelUpdate sample from the Revit 2020 SDK instead.

 

You can obtain of from the Revit Developer Centre, developrevit:

 

https://www.autodesk.com/developer-network/platform-technologies/revit

 

Good luck!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

AGGilliam
Collaborator
Collaborator

Thank you! I did notice though, that the 2020 version is built as a Command rather than an Application. Is it still possible to build it as an Application or is it not recommended?

0 Likes

jeremytammik
Autodesk
Autodesk

Rather confusing of them to change it to an external command and not rename the C# module, leaving it as Application.cs. I had to digest that for a moment first.

 

Whether the updater is registered by an external application or an external command makes absolutely no difference.

 

Except: one clear advantage of implementing the registration in an external command is given by the fact that you then have total control over whether and when you wish the registration to happen.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder