Spaces:
Runtime error
Runtime error
File size: 345 Bytes
1b42a61 |
1 2 3 4 5 6 7 8 9 |
def generate_gcode(model_path):
try:
gcode_path = model_path.replace(".scad", ".gcode")
with open(gcode_path, "w") as f:
f.write(f"(G-Code generated for {model_path})")
return f"G-Code generated successfully: {gcode_path}"
except Exception as e:
return f"Error in G-Code generation: {str(e)}"
|