I saw in this and many tutorials that the node Curve.ExtrudeAsSolid is used to extrude different curve at same height. Do you know how to create a definition that extrude a list of curves with a preset list of height(string or values)?

I tried to do that but seems like the node Curve.ExtrudeAsSolid don’t accept arrays…

Thank you for your help

show us the error message

Curve.ExtrudeAsSolid needs a closed curve and can’t handle polycurves

Hello. If you mean you want sides of a solid extruded to different heights (like each face extruded to a different height), try extruding as surfaces first then join them all into a single solid.

If you mean like using two curves from different views, there have been several threads on how that has been done if you want to try searching for it.

@JacobSmall’s post in Curves from two views shows one example.

1 Like

Now I have this definition, and it extrudes every polycurve by 15000 mm… If I try to change the distance from a single parameter to a list of values, it appared me this error…

“Warning: One or more of the input types are not matching. Couldn’t find a version of ExtrudeAsSolid that takes arguments of type (__array,Autodesk.DesignScript.Geometry.Vector,__array)”

So how it’s workflow to handle different polycurves…? I don’t know this logic step, and I couldn’t find it in the forum

try this

other example:

quite What I wanted (I tried it already, but it wasn’t the results I wanted to achieve)

Imagine that, instead of regulare list, I have a list of values as in figure… how can I convert them to block?

it is the same…a codeblock list is like a normal list, only created with another method

u need to show us the error u got!
In my example i get this warning because the values are to high for the geometry creation