Skip to content

Unit Test Framework for Revit API updater samples.

License

Notifications You must be signed in to change notification settings

ricaun-io/RevitTest.Updater

Repository files navigation

RevitTest.Updater

Revit 2021 Visual Studio 2022 Nuke License MIT Build

Updater

The sample project to test IUpdate using the ricaun.RevitTest Framework.

WallUpdaterTests

This test uses the BuiltInParameterUpdater to register the parameter BuiltInParameter.ALL_MODEL_INSTANCE_COMMENTS and BuiltInParameter.CURVE_ELEM_LENGTH to check what parameter is trigger when the wall is modified.

Two thing is tested, the wall Comments changed and the wall Curve length changed.

  • When the wall Comments parameter change, the update trigger with BuiltInParameter.ALL_MODEL_INSTANCE_COMMENTS, like expected.

  • When the wall is extended or the geometry lenght is changed, the update not trigger with BuiltInParameter.CURVE_ELEM_LENGTH as the source of the updater, the INVALID is used to indicate that the updater did not find the parameter that was changed.

References

Video

Video in english about this project.

VideoIma1

License

This project is licensed under the MIT License.


Do you like this project? Please star this project on GitHub!