I need to calculate the length of the building perimeter, so I create a line style named as building perimeter. I have got error messages. I am new to Dynamo and know limited nodes, so I don’t know how to fix it even with the error prompt.
The followings are the error messages I’ve got. I assume “Item” is different from “Element”, how can I get the element of the item? I tried Categories node, but it doesn’t include the line style I created.
This error message indicates that the node you are using is expecting a certain type of input(s) but has received a type of input it cannot use. It is typically followed by additional information regarding what types were passed into the node you are using and what types the node expected to receive. Some of the most common operations that trigger this error are:
Element.SetParameterByName- try using use the node Element.Parameters to check the parameters in the element. Read more posts on the Dynamobim forum discussing “expects argument type setparameter”.
Geometry.BoundingBox- try using Element.BoundingBox instead, as discussed [here]
The section above mentions some approaches you can take to recover from this error. In general, check what input types the node you are using expects. If possible, change the inputs passed into the node to their expected types or check to see if other nodes can be used to achieve the functionality you want. Note that input types can be checked using the [Object.Type]