if format_type == RLDFormat.RAPID_LASER: rld_data = self.parser.parse_rapid_laser(text_content) for polyline in rld_data.polylines: self.generator.add_polyline(polyline, closed=False) for line in rld_data.lines: self.generator.add_line(line[0], line[1]) for circle in rld_data.circles: self.generator.add_circle(circle[0], circle[1]) else: # ASCII_POINTS or GENERIC_CSV points = self.parser.parse_ascii_points(text_content) if len(points) > 1: self.generator.add_polyline(points, closed=False) elif len(points) == 1: # Single point becomes tiny circle self.generator.add_circle(points[0], 0.1)
The most efficient solution is asking the file creator to re-export the project from RDWorks as a DXF or AI file. rld to dxf converter
Developed by Autodesk, DXF is the universal gold standard for 2D vector data exchange. Nearly every CAD, CAM, and graphic design program (including AutoCAD, SolidWorks, Illustrator, and LightBurn) can open and edit DXF files. if format_type == RLDFormat
If you have AutoCAD and the RLD file is a text-based list of coordinates (common in surveying or custom CNC lists), you can write a script to import it. If you have AutoCAD and the RLD file
If you don't have access to RDWorks, you might consider these alternatives: