Create Rebar From Curves Error

Hello All. I’m studying Python for creating reinforcement from straight lines. When I finished writing I got the error:[ Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 35, print
Exception: curves do not form a valid CurveLoop.
Parameter name: curves]. Can you guys help me with this error? Thanks very much…!

Rebar from Cad.dyn (19.5 KB)

Hello @MINHXU98765

The method CreateFromCurves need CurveLoop to define the shape of the rebar curves.

I’m not a structural engineer, but in your case, if you want only use vertical lines (axis) to draw rebars, it’s better to use CreateFreeForm method, you have an example in this post

Thank You…! :heart_eyes: