Detail of a Section

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Shalmeneser
Veteran
Posts: 9591
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Detail of a Section

Post by Shalmeneser »

Is it possible to do a TechDraw_DetailView of a TechDraw_SectionView ?

Code: Select all

OS: Windows 10 Version 1809
Word size of FreeCAD: 64-bit
Version: 0.21.30922 (Git)
Build type: Release
Branch: master
Hash: 8ec1279ea8ee32a36fae683b42b5cfc5821734b5
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: French/France (fr_FR)
Installed mods: 
  * fasteners 0.4.16
  * fcgear 1.0.0
  * Manipulator 1.4.9
  * sheetmetal 0.2.58
Attachments
Capture d’écran 2023-02-27 150654.jpg
Capture d’écran 2023-02-27 150654.jpg (92.68 KiB) Viewed 1241 times
SectionDetail.FCStd
(26.82 KiB) Downloaded 35 times
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Detail of a Section

Post by wandererfan »

Shalmeneser wrote: Mon Feb 27, 2023 2:21 pm Is it possible to do a TechDraw_DetailView of a TechDraw_SectionView ?
Should be. A missing recompute somewhere?
SectionDetail.png
SectionDetail.png (53.81 KiB) Viewed 1176 times
User avatar
FBXL5
Posts: 994
Joined: Sat Aug 03, 2019 8:45 pm

Re: Detail of a Section

Post by FBXL5 »

My recreated document has problems with the detail frame on top:
Snip macro screenshot-7a3bd0.png
Snip macro screenshot-7a3bd0.png (16.29 KiB) Viewed 1134 times
It occurs with simple and complex sections. Recompute doesn't change the result

This is the output from the report window:

Code: Select all

19:45:35  View is finding hidden lines
19:45:35  SectionView is making section cut
19:45:35  Detail is making detail shape
19:45:35  ComplexSection is making section cut
19:45:35  Detail001 is making detail shape
19:45:35  View has finished finding hidden lines
19:45:35  View is extracting faces
19:45:35  SectionView has finished making section cut
19:45:35  SectionView is finding hidden lines
19:45:35  View has finished extracting faces
19:45:35  SectionView has finished finding hidden lines
19:45:35  SectionView is extracting faces
19:45:35  SectionView has finished extracting faces
19:45:35  Detail has finished making detail shape
19:45:35  Detail is finding hidden lines
19:45:35  ComplexSection has finished making section cut
19:45:35  Detail001 has finished making detail shape
19:45:35  ComplexSection is finding hidden lines
19:45:35  Detail001 is finding hidden lines
19:45:36  ComplexSection has finished finding hidden lines
19:45:36  ComplexSection is extracting faces
19:45:36  ComplexSection has finished extracting faces
19:45:37  asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
19:45:37  Geom::baseFactory - unknown error occurred while making spline
19:45:37  asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
19:45:37  Geom::baseFactory - unknown error occurred while making spline
19:45:37  Detail001 has finished finding hidden lines
19:45:37  Detail001 is extracting faces
19:45:37  Detail001 has finished extracting faces
These Lines are displayed in red:

Code: Select all

19:45:37  asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
19:45:37  Geom::baseFactory - unknown error occurred while making spline
19:45:37  asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
19:45:37  Geom::baseFactory - unknown error occurred while making spline
I hope this helps somehow.

Code: Select all

OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.21.0.31917 (Git)
Build type: Release
Branch: master
Hash: 4639283b459f9ff9093e289908cc003db8745b82
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * Reinforcement
  * fcgear 1.0.0
  * Render 2023.1.0
  * fcgear.backup1662890180.767765
  * fasteners 0.4.54
  * CurvedShapes 1.0.4
  * sheetmetal 0.2.61
  * Help 1.0.3
  * Curves 0.6.6
  * Assembly3 0.11.4
User avatar
Shalmeneser
Veteran
Posts: 9591
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Detail of a Section

Post by Shalmeneser »

When opening the file :

Code: Select all

22:04:38  INFO - QGSPage::updateTemplate - Page: Page has NO template!!
22:04:39  Could not find pattern: Diamant
22:04:39  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:04:39  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:04:39  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:04:39  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:04:39  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:04:39  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:05:03  Geom::asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
22:05:03  Geom::asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
22:05:03  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:05:03  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:05:03  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:05:03  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
22:05:04  Geom::asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
22:05:04  Geom::asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
When selecting TechDraw wb :

Code: Select all

22:06:46  MDIVP::onSelectionChanged - unhandled: 4
22:06:46  MDIVP::onSelectionChanged - unhandled: 5
22:06:49  MDIVP::onSelectionChanged - unhandled: 4
22:06:49  MDIVP::onSelectionChanged - unhandled: 5
Redraw page :

Code: Select all

22:08:09  TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Detail of a Section

Post by wandererfan »

Shalmeneser wrote: Mon Feb 27, 2023 9:09 pm 22:04:39 TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
This just says that there are no edges for a one of the hidden/visible/seam/smooth/iso/etc groups of lines. Not a problem, and I think these have been silenced in the latest version.
22:05:04 Geom::asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
are there diameter or radius dimensions in the drawing? This message means that one of the "circles" is actually a BSpline, but that the code couldn't convert it to a circle. Also not a problem except for that dimension.
When selecting TechDraw wb :
22:06:46 MDIVP::onSelectionChanged - unhandled: 4
Something was selected that isn't a vertex/edge/face/dimension/balloon/etc. The selection code only deals with a fixed list of object types.
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Detail of a Section

Post by wandererfan »

FBXL5 wrote: Mon Feb 27, 2023 7:11 pm My recreated document has problems with the detail frame on top:
Recreated? As in not the same file as the one @Shalmeneser posted?
User avatar
FBXL5
Posts: 994
Joined: Sat Aug 03, 2019 8:45 pm

Re: Detail of a Section

Post by FBXL5 »

wandererfan wrote: Tue Feb 28, 2023 1:50 pm
FBXL5 wrote: Mon Feb 27, 2023 7:11 pm My recreated document has problems with the detail frame on top:
Recreated? As in not the same file as the one @Shalmeneser posted?
Yes. I wanted to confirm the original issue in a different document to tell if it was depending on the file or the tool, and then have discovered another issue.
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Detail of a Section

Post by wandererfan »

FBXL5 wrote: Wed Mar 01, 2023 10:34 am
Can you share the file, please?
User avatar
FBXL5
Posts: 994
Joined: Sat Aug 03, 2019 8:45 pm

Re: Detail of a Section

Post by FBXL5 »

wandererfan wrote: Wed Mar 01, 2023 2:37 pm Can you share the file, please?
Yes. It was only created quick and dirty and I thought I dumped it already, but it was sleeping on the notebook:
Hatch in Detail View.FCStd
(243.85 KiB) Downloaded 34 times
I had added a complex section, too and so it has become a bit overloaded:
Snip macro screenshot-f5f27c.png
Snip macro screenshot-f5f27c.png (34.44 KiB) Viewed 767 times
User avatar
Shalmeneser
Veteran
Posts: 9591
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Detail of a Section

Post by Shalmeneser »

Opening the file just above, the Detail view is correct but the circle selecting it is far away from its real target.
And the same is working for my first file.

Where does this vertical offset come from ?
Attachments
Mine
Mine
Capture d’écran 2023-03-01 213256.jpg (56.76 KiB) Viewed 732 times
FBXL5 file
FBXL5 file
Capture d’écran 2023-03-01 213358.jpg (37.75 KiB) Viewed 732 times
Post Reply