Hey ya'll

Post to this forum to introduce yourself to this forum if you are new here. You might want to include some information about the work you are doing or planning to do with QCAD.

Moderator: andrew

Post Reply
User avatar
gmpowell71
Newbie Member
Posts: 5
Joined: Fri Jan 28, 2022 11:05 pm
Location: Somewhere out there.

Hey ya'll

Post by gmpowell71 » Fri Jan 28, 2022 11:27 pm

Greetings from the Deep South(North America).

I'm working towards a second career as a land surveyor. With that in mind, I've been collecting value added open source software to help me achieve my future career goals as cost effectively and efficiently as possible. QCAD and QGIS seems to be great solutions!

I downloaded the trial version and started learning. I quickly discovered the scripting capability and attempted to write a script to calculate Bearing and Azimuth with some formatting. I blew through the 100 restarts in a few days trying to refine the script and restarting.

I went ahead and purchased the software and was able to refine the script but quickly realized the limits of my abilities while utilizing the available online resources, examples and documentation. I wish there was more available.

If anyone is interested, the script is attached. It calculates the distance, bearing and azimuth between two points and outputs it to the command line. I then cut and paste those values into text blocks for use in my products. I would love to be able to write script for alternative formats and additional text. DMS format, configured precision N,S prefixing and E,W suffixing would be nice as well. Maybe someone here can take it further. I've reached the limits of my current capabilities.

The script is cobbled together from the dovetail example, script and the point to point measurement script. It's definitely Dr. Frankenstein's work. Enjoy!
Attachments
Bearing.js
Script to calculate distance, bearing and azimuth point 2 point.
(5.36 KiB) Downloaded 71 times
Is it crawfish season yet?

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4188
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Hey ya'll

Post by Husky » Sat Jan 29, 2022 1:00 am

Hello gmpowell71 - welcome to the forum.

Thanks for introducing yourself and your script contribution. Not my wheelhouse but I'm sure interested user will look into that! :wink:
Work smart, not hard: QCad Pro

If a thread is considered as "solved" please change the title of the first post to "[solved] Title...". Thanks!

User avatar
lphilpot
Senior Member
Posts: 111
Joined: Mon Oct 30, 2017 4:03 am
Location: Deep South USA

Re: Hey ya'll

Post by lphilpot » Sat Jan 29, 2022 4:05 am

Welcome to the forum, and to QCAD. I'm an occasional user, but I actually find myself looking for applications (in my free time, I'm no pro). I'm also from the Deep South (Louisiana).
Len
----------------------------------------
QCAD Pro

Post Reply

Return to “Introduce Yourself”