# Export selected lines as HPGL for a cutting plotter layer = iface.activeLayer() features = layer.selectedFeatures() hpgl_output = "IN;SP1;PU;" for feature in features: geom = feature.geometry() for point in geom.asPolyline(): hpgl_output += f"PAint(point.x()),int(point.y());" hpgl_output += "PD;" hpgl_output += "PU;SP0;"
with open("output.hpgl", "w") as f: f.write(hpgl_output) print("HPGL file ready for plotter")
Save as .hpgl and send via HPGL Plotter Utility (free). # Export selected lines as HPGL for a
Ve a Proyecto > Importar/Exportar > Exportar como SVG. Save as
Ya no necesitas software comercial de miles de dólares como FlexiSIGN o CoCut. Con descargar AnyCut software para plotter de corte gratis y combinarlo con el poder de QGIS, tienes una solución profesional para carteles topográficos, maquetas y señalización personalizada. " hpgl_output += "PD
| Software | Free? | Works with QGIS? | Notes | |----------|-------|----------------|-------| | Inkscape (with HPGL plugin) | Yes | Indirectly (export SVG from QGIS) | Most flexible | | Sure Cuts a Lot (SCAL) | No | — | Not free | | SignCut | Freemium | No | Limited free version | | Librecut | Yes | No | Very basic HPGL sender |
✅ Recommended free combo:
QGIS → Export as SVG → Inkscape (with "Plotter" extension) → Send HPGL to cutter