Closed polyline autocad to closed polycurve dynamo

hello,

I am trying to convert closed polyline in AutoCAD to closed polyline in dynamo to get geometry for bounding box. any help please

Hello,

Try with LinkDWG and selecting from AutoCAD directly. Then wait patiently for the polylines conversion to be completed in Dynamo (sometimes it takes a long time).

it seems working, but how can I rotate the bounding box to follow the orientation of the drawing?

Hi @mohammad.al-sharqawi,

If the proposed script works mark as solution, please.

Regarding the rotation of BoundingBox here is an explanation: