← All bug reports

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

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Low
Priority
Normal
Reported version
3.29.6
Operating system
macOS Sonoma (14) M1/2/3/4/5
Reported
2024-05-06 by svogel
Closed
2024-06-13 by andrew
Votes
1

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.

Comments (7)

CVH 2024-05-06

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

svogel 2024-05-06

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 2024-05-06

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

svogel 2024-05-06

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?

andrew 2024-05-06

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.

svogel 2024-05-06

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

andrew 2024-05-07

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.