New Script: Import Leetro MOL files, source included

This forum is for QCAD user developed script Add Ons and Plug-ins.
Please use this forum to request/submit your script Add-Ons & Plug-in idea's.

Moderators: Clive, andrew, Husky

New Script: Import Leetro MOL files, source included

Postby matthiaswm » Sat Jun 01, 2013 2:22 pm

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.
Attachments
LeetroMolImport_1.1.zip
Unpack into the script directory (first entry is "script/"). Import MOL is in the File Menu.
(11.24 KiB) Downloaded 127 times
LetroMolImport.png
Imported file showing the acceleration of the laser head in color (red is slow, yellow is medium, white is fast)
LetroMolImport.png (13.19 KiB) Viewed 1785 times
matthiaswm
Junior Member
 
Posts: 22
Joined: Mon Apr 29, 2013 4:34 pm

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

Postby andrew » Fri Jul 12, 2013 2:08 pm

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/master/scripts/Examples/IOExamples/MolImport

Thanks for this contribution!
User avatar
andrew
Site Admin
 
Posts: 2515
Joined: Fri Mar 30, 2007 6:07 am


Return to QCAD 3 ' script Add-On & Plug-in challenge '

Who is online

Users browsing this forum: No registered users and 2 guests