Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

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

3 ANTWORTEN 3
GELÖST
Antworten
Nachricht 1 von 4
gregoriosaura
7795 Aufrufe, 3 Antworten

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

 

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

3 ANTWORTEN 3
Nachricht 2 von 4
L.Maas
als Antwort auf: gregoriosaura

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.

Nachricht 3 von 4
gregoriosaura
als Antwort auf: L.Maas

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

 

 

Nachricht 4 von 4
Anonymous
als Antwort auf: gregoriosaura

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

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report