I have problem with Reset element parameters with parameters which was changed during the work or assign in rhino.inside level by using Element Parameters.
When I’ve tried to reset element parameter which I assigned by Element Parameters I’ve received two errors:
RhinoInside.Revit.External: Object reference not set to an instance of an object.
Thank you for your answer. Now when I used Query Element Parameters component parameter is recognized but I’ve received the same error like before when I tried to reset parameter.
I think the issue is a bug, there’s something different about the shared parameter that isn’t being accounted for. If it’s an easy fix it will go into a daily build this week. We’ll post back here with more info once available.
Since Revit 2020 there is a method to do something similar but only works on shared parameters that are created with its ShouldHideWhenNoValue property set to true.
The RiR component calls this method on those parameters, but when this method is not available it sets 0 or empty string as you said.
Can you explain a little bit more on your case here?
When you set a number to a number parameter & then try and remove the number to not make it 0. It wont reset back to Null.
So if you dont set a number into a number parameter it will show empty till you set a number to the parameter.
Example:-
On the left a number was set and then removed and now it is forced to be 0 but we would like to see this empty not set to zero. To be forced to be set Null.
On the right parameter in the schedule no number was yet set to the parameter, which is null in RIR.