What is the description column for in the tree?

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!
run_the_race
Posts: 137
Joined: Mon Feb 01, 2021 7:22 pm

What is the description column for in the tree?

Postby run_the_race » Wed May 05, 2021 5:19 pm

I checked the wiki and it does not mention it: https://wiki.freecadweb.org/Tree_view

In the tree view what is the `Description` column for? I would have guessed there would be a description property one could set, and then it shows in the tree, but turns out not.
description.png
description.png (49.93 KiB) Viewed 301 times

Code: Select all

OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United Kingdom (en_GB)
User avatar
bambuko
Posts: 531
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: What is the description column for in the tree?

Postby bambuko » Wed May 05, 2021 5:31 pm

label 2
run_the_race
Posts: 137
Joined: Mon Feb 01, 2021 7:22 pm

Re: What is the description column for in the tree?

Postby run_the_race » Wed May 05, 2021 8:00 pm

bambuko wrote: Wed May 05, 2021 5:31 pmlabel 2
Thanks for that insight. I went through a few of my files and could not find something that has a `label2` property, what uses labels2?
User avatar
bambuko
Posts: 531
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: What is the description column for in the tree?

Postby bambuko » Wed May 05, 2021 8:43 pm

you have:
internal (system generated) name
label
label 2

label replaces name in tree view
label 2 is displayed as description in tree view

if you select an item in tree view, all these will be displayed in properties window

all above from memory (haven't got FreeCAD PC available at the moment)

5 seconds with interweb search, results in :mrgreen:
https://wiki.freecadweb.org/Object_name
chrisb
Posts: 35340
Joined: Tue Mar 17, 2015 9:14 am

Re: What is the description column for in the tree?

Postby chrisb » Wed May 05, 2021 9:50 pm

run_the_race wrote: Wed May 05, 2021 5:19 pm I would have guessed there would be a description property one could set, and then it shows in the tree, but turns out not.
Yes it is:
Attachments
SnipScreenshot-61c996.png
SnipScreenshot-61c996.png (14.82 KiB) Viewed 246 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
run_the_race
Posts: 137
Joined: Mon Feb 01, 2021 7:22 pm

Re: What is the description column for in the tree?

Postby run_the_race » Thu May 06, 2021 8:03 am

chrisb wrote: Wed May 05, 2021 9:50 pm
run_the_race wrote: Wed May 05, 2021 5:19 pm I would have guessed there would be a description property one could set, and then it shows in the tree, but turns out not.
Yes it is:
Did you add that property via python? I went through the `Data` and `View` properties and could not see a `label2`.
Bance
Posts: 1958
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: What is the description column for in the tree?

Postby Bance » Thu May 06, 2021 8:07 am

Did you read the wiki page bambuko linked?
User avatar
bambuko
Posts: 531
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: What is the description column for in the tree?

Postby bambuko » Thu May 06, 2021 8:10 am

run_the_race wrote: Thu May 06, 2021 8:03 am ...Did you add that property via python? ...
No, like I have said before - "property view"
(or double click on the description space in tree view and type directly there)
property view.jpg
property view.jpg (32.8 KiB) Viewed 199 times
chrisb
Posts: 35340
Joined: Tue Mar 17, 2015 9:14 am

Re: What is the description column for in the tree?

Postby chrisb » Thu May 06, 2021 8:18 am

Clicking on the right side in tree view is also possible :roll: .
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Roy_043
Posts: 3080
Joined: Thu Dec 27, 2018 12:28 pm

Re: What is the description column for in the tree?

Postby Roy_043 » Thu May 06, 2021 9:57 am

For Label2 to be displayed in the properties you must right click and check "Show all". See Property_editor.