ElementSetParameterByName: ''The parameter is read-only''

ElementSetParameterByName: ''The parameter is read-only''

gregoriosaura
Contributor Contributor
8,705 Views
3 Replies
Message 1 of 4

ElementSetParameterByName: ''The parameter is read-only''

gregoriosaura
Contributor
Contributor

 

Hi all,

 

I've got a little problem with the code: ElementSetParameterByName

 

I can modify the parameter "h_triangle" in the revit file manualy, but in the meantime, Dynamo tells me that is an only-read parameter.

 

Do you know why is it hapenning?

 

(you have the print-screen from dynamo and the revit and dynamos  files in attached.

 

 

Thanks in advance!

 

parameter is read-only.png

0 Likes
Accepted solutions (1)
8,706 Views
3 Replies
Replies (3)
Message 2 of 4

L.Maas
Mentor
Mentor

If you look at your project then you see this for the triangle family

 

Height.png

 

You see that the parameter h_triangle is grayed out in the properties window, meaning that you can not modify it. Thus it has nothing to do with Dynamo.

As a standard rule you could say, if you can not do it in the Revit GUI you can not do it with code.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 3 of 4

gregoriosaura
Contributor
Contributor
Accepted solution

Thanks Louis!, Indeed, I just tried to do the same thing not in a *.rvt file, but in a *.rfa file, and it did work! In a *.rvt file, you can modify the parameter only if you are into the modification dialogue of the conceptual mass family. So , the script worked!

 

Kind regards

 

Greg

 

 

0 Likes
Message 4 of 4

Anonymous
Not applicable

Привет
я столкнулся с той же проблемой. Как вам удалось изменить параметр экземпляра ?

0 Likes