More random request :)


#1

I have a list of families that i want to randomize between a max and min values a single instance parameter.

So far i get the list of families no problem, the parameter name is read perfectly so i just need to find a way to change the value.

I’m assuming i need to assign the random value to the Element.Set.Parameter.ByName value but it needs to be a random value for each instance.

 

Thanks for your help


#2

does this help? http://dynamobim.org/forums/topic/curtain-wall-panel-type-randomization/


#3

It was one of the first discussion that popped when i search )
Unfortunately no, or at lest im too stupid to use it :slight_smile:

In this case im looking to randomize a parameter from an instance not a type.

 

This works fine to set the same value everywhere but i have a feeling that i will need to create another list, with the same number of elements, that contains random values THEN apply that to the parameter.

 

2014-09-08_14-33-31


#4

random


#5

With the Math.Round i get angle values that i’m looking for.

Then i’m parsing to the individual families. I plug the Math.Round into the value of the Element.SetParameterByName node i get a values in Revit like 515.662 degrees :slight_smile:

 

 

2014-09-09_12-19-17


#6

Revit is hard coded to work in radians. Could you try adding a Math.DegreesToRadians node ?


#7

God i’m so stupid ahahah

Thanks a million Dimitar