gelöst: Koordinatenformat bei Neustart stets wieder "," statt "."

Bitte benutzen Sie dieses Forum für Fragen, Kommentare und Probleme im Zusammenhang mit QCAD Professional

Moderators: andrew, Husky

Forum rules

Immer Betriebssystem und QCAD Version angeben.

Zeichnungsdateien und Bildschirmfotos beifügen.

Eine Frage pro Topic.

Post Reply
User avatar
OttoZ
Senior Member
Posts: 131
Joined: Wed Nov 06, 2019 11:15 pm

gelöst: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by OttoZ » Tue Jul 14, 2020 1:27 pm

QCad 3.23.0.5 (3.23.0.5)
Ich habe das Koordinatenformat über / Applikationseinstellungen auf Vorgabe gestellt.
Bei jedem Neustart startet die Zeichnung wieder mit dem "." als Dezimalpunkt.
Sicher gibt es da ein Hebelchen?
Last edited by OttoZ on Wed Jul 15, 2020 9:20 am, edited 1 time in total.

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

Re: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by CVH » Tue Jul 14, 2020 3:11 pm

Einverstanden, da:
Agreed, since: :oops:
https://qcad.org/rsforum/viewtopic.php? ... =separator

Grüße,
Regards,
CVH

User avatar
OttoZ
Senior Member
Posts: 131
Joined: Wed Nov 06, 2019 11:15 pm

Re: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by OttoZ » Tue Jul 14, 2020 5:48 pm

@CVH . danke für den Link.
Dort erkenne ich, dass auch andere dieses Koordinatenproblem haben.
Eine Lösung erkenne ich leider noch nicht.
Es ist ja kein großes Problem, bei jedem Programmstart muss ich eben mal diese Einstellung vornehmen.

User avatar
andrew
Site Admin
Posts: 9059
Joined: Fri Mar 30, 2007 6:07 am

Re: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by andrew » Tue Jul 14, 2020 6:03 pm

Kann ich hier nicht nachvollziehen.

Betriebssystem?

Was ist denn dort die "Vorgabe" (oder "Default")? "." oder ","?

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

Re: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by CVH » Tue Jul 14, 2020 11:42 pm

Hallo Andrew,
Meine Systemspezifikationen werden angezeigt.

Dies ist ein Ausschnitt aus meinen Skripten, in denen ich die Textausgabe formatieren muss.
In meinem Fall ist der Tausch konsistent.
Grüße.


Hi, Andrew,
My system specifics are show.

This is a snip from my scripts where I need to format the textual output.
In my case the swap is consistent.
Regards.

Code: Select all

// # Issue Fixed #
// Although my preference in Qcad is set to DecimalPoint = comma and ListSeparator = semicolon,
//   Qcad only uses the ListSeparator, and for decimal point it uses a point.
// All displayed values are with a point as comma, except dimensions in the drawing, those are with commas.
// See Q: https://qcad.org/rsforum/viewtopic.php?t=5589&hilit=separator
// I have to use comma & semicolon entering a list of values in the command line.
// Single values I can enter with a decimal point seen the adaptive nature of LineEdit / RMathLineEdit.
// Settings QCAD3.ini : [DimensionSettings]DecimalPoint = 44 // [Input]DecimalPoint = ","
//
// Native ECMAScript uses decimal points and commas as separator, similar as for hatch pattern files.
// In my case sprintf() returns values with a point; numberToString() replaces these by comma's.
// # Workaround # Using semicolon as temporary list separator,
//    replace any form of a comma with a point and then replace any semicolon with comma's.
// This should work for both metric and imperial application settings.
Last edited by CVH on Wed Jul 15, 2020 11:48 am, edited 1 time in total.

User avatar
andrew
Site Admin
Posts: 9059
Joined: Fri Mar 30, 2007 6:07 am

Re: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by andrew » Wed Jul 15, 2020 9:10 am

CVH: The preference only affects QCAD's coordinate display and input. ECMAScript cannot be forced to work with commas instead of points, so this is outside the scope of this preference (print, qDebug, sprintf, toString, etc.).

OttoZ: Was ist das Betriebssystem und wie ist die Vorgabe in den Einstellungen?

User avatar
OttoZ
Senior Member
Posts: 131
Joined: Wed Nov 06, 2019 11:15 pm

Re: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by OttoZ » Wed Jul 15, 2020 9:20 am

Danke für eure Hilfe.
Unter Win10 trat dieses Problem nicht auf.
Unter LinuxMint64mate18.3 ist das Problem nun, nach update auf 3.24.2.7, gelöst.
Nun bleibt das Koordinatenformat wie eingestellt.

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

Re: gelöst: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by CVH » Wed Jul 15, 2020 9:35 am

CoordinateFormat.png
CoordinateFormat.png (344.32 KiB) Viewed 7239 times

User avatar
andrew
Site Admin
Posts: 9059
Joined: Fri Mar 30, 2007 6:07 am

Re: gelöst: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by andrew » Wed Jul 15, 2020 9:47 am

CSV: Admittedly, it's a compromise (read "mess").. ECMAScript does not support "," as decimal point. Since QCAD allows ECMAScript in all input fields (e.g. options toolbar, property editor), things like Math.pow(2,3) would become ambiguous (two parameters 2 and 3 or or one parameter 2.3). Not to mention Math.pow(2,3,2). Arguably, the comma could be used in more places.

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

Re: gelöst: Koordinatenformat bei Neustart stets wieder "," statt "."

Post by CVH » Wed Jul 15, 2020 10:08 am

Wenn ich jedoch Semikolon und Komma wähle, wird dieses Koordinatenformat NICHT in den Benutzeroberflächen verwendet.
Siehe srceengrab. :oops:
Für Dims ja. Alles gut dort. :P
Das Format ist auch für die Eingabe von Koordinatenlisten unbedingt erforderlich. :?
... und das beeinträchtigt meine Fähigkeit zum Kopieren / Einfügen. :(

Sobald Sie den Dreh raus haben, bauen Sie ein System ein, das nicht durch ein Komma oder einen Punkt ausfällt.
Das war für FlexPainter und jetzt auch für Tile2Hatch notwendig. 8)
Solange alles Skripte sind, ist es in Ordnung. In dem Moment, in dem eine Benutzeroberfläche involviert ist, muss ich die 'Texual Form' richtig machen.
Es ist in der Tat ein ziemliches Durcheinander, diese Skripte anhand von Einstellungen in verschiedenen Einheitensystemen zu testen ...
Ich schaffe das schon.

Grüße,
CVH

Still, when I choose for semi-colon and comma, that coordinate format is NOT used in the UI's.
See srceengrab. :oops:
For dims yes. All fine there. :P
The format is also strictly necessary to enter coordinate lists. :?
...and that messes with my copy/paste ability. :(

Once you get the hang of it you build in a system that won't fail on a comma or a point.
That was necessary for FlexPainter and now for Tile2Hatch too. 8)
As long all is scripting it is fine, the moment a UI is involved, I have to get the 'texual form' right.
Its indeed a pretty mess to test these scripts against settings in different unit systems ...
I'll manage.

Regards,
CVH

Post Reply

Return to “QCAD Professional”