TechDraw Line Width change without effect

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
chrisb
Veteran
Posts: 54143
Joined: Tue Mar 17, 2015 9:14 am

Re: TechDraw Line Width change without effect

Post by chrisb »

Added my FreeCAD infos, its slightly outdated.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
vm03
Posts: 2
Joined: Wed Jun 02, 2021 7:39 pm

Re: TechDraw Line Width change without effect

Post by vm03 »

Hello!
Do you solved this? A have same problem on Fedora 33 and 34.
vm03
Posts: 2
Joined: Wed Jun 02, 2021 7:39 pm

Re: TechDraw Line Width change without effect

Post by vm03 »

I tried build FreeCAD from source (git master) on Fedora 34 and Line Width works.
maciej.krych
Posts: 1
Joined: Tue Nov 30, 2021 7:14 pm

Re: TechDraw Line Width change without effect

Post by maciej.krych »

Hello

In my version of freecad 0.18 line thickness is possible to set on:
Menu: Edit --> Preferences
then :"Display" section on the left side
and the "Part Colors" tab. I use following settings :

Default line width : 2px
...
Default vertex size: 2px

This setting when changed works only for new projects. Unfortunately I could not find how to apply change to an already existing project made where lines thickness was set to 9px.

It seems line thickness is taken from FreeCad preferences to project only at the moment of project creation? Later line thickness is stored inside of the project file?
To change it I edited the project file directly.
FreeCad project is a zip with project.FCStd extension. To open it for edition i add .zip at the end if file project.FCStd.zip
Open file with zip
look for file named: GuiDocument.xml
Extatct it from zip file so i can edit it
I use notepad to open and edit GuiDocument.xml

Search all tags sections with:


<Property name="LineWidth" type="App::PropertyFloatConstraint">
<Float value="9.0000000000000000"/>
</Property>

and change in each occurence 9 to 2:

<Property name="LineWidth" type="App::PropertyFloatConstraint">
<Float value="9.0000000000000000"/>
</Property>

to:
<Property name="LineWidth" type="App::PropertyFloatConstraint">
<Float value="2.0000000000000000"/>
</Property>
save file
put GuiDocument.xml to zip file

remove zip extension. and now the project is back with 2 px line thickness.

Make a copy of the file before edition just in case you damage it.
For me it works. Bit brute force solution but could not find anything better.
the same you can do to point size, xml tag is:

<Property name="PointSize" type="App::PropertyFloatConstraint">
<Float value="4.0000000000000000"/>
</Property>
Regards
Maciej
chrisb
Veteran
Posts: 54143
Joined: Tue Mar 17, 2015 9:14 am

Re: TechDraw Line Width change without effect

Post by chrisb »

maciej.krych wrote: Tue Nov 30, 2021 7:43 pm <Property name="LineWidth" type="App::PropertyFloatConstraint">
<Float value="9.0000000000000000"/>
</Property>
You use a pretty outdated version. Try 0.20.

For improved readability put the code snippets in code tags.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply