Hi there,
pretty new here on dynamosphere… I’m starting out and trying to create a small script to do the following :
- read a specific parameter value from a structural floor element
- find out the analytical counterpart of that floor
- create a hosted load on that analytical floor depending on the parameter value read before.
I found an example on creating a hosted load but don’t know how to find the analytical version of the selected structural floor element. Any helps is greatly appreciated, thank you…
Hello!
- To get parameters use the Element.GetParameterValueByName node
- To get the anlytical model of any element create a python node and use the GetAnalyticalModel method
To get more specific help you have to try first, and then post a screenshot and a dyn file.
2 Likes
Hello Einar,
screenshot is what I’ve tried so far, to summarize:
- I need to get all Analytical Floors
- Read a parameter value (“DL”) from those elements
- Create a hosted area load with the value “DL” for each element.
I just can not send the parameter values together with the elements to python script. I’m feeling soo noob 
At first glance it looks like that example should work, what is the error message you get?
You should move the transaction start outside the loop:

Hi there,
I moved transaction outside however I get an error stating:
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 27, in
AttributeError: ‘list’ object has no attribute ‘ToXyz’
Hosted Area Load.rvt (324 KB)
HostedAreaLoad.dyn (6.2 KB)
I added three nodes, and the python script created the load: