Jump to content

Recommended Posts

Posted

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?

  • Like 1
Posted

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.

Posted

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.

Posted (edited)

Would need a Reactor and connect to some type of database.

Edited by mhupp
Posted

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.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...