PGia Posted 22 hours ago Posted 22 hours ago Hello, I'm back here once again to bring up a very interesting topic: How can AutoCAD (installed on a Windows 10 tablet with an integrated GNSS receiver) be made to display its real-time UTM position (or latitude/longitude), for example through a block? Is this possible? Are there any Lisp routines capable of achieving this? 1 Quote
Steven P Posted 20 hours ago Posted 20 hours ago Not sure, can the GNSS write / overwrite or updated a text file continuously? Reading a text file is easy with CAD, copy that to a block and the rest is all possible - not sure the interface yet. BigAl might know something later today. Quote
PGia Posted 19 hours ago Author Posted 19 hours ago I don’t really understand how a GNSS receiver works. It seems that most of them operate by sending data to a port. The receiver is a u-blox device. Quote
mhupp Posted 15 hours ago Posted 15 hours ago (edited) Would need a Reactor and connect to some type of database. Edited 15 hours ago by mhupp Quote
BIGAL Posted 9 hours ago Posted 9 hours ago Like @mhupp may need to run an external program that writes current location to a file, then you can read that file and update say text. Depending on the program may run a BAT file or run the program or use powershell to run. I think can look at a file date has changed via reactor but manual much easier. I did a Google and did start to find hints of save to a txt or csv file but that is as far as I went. It is something you need to do, yje googling. Talk to who you bought the device from they may have something. Quote
Danielm103 Posted 1 hour ago Posted 1 hour ago I think you would need Python, .NET, or ObjectARX as Autolisp does not have an on idle event that I can see. According to AI, you can read the input stream in a background thread, then use AutoCAD’s on idle event to update geometry in AutoCAD. I asked AI about using PyRx and it spit out a bunch of code converting $GPGGA $GNGGA to Lat/Log and stuff, I attached it. scratch.txt Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.