TechDraw Section line not centered

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
MAMINE
Posts: 6
Joined: Fri Jan 24, 2020 9:22 pm

TechDraw Section line not centered

Post by MAMINE »

Hello,
As shown on attached screenshot, the section line (A-A) is not centered to the base view (FreeCAD file is also attached)
The section line cannot either move by mouse nor by any other parameter of the base view or the section view
any solution ?

Code: Select all

OS: Ubuntu 20.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 9e3b630bbfb6807e93eeffb655e6c20f218644fc
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.1
Attachments
P01.FCStd
(139.7 KiB) Downloaded 47 times
screenshot_20210608-120825.png
screenshot_20210608-120825.png (28.33 KiB) Viewed 2704 times
Last edited by MAMINE on Tue Jun 08, 2021 1:58 pm, edited 1 time in total.
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: TechDraw Section line not centered

Post by chrisb »

Upload the file for help on a solution.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
MAMINE
Posts: 6
Joined: Fri Jan 24, 2020 9:22 pm

Re: TechDraw Section line not centered

Post by MAMINE »

I attached the FreeCAD file (see first post).
domad
Veteran
Posts: 2055
Joined: Mon Jun 22, 2020 12:16 pm

Re: TechDraw Section line not centered

Post by domad »

MAMINE wrote: Tue Jun 08, 2021 2:48 pm .........
Hello!
Just double click on "Section A-A" in the structure panel.
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: TechDraw Section line not centered

Post by chrisb »

I can confirm the issue - even if I remove the last fillet which shows errors here, and even if I remove the unnecessary Part container.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
MAMINE
Posts: 6
Joined: Fri Jan 24, 2020 9:22 pm

Re: TechDraw Section line not centered

Post by MAMINE »

domad wrote: Tue Jun 08, 2021 5:53 pm Just double click on "Section A-A" in the structure panel.
this did nothing.
-

I think the issue is caused by wrong view center calculation. As you can see on screenshot, when "Horizontal Center Line" is activated, the supposed center line is offset; just like the section line.

--
Update,
The base view (even when deleting the section section view) has an offset center line (it is has circular shape generated by PartDesign Revolve feature), this seems related to the section line issue (see screenshot).
Attachments
screenshot_20210608-194504.png
screenshot_20210608-194504.png (68.36 KiB) Viewed 2578 times
screenshot_20210608-193546.png
screenshot_20210608-193546.png (96.87 KiB) Viewed 2586 times
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: TechDraw Section line not centered

Post by chrisb »

You are right, although I think that the desired center cannot always be calculated. The problem seems to be that changung the y-value does nothing. If you make a horizontal cut, you can see that the section is off center as well, but changing y to 0 does the job. This should work for vertical cuts as well.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
domad
Veteran
Posts: 2055
Joined: Mon Jun 22, 2020 12:16 pm

Re: TechDraw Section line not centered

Post by domad »

MAMINE wrote: Tue Jun 08, 2021 6:40 pm ............
I apologize for not having carefully analyzed the problem (I had not noticed in my first reply the "Y" shift in TD of the reference to the section).
It is always advisable to reduce the modeling operations, therefore, if a fillet and / or chamfer can be inserted in the sketches it is always the preferred thing.
Attachments
P01-2.FCStd
(130.1 KiB) Downloaded 45 times
forced_modeling.png
forced_modeling.png (196.28 KiB) Viewed 2498 times
more_appropriate_modeling.png
more_appropriate_modeling.png (242.69 KiB) Viewed 2498 times
TechDraw_correct.png
TechDraw_correct.png (154.39 KiB) Viewed 2498 times
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: TechDraw Section line not centered

Post by Shalmeneser »

Page : ProjGroup : Data : Source : fillet => bad center line
Page : ProjGroup : Data : Source : PolarPattern => correct center line
The problem is coming from the fillet.
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: TechDraw Section line not centered

Post by Shalmeneser »

1) Hole + Cut 1 dimension + PolarPattern ×4 (P01)
2) Hole + Cut 2 dimensions + PolarPattern ×2 (P01-2)

Which one is better ?

------
It's the 1st time i see diameter dimension for a revolution (with a symmetrical point).
Why not Radius=Diameter/2 ?

------
@Domad
How do you do the 6,604 circle in techdraw ?
160° ?
Post Reply