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:
I’ll agree with @infeeeee here that there are a few knowledge gaps which you need to fill to execute this task.
Bounding boxes do not rotate under any circumstances. They always align to your X-Y axis.
Curve.Point at parameter or Curve.CoordinateSystemAtParameter could help here, but it would also require a intersection or containment test
A complete run through the Dynamo Primer would help fill these knowledge gaps (and likely others) with some of this stuff. Be sure to skip nothing as you g…