TechDraw parentheses for reference dimensions

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
ytrottier
Posts: 8
Joined: Sun Mar 26, 2023 5:35 pm

TechDraw parentheses for reference dimensions

Post by ytrottier »

How do I put parentheses around a dimension? I want to show some dimensions as reference only.

Code: Select all

OS: macOS Mojave (10.14)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git)
Build type: Release
Branch: (HEAD detached at 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * Assembly4 0.12.6
User avatar
Roy_043
Veteran
Posts: 8537
Joined: Thu Dec 27, 2018 12:28 pm

Re: TechDraw parentheses for reference dimensions

Post by Roy_043 »

Add them in the Format Spec field.
ytrottier
Posts: 8
Joined: Sun Mar 26, 2023 5:35 pm

Re: TechDraw parentheses for reference dimensions

Post by ytrottier »

I tried putting (%.2w) in the Format Specifier field, but the parentheses don't show up.
user1234
Veteran
Posts: 3472
Joined: Mon Jul 11, 2016 5:08 pm

Re: TechDraw parentheses for reference dimensions

Post by user1234 »

ytrottier wrote: Sat Apr 01, 2023 8:50 pm I tried putting (%.2w) in the Format Specifier field, but the parentheses don't show up.
This should work exactly this way, have you a file?


Greetings
user1234
ytrottier
Posts: 8
Joined: Sun Mar 26, 2023 5:35 pm

Re: TechDraw parentheses for reference dimensions

Post by ytrottier »

Here it is. Any comments welcome. I know drafting, but new to FreeCAD and struggling.
Attachments
design.FCStd
(238.01 KiB) Downloaded 22 times
user1234
Veteran
Posts: 3472
Joined: Mon Jul 11, 2016 5:08 pm

Re: TechDraw parentheses for reference dimensions

Post by user1234 »

ytrottier wrote: Sat Apr 01, 2023 9:41 pm Here it is.
Works flawless. Could it be, that you looking on the wrong dimension? There was already a parentheses on Page003 --> ProjGroup005 --> Front005 --> Dimension101.

Greetings
user1234
ytrottier
Posts: 8
Joined: Sun Mar 26, 2023 5:35 pm

Re: TechDraw parentheses for reference dimensions

Post by ytrottier »

Is there something I have to refresh or is it a bug?
Screen Shot 2023-04-01 at 5.58.32 PM.png
Screen Shot 2023-04-01 at 5.58.32 PM.png (995.9 KiB) Viewed 756 times
wakyct
Posts: 50
Joined: Fri Mar 24, 2023 2:06 am

Re: TechDraw parentheses for reference dimensions

Post by wakyct »

I see the same issue as @ytrottier — the error is "15:00:20 Warning - no numeric format in formatSpec (%.2 - Dimension". Which may be an error only as it analyzes the field character by character? But in any case, clicking OK in the property editor and there are no parens.
Attachments
no_parens_techdraw_example.FCStd
(18.21 KiB) Downloaded 21 times
What does that word mean in FreeCAD? Look in the Glossary.
user1234
Veteran
Posts: 3472
Joined: Mon Jul 11, 2016 5:08 pm

Re: TechDraw parentheses for reference dimensions

Post by user1234 »

Can you test it on the 0.21 weekly builds? As i see, you use imperial units. Maybe it is a bug, which is already solved in the 0.21master version.

Greetings
user1234
chrisb
Veteran
Posts: 54150
Joined: Tue Mar 17, 2015 9:14 am

Re: TechDraw parentheses for reference dimensions

Post by chrisb »

Moved to TechDraw forum.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply