Replace parameter value

Replace parameter value

RECArchi
Collaborator Collaborator
1,698 Views
3 Replies
Message 1 of 4

Replace parameter value

RECArchi
Collaborator
Collaborator

Hi,

I created a Length Project parameter for rooms. I typed "2.60" for one of the rooms.

Question : Is-it possible to replace this value to "none" or to "null" value? I thought of using Dynamo but Element.SetParameterToNone (Springs) does not work.

Does anyone know how I can achieve this ?

Thank you in advance.

Sincerely.

0 Likes
1,699 Views
3 Replies
Replies (3)
Message 2 of 4

RPTHOMAS108
Mentor
Mentor

There is only Parameter.ClearValue but it states:

 

"This method will only succeed for Shared parameters that have their HideWhenNoValue property set to true."

That's more of a UI display thing is sounds like.  i.e. if parameter is marked as having nothing don't display the underlying version of that nothing that it has when it is set to say it has nothing.

 

Overall those of storage types which are value types are not nullable.

Message 3 of 4

RECArchi
Collaborator
Collaborator

Hi,

So, what do you do when you type something in a parameter  (not shared) that is used in a tag, and you're not able to delete it because Revit consistently displays this message ?

0 Likes
Message 4 of 4

RPTHOMAS108
Mentor
Mentor

All you can do is put in zero, although zero is not the same as no value.

 

It's an issue in the UI not fixable by the API. We had an issue with member connection forces. We didn't like the zeros implying no moment/shear etc. but at the same time we didn't want to display all the nominal connection forces in the schedule.

 

In that instance we abandoned the value type structural parameters we should have been using and used text ones instead.

 

All user parameters in tags must be shared parameters so what now happens to what is displayed in a tag when you clear the value? If it is a built-in parameter then I don't see a solution for that.

 

Would check if an idea exists for it. I'm guessing most deal with it by entering zero and adding a caveat to the drawing it features.

 

be able to reset parameter to NULL - Autodesk Community

0 Likes