Setting a parameter value returns Dereferecing a non-pointer

Here’s the scenario

Grabbing all the rooms using the Lunchbox Room Element Collector

Extracting a First parameter value using Element.GetParameterValueByName

Multiply that First Parameter with the Area(also extracted from the node)

Trying to pass that calculation to a Second Parameter using Element SetParameterByName

The Second Parameter is a Shared Parameter(Numbers) and i get that error … Dereferecnig a non-pointer

 

Thanks for any help :slight_smile:

Can you share your workflow or at least that part of your workflow that shows the data coming into the node?

Of course :slight_smile:

Here’s a link to the rvt and the dyn: https://www.dropbox.com/s/hie597ormlr1bjn/Occupancy.zip?dl=0

 

Thanks for the help :slight_smile:

You’ll need to feed the list of rooms into the element input of Element.SetParameterByName. Currently you are feeding the values of the Occupancy Load factor into it.

God I’m stupid… what would i do without you :slight_smile:

 

Don’t worry - happens to me all the time, too, whenever there’s too much Dynamo spaghetti on screen… :wink: