Create walls by thickness with a CAD link

Hello everyone! This is my first post in the forum.

I’m working on this Dynamo script (Walls from lines from CAD inserts) to automate wall modeling by selecting a CAD instance.

I’ve been able to create walls by specifying a particular wall type, but in the last step, I can’t obtain walls based on their thickness.

I think it’s because my Revit version is in Spanish, so I can’t find the correct translation (or correct word) of parameterName node in Element.SetParameterByName. I’ve tried getting parameter names of wallType to match with parameterName, but it returns null.

This is the error message

I attach some images and .dyn files.
MURORTHO_Modelado automatico_241008.dyn (112.7 KB)

I’m stuck at this point. I’d appreciate any advice. Thank you.

You are trying to set the width of Wall, You can not assign this parameter by name and value, You have to get the GetCompoundStructure, and then set width for that. you can contact me for more detail because this is very complicated.

I’ve been able to find the solution. As I mentioned in the previous post, I couldn’t find the correct parameterName, which was “Tipo” (Type).

It works perfectly now.

I’ll keep testing this script with more complex CAD files.

I was trying to follow the same structure of the script I mentioned before, so I was using the SetParameterByName node. Finally, I’ve been able to resolve this issue.

However, I’m interested in learning how to use GetCompoundStructure, so I’ll contact you. Thanks!