Hi, I'm a surveyor. My total station reads .txt files, and I would like to know if theres a way to export points in libreCAD as a .txt file. this would help me out tremendously. Any help is great thanks.
As far as I know (surveyor as well) there is no CAD system that can do this on it's own. Even with Autodesk or Bentley systems (with Allplan I'm not that sure) you only get such an output by using extensions, add-ons or 3rd-party software.
A workaround might be to use DXF. Probably your Totalstation can process DXF as well. If not - DXF is basically a text file, as you can see when you open it with an editor. Points are listed as follows:
[export as DXF R12 - most compatible]
Now you can extract the co-ordinates [123457.333, 234568.444] using a script (or doing it manually), adding a point number and write them into a txt file.
It would be much easier if there was a command, function, tool, whatsoever in LibreCAD telling you the properties (including co-ordinates) of a selected point in the log/command window (like _idpoint or _list in AutoCAD). I haven't found it yet. Then you'd only need to copy that output into a txt file, let work some script on it to add point numbers and do some further formatting.
As mentioned before you should copy the output from the 'list entities' into a file named 'copy.txt' and run the script.
It creates a file 'pyTest.txt'
You'd have to adjust the path for both the 'copy.txt' and the 'pyTest.txt' and might change the file names as well.
Depending on the language your using you might have to change the search string "im Punkt:" into the apropriate one.
If it is some Linux you're using you'd have to make the script executable by 'chmode -x' via terminal.
Hi, I did some modifications to your script, now it could retrieve the height of the point, the original number and the code if they were imported along with the Read Ascii Files plugin.
You will need a build of LibreCAD that contains the modified ListEntities plugin to get the script working properly.
Please, take a look at it and modify/comment anything you feel to improve it.