QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category QCAD (main)
  • Assigned To
    andrew
  • Operating System macOS Sonoma (14) M1/2/3/4/5
  • Severity Low
  • Priority Low
  • Reported Version 3.29.6
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
  • Private
Attached to Project: QCAD Bugtracker
Opened by svogel - 06.05.2024
Last edited by andrew - 13.06.2024

FS#2569 - Layer > Add Layer: invalid names not prevented (M1/M2/M3)

Hi there,

i named a layer a layer like “Gründstück 35/293”. it seems the 35 slash 293.

maybe there is an “String” problem. the slash will be analysed and interpreted. maybe you can fix that.

i use macosx M1 version Sonoma 14.5.

maybe this can be fixed.

Closed by  andrew
13.06.2024 07:53
Reason for closing:  Fixed
CVH commented on 06.05.2024 09:25

Hi,

To my knowledge the slash is an invalid character.
http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffa23ce210c4a30acaf-7345.htm,topicNumber=d0e41665 https://help.autodesk.com/view/ACD/2015/ENU/?guid=GUID-CE211679-F264-4128-BE00-BF4E0E7DEA8E

These lists are regarded as incomplete there a comma isn't a valid character either.

One can not create layer names with these invalid characters under QCAD.
Here you see that QCAD adds a layer dialog input validator:
https://github.com/qcad/qcad/blob/master/scripts/Layer/LayerDialog.js#L72

The same restrictions are applicable on Block names.

Regards,
CVH

i see but maybe its an good idea not only to throw an invalid symbol and you cant change it. the application will crash or you need to kill them hard.

best way should be an invalid character and an information that you should change that. if the message comes up you cant do anything.

maybe this should be improved.

CVH commented on 06.05.2024 09:47

So, it is thus not a QCAD bug, it is a bug in your drawing document.
QCAD follows the dxf standard strictly.

One can update that in the source application.

Perhaps you could file a feature request or give a suggestion.

Regards,
CVH

Yes i can do that.

Maybe its an good idea to catch the error message and throw an information to change the layer name? what do you think?

Admin

It should not be possible to enter such a name for a layer. The layer name check fails in the layer dialog on the macOS M1/M2/M3 platform.

Hi Andrew,

ok. so do you think its a bug? By the way i use the commercial version and i like this software. :)

thanks Sven

Admin

The problem is that the layer dialog lets you enter characters that are not allowed by the DXF/DWG format (/ in this case). This will be fixed for the next release.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing