Textsymbols DIN 7184

Discussions about the development of the TechDraw workbench
User avatar
pl7i92LCNC
Posts: 47
Joined: Tue Mar 12, 2019 3:03 pm
Location: RLP DE

Textsymbols DIN 7184

Postby pl7i92LCNC » Sun Mar 17, 2019 12:19 pm

hi is there a way for DRAG and Drop text symbols input like in othere CAD systems
like a Drag Drop shown in this image
formlage.jpg
formlage.jpg (49.78 KiB) Viewed 506 times
the Symbold SVG 240px are on wiki
http://www.wikiwand.com/de/Form-_und_Lage-Toleranz
wandererfan
Posts: 2712
Joined: Tue Nov 06, 2012 5:42 pm

Re: Textsymbols DIN 7184

Postby wandererfan » Sun Mar 17, 2019 1:28 pm

pl7i92LCNC wrote:
Sun Mar 17, 2019 12:19 pm
hi is there a way for DRAG and Drop text symbols input like in othere CAD systems
like a Drag Drop shown in this image
formlage.jpg
the Symbold SVG 240px are on wiki
http://www.wikiwand.com/de/Form-_und_Lage-Toleranz
Not yet. This is on the v0.19 TODO list.

I did not know that (some of?) these symbols were available as unicode characters. I had thought we were going to have to use Svg images (available in the source distribution "../Mod/TechDraw/Gui/Resources/ToleranceSymbols"). The unicode characters would be much easier.
User avatar
pl7i92LCNC
Posts: 47
Joined: Tue Mar 12, 2019 3:03 pm
Location: RLP DE

Re: Textsymbols DIN 7184

Postby pl7i92LCNC » Sun Mar 17, 2019 6:48 pm

wanderfan klingt Deutsch

Die Symbole sind auser ASCII 216 nicht im Standard drin
gegen svg spricht eigentlich nichts
Jee-Bee
Posts: 1870
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Textsymbols DIN 7184

Postby Jee-Bee » Sun Mar 17, 2019 6:52 pm

pl7i92LCNC wrote:
Sun Mar 17, 2019 6:48 pm
wanderfan klingt Deutsch
even if ... it is english spoken here.
reox
Posts: 578
Joined: Sat Aug 13, 2016 10:06 am

Re: Textsymbols DIN 7184

Postby reox » Sun Mar 17, 2019 8:13 pm

The unicode chars work nice! I just tested that by creating this macro: https://github.com/reox/FreeCAD_macros/ ... at.FCMacro
2019-03-17-211527_362x313_scrot.png
2019-03-17-211527_362x313_scrot.png (12.51 KiB) Viewed 438 times
It can be used to set the format string of a dimension (although setting tolerances like this is not the proper way)
wandererfan
Posts: 2712
Joined: Tue Nov 06, 2012 5:42 pm

Re: Textsymbols DIN 7184

Postby wandererfan » Mon Mar 18, 2019 12:35 am

reox wrote:
Sun Mar 17, 2019 8:13 pm
The unicode chars work nice!
Don't they! According to this https://en.wikipedia.org/wiki/Geometric ... ng#Symbols, it looks like there are unicode code points for all the standard symbols.

And osifont seems to have the right glyphs for the code points! Gibberish example:
Attachments
GDTSymbols.png
GDTSymbols.png (8.63 KiB) Viewed 416 times
reox
Posts: 578
Joined: Sat Aug 13, 2016 10:06 am

Re: Textsymbols DIN 7184

Postby reox » Mon Mar 18, 2019 6:55 am

Oh, the modifiers also have unicode chars :)
btw there is also this extensive list: https://en.wikipedia.org/wiki/Miscellaneous_Technical

Added them as well to the macro and created some grouping:
2019-03-18-081821_388x717_scrot.png
2019-03-18-081821_388x717_scrot.png (27.93 KiB) Viewed 386 times
User avatar
pl7i92LCNC
Posts: 47
Joined: Tue Mar 12, 2019 3:03 pm
Location: RLP DE

Re: Textsymbols DIN 7184

Postby pl7i92LCNC » Mon Mar 18, 2019 7:41 am

woudt be NICE to get this inside the TechDraw Workbench as soon
reox
Posts: 578
Joined: Sat Aug 13, 2016 10:06 am

Re: Textsymbols DIN 7184

Postby reox » Mon Mar 18, 2019 7:41 am

pl7i92LCNC wrote:
Mon Mar 18, 2019 7:41 am
woudt be NICE to get this inside the TechDraw Workbench as soon
just add the macro ;)
Jee-Bee
Posts: 1870
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Textsymbols DIN 7184

Postby Jee-Bee » Mon Mar 18, 2019 9:40 am

cl is missing ;)