(Relative) Polar feet + surveyor notation fails.

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

(Relative) Polar feet + surveyor notation fails.

Post by CVH » Thu Feb 22, 2024 8:20 am

Basically entering @50.71'<N80d04'30"E fails.
Invalid coordinate or distance "@50.71'&lt;N80d04'30&quot;E".

Relative or not, with or without the '@' prefix.
Feet with a dot or a comma in my case.
Knowing that the suffix for feet is merely evaluated as times 12 regardless the drawing unit, see:
https://qcad.org/bugtracker/index.php?d ... sk_id=2478
(The request is intended for metric users entering 50' 8.52" resulting in 15456.408mm or 15.456408m instead of 608.52 units)

50.71' is then evaluated as 50.71*12 = 608.52
N80d04'30"E is evaluated as 9.925 in degrees
But seemingly invalid when used in polar notation.

50.71*12<N80d04'30"E
608.52<N80d04'30"E
@50.71*12<N80d04'30"E
@608.52<N80d04'30"E
Are all valid entries.


I would expect that polar notation is chopped up in two parts with String.split("<") resulting in two strings in an array:
A distance in Part1 = @50.71'
An angle in Part2 = N80d04'30"E

The @ in part1 means relative and is set aside in a flag.
Part1 = 50.71' and evaluates to 50.71*12 = 608.52
Part2 = N80d04'30"E and evaluates to 9.925 degrees or 0.1732239282604372rad

What gives 608.52 units (=inches) away from the relative position with orientation 9.925 degrees.

The next best thing would be converting the included unit to the document unit (FS#2478) :wink:
I see the orientation in various notations/units being converted. So, why not the distance?

Regards,
CVH

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: (Relative) Polar feet + surveyor notation fails.

Post by CVH » Sun Mar 03, 2024 5:06 am

Related bug report on QCAD Bugtracker:
https://qcad.org/bugtracker/index.php?d ... sk_id=2539

Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”