Page 1 of 1

New Script: Import Leetro MOL files, source included

Posted: Sat Jun 01, 2013 2:22 pm
by matthiaswm
Well, here is another script that I found useful.

I have a Laser Cutter with a Leetro 6515 controller in it. The machine does not understand dxf files, but requires a proprietary .MOL file that is created using their LaserCut software. This script takes .MOL files and imports them into QCad. All vectors of the artwork should be imported. Movement with the laser off generates grey vectors. Movement with the laser on is colored from dark red (slow motion) to hello (50% speed) to white (100% speed). The coloring makes the acceleration curves visible and helped understanding the file format.

What is this good for? Well, I use it for testing my .MOL file generator, but it can also be helpful to recover a lost file that may still be in the laser cutter memory. And even if you do not have a laser cutter at all, this script may be a useful base for importing binary files into QCad using only Qt Script.

Oh, and since the format is proprietary and undocumented, there may be bugs when importing.

Re: New Script: Import Leetro MOL files, source included

Posted: Fri Jul 12, 2013 2:08 pm
by andrew
I've included this script in the latest QCAD release (3.1.5) under menu Misc - Import / Export.

On github, it is checked in under:
https://github.com/qcad/qcad/tree/maste ... /MolImport

Thanks for this contribution!

Re: New Script: Import Leetro MOL files, source included

Posted: Thu Aug 09, 2018 5:16 pm
by cadfan
I am interested in the MOL importer to use with my laser. I found the 1x1cm.mol test file on the GitHub and attempted to import it but nothing seems to happen - no error message and the shape is not drawn. Is this still supported functionality?

thanks!

Re: New Script: Import Leetro MOL files, source included

Posted: Fri Aug 10, 2018 12:00 am
by matthiaswm
I have given up on the Leetro stuff. I was able to generate MOL files that mostly worked, but some of them jerked the laser and were not safe for production. I ended up replacing the Leetro controller with a simple Arduino based controller and grbl as the firmware which works well enough with GCode files generated by QCad. I am currently upgrading the controller to an ARM based Arduino which should give me better curves and raster images.