Thanks @JustinSBlack for that nice script. I just build it from your screenshot.
Does anyone know what categroy i need to select in german revit? If i select “Linien” i get an error in the elment.name node. If i try the script with ENG Revit everything works like a charm.
Kind Regards
Error:
Warnung:Element.Name erwartet Argumenttyp(en) (Revit.Elements.Element), wurde jedoch mit (string
[]) abgerufen.
Documentation Browser:
Expects argument type(s), but was called with
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. Read more posts on the Dynamobim forum discussing “expects argument type geometry”.How to fix
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 node.
More information
To find out more, please check posts on the Dynamobim forum discussing “expects argument type”.
