Note that with QCAD being 2D, only X/Y coordinate pairs can be imported (no Z).
Depending on your programming skills, you could write a small import script that parses the KML (Keyhole Markup Language?) file and inserts the points into the current or a new drawing.
With KML being an XML dialect, I would recommend using the Qt QXmlSimpleReader / QXmlDefaultHandler classes to read the file.
QCAD 3 final will come with an example script that imports point pairs from a file in the simple format:
- Code: Select all
You can install and use this script also with QCAD 3 RC5:
- Quit QCAD
- Download the attached ZIP file
- Extract its contents to your QCAD installation directory into sub folder scripts/Examples
- This creates folder scripts/Examples/IOExamples/ExImportPoints
- Start QCAD
- Choose menu Examples - Import / Export - Import Points
- Choose any file in the x,y format described above and click OK
- QCAD inserts a point entity for every line in the file containing an x,y coordinate. Other lines in the file are ignored.