Labelling/naming sketcher elements
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Labelling/naming sketcher elements
Hello,
I am using FreeCAD's Sketcher to create a 2D sketch. I want to extract the coordinates from this sketch and export them via a CSV file which, I will use for another application. The coordinates export part I have already figured out by playing around with Python APIs.
The 2D sketch is moderately complicated and I want to track the different elements(lines, splines, vertices) in it. I want to give these splines and edges specific names. This can then help me in identifying for which lines/splines the vertices have been exported.
Is this kind of naming possible in Sketcher ? I have looked into this but could not find any solution.
Thank you.
System/FreeCAD details:
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +148 (Git)
Build type: Release
Branch: Branch_0.19.4
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
I am using FreeCAD's Sketcher to create a 2D sketch. I want to extract the coordinates from this sketch and export them via a CSV file which, I will use for another application. The coordinates export part I have already figured out by playing around with Python APIs.
The 2D sketch is moderately complicated and I want to track the different elements(lines, splines, vertices) in it. I want to give these splines and edges specific names. This can then help me in identifying for which lines/splines the vertices have been exported.
Is this kind of naming possible in Sketcher ? I have looked into this but could not find any solution.
Thank you.
System/FreeCAD details:
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +148 (Git)
Build type: Release
Branch: Branch_0.19.4
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Re: Labelling/naming sketcher elements
It's possible for dimensions: When editing a dimension there are two input fields. The upper is for the dimension, the lower is for a name.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Labelling/naming sketcher elements
Geometry elements have extended naming facility (just needs to be checked), is that not enough?
Re: Labelling/naming sketcher elements
Thank you Chris, I will look into this.
Syres, I am not able to change the extended names that show in the GUI. I can only extract them. I guess they cannot be changed.
Syres, I am not able to change the extended names that show in the GUI. I can only extract them. I guess they cannot be changed.
Re: Labelling/naming sketcher elements
Do you mean the "extended information" shown in the elements list?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Labelling/naming sketcher elements
Looking at that information, I don't think that it is stored somewhere. It just shows derived information: element number, construction/extended, source of extended, and in most recent versions on which layer the element is.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Labelling/naming sketcher elements
I think I will go element by element by clicking on it since there seems to be no way to label them.
I thought that the field "Extended naming" can be accessed and changed. Unfortunately, it can only be accessed.
I thought that the field "Extended naming" can be accessed and changed. Unfortunately, it can only be accessed.
Re: Labelling/naming sketcher elements
There should be a way to add non element text fields to a sketch - and to put custom labels/references on elements including construction elements.
About the only thing one can do is to customize the name of the sketch.
There is a real need to create text for sketches - similar to the dimensions of lines - one should be able to label lines - and have a non element labels for sketches.
About the only thing one can do is to customize the name of the sketch.
There is a real need to create text for sketches - similar to the dimensions of lines - one should be able to label lines - and have a non element labels for sketches.
I would rather have questions that cannot be answered,
than answers that cannot be questioned’
Richard Feynman.
than answers that cannot be questioned’
Richard Feynman.
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Labelling/naming sketcher elements
what's the use case for that?