Page 1 of 1

QCAD saving linetype and textstyle definitions into empty files

Posted: Wed Feb 21, 2018 8:52 pm
by spatz
Hello

I happened to find out that QCAD is saving linetype and textstyle definitions that are available in the application even into an empty file without any objects.

I came across this at work when I tried to find out why every text entity has gotten his individual textstyle after editing files in QCAD that were originally created in AutoCAD. So I tried to reproduce this at home. Attached file was created in QCAD 3.16.4 on Debian GNU/Linux (amd64) by just opening an empty file (not from template) and saving it.

Could you please help me out in understanding this behavior? Is this intended and can I purge this unused definitions?

Regards,
Stephan

Re: QCAD saving linetype and textstyle definitions into empty files

Posted: Wed Feb 21, 2018 10:28 pm
by Husky
Hi,
spatz wrote:Is this intended and can I purge this unused definitions?
Yes, yes. :wink:

QCAD saves a few settings independently from the drawing for convenience reason. This settings are stored in the qcad3.ini or qcad3.conf - regarding to the used OS.
One simple example is if you draw a horizontal line with a length of 100 units then it will be stored in those application settings for repeatable use and is available until you change it. This isn't stored in the drawing and it is only available on that particular QCAD computer. Unprofessional but common term for that behavior is "Remember function". :wink:

Re: QCAD saving linetype and textstyle definitions into empty files

Posted: Fri Feb 23, 2018 5:43 pm
by spatz
Thank you, Husky,

but the linetype and textstyle definitions are actually saved into the file. If you open the file attached to the first post with a text editor you can see some entries (at least ten each) for

textstyles:

Code: Select all

 0
STYLE
  5
E6
330
3B
100
AcDbSymbolTableRecord
100
AcDbTextStyleTableRecord
  2
textstyle1
 70
     0
 40
0.0
 41
1.0
 50
0.0
 71
     0
 42
0.2
  3
ltypeshp.shx
  4
and linetypes:

Code: Select all

LTYPE
  5
DD
330
3D
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
  2
ACAD_ISO08W100
 70
     0
  3
ISO long-dash short-dash ____ __ ____ __ ____ _
 72
    65
 73
     4
 40
36.0
 49
24.0
 74
     0
 49
-3.0
 74
     0
 49
6.0
 74
     0
 49
-3.0
 74
     0
  0
Regards,
Stephan

Re: QCAD saving linetype and textstyle definitions into empty files

Posted: Sun Sep 29, 2019 5:49 pm
by ljbuller
Sorry to re-open an old post, but here goes anyhow.
We have block - purge unused blocks and Misc - Modify - purge unused layers and blocks. I find them very useful to clean up a drawing.

AutoCAD and Draftsight have a "purge" command that clean up unused line and text styles. Any chance that Either that could be incorporated into QCAD or one of the developers would have a plugin for that?

Re: QCAD saving linetype and textstyle definitions into empty files

Posted: Mon Sep 30, 2019 10:43 am
by andrew
QCAD does not deal with text styles or line types in the same way as those other products.

Text styles are not supported at all in QCAD and handled internally (a text style is created when needed on exporting to DXF/DWG).

All line types that are defined in .lin files are always immediately available for any new or imported file. Line types cannot be imported or removed.

This makes QCAD easier to handle for the vast majority of users.