C
by Carozo on 6 Jul 2024, edited 6 Jul 2024
#
Draft Shape2dview is giving an error when it is in "cut line" mode and the object is not cut by the section.
When put in "solid" the error disappears
FreeCAD 0.22.0 development version
Revision number 38001
c = sh.section(cutp)
^^^^^^^^^^^^^^^^
<class 'TypeError'>: expect shape or sequence of shapes
Shape2DView: expect shape or sequence of shapes


B
by bitacovir on 6 Jul 2024
#
I think it works as expected.
From FreeCAD Wiki https://wiki.freecad.org/Draft_Shape2DView
Cutlines: only works if the selected object is an Arch SectionPlane, projects only the edges cut by the section plane.
Because there is not an edge being cut by the section plane it shows an error.
C
by Carozo on 6 Jul 2024, edited 6 Jul 2024
#
Hi @bitacovir ,
I think it is a bug. Look at the following example:
4 walls
1 slab
1 section containing the 4 walls and the slab)
If Shape2dview is "solid" it is ok
If I put it as "cut lines" it generates an error.
It shouldn't generate that error, it should just show the 4 cut walls.


If the slab is not included in the section, everything works ok
The problem is when there is an element that is not cut by the section.

Maybe @yorik knows what the problem is here, previously this worked perfectly
C
by Carozo on 6 Jul 2024
#
+1 votes
With the last build update it was solved: FreeCAD_weekly-builds-38043-conda-Windows-x86_64-py311