The sample project to test IUpdate
using the ricaun.RevitTest Framework.
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 withBuiltInParameter.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, theINVALID
is used to indicate that the updater did not find the parameter that was changed.
Video in english about this project.
This project is licensed under the MIT License.
Do you like this project? Please star this project on GitHub!