Dynamo with Adaptive Componets

Dynamo with Adaptive Componets

cbullenUC6PX
Contributor Contributor
841 Views
3 Replies
Message 1 of 4

Dynamo with Adaptive Componets

cbullenUC6PX
Contributor
Contributor

I've been having issues with Dynamo Element.SetParameterByName. In the past I have been able to create adaptive components for Patterns and have noticed that no matter what I do the parameter error comes back that it is read only. I'm currently using Dynamo Core 3.19.3.6394 and Dynamo Revit 2.19.3.10292. I've attached the graph I'm using. This graph works on adaptive elements that are not in a pattern but refuses to access the parameter in the components inside a pattern (Simple Mass Element). I've used the same graph before and never had an issue. I've reviewed some YouTube videos that show the same methods I'm using and it's apparently working. I thought I was missing something but when I followed to the letter what was shown, I get the same error - but theirs work??

Is there something I'm missing that has changed?

cbullenUC6PX_0-1710035834195.png

 

0 Likes
842 Views
3 Replies
Replies (3)
Message 2 of 4

cbullenUC6PX
Contributor
Contributor

Just in case it helps, here is the file if anyone can take a look at.

0 Likes
Message 3 of 4

L.Maas
Mentor
Mentor
In your script you get the instances placed in the project and then try to write a value to a parameter (Offset). In this case Dynamo looks at the instance parameters of your selection. However Offset is a type parameter therefore Revit can not find it.
So in your script you should select the family type and then write the parameter.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 4 of 4

cbullenUC6PX
Contributor
Contributor

Thank you for responding L.Mass. I originally had it set to Instance since each component would be affected uniquely with the random list, but it didn't work. I then tried the Type parameter and tried running it with a number slider, which also didn't work. I reverted back to the Instance but must not have saved my file before posting it. Either way, even when the "Offset" parameter is set to Instance it still doesn't work. Any deeper insight into this maybe being a bug?

 

Kind regards

Chris

0 Likes