Wall from sketch

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
steve123
Posts: 149
Joined: Fri Sep 04, 2015 8:58 pm

Wall from sketch

Post by steve123 »

I am having some difficulty generating a wall from the sketch in the attached file. I am not sure what I am doing wrong but I see the following error:

Code: Select all

13:30:24  Traceback (most recent call last):
  File "/Applications/FreeCAD 0.20 build 28909.app/Contents/Resources/Mod/Arch/ArchWall.py", line 791, in execute
    extdata = self.getExtrusionData(obj)
  File "/Applications/FreeCAD 0.20 build 28909.app/Contents/Resources/Mod/Arch/ArchWall.py", line 1476, in getExtrusionData
    sh = DraftGeomUtils.bind(w1,w2)
  File "/Applications/FreeCAD 0.20 build 28909.app/Contents/Resources/Mod/Draft/draftgeoutils/faces.py", line 127, in bind
    return Part.Face([w2, w1])
<class 'Part.OCCError'>: Geom_TrimmedCurve::U1 == U2
13:30:24  Recompute failed! Please check report view.

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.28909 (Git)
Build type: Release
Branch: master
Hash: 6beef68ae1
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods: 
  * ThreadProfile 1.81.0
  * Reporting
  * WebTools
  * BIM 2021.12.0
  * kicadStepUpMod 10.10.4
  * fasteners 0.3.41
Rivera Glenora Park Condo.FCStd
(77.17 KiB) Downloaded 29 times
steve123
Posts: 149
Joined: Fri Sep 04, 2015 8:58 pm

Re: Wall from sketch

Post by steve123 »

I created a new sketch from scratch and that seems to work which suggests there is something wrong with the "outer walls" sketch. The sketch appears to pass the validation checks.
User avatar
Roy_043
Veteran
Posts: 8537
Joined: Thu Dec 27, 2018 12:28 pm

Re: Wall from sketch

Post by Roy_043 »

The Placement of the sketch is the problem, notably the angle (0.63°). The base of a wall must be in a plane parallel to the global XY plane.
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: Wall from sketch

Post by paullee »

It is interesting, I remember somehow a rotated sketch should work - it seems to work to some extent :roll:
  1. At 15 deg, it works, seems problem at other angles ? :o
  2. Turn all but 1 edge to construction mode - try keep one in Normal mode which result in a sloping edge
  3. The Wall extrude 'vertically' (z=1) regardless the base edge is sloping
  4. Turn 2 edges to Normal, the Normal of the Sketch - i.e. not z=1 - is used for extrusion direction
  5. Turn some more edges to Normal, OCC may fail
  6. Use SketchArch add-on trying to change some of last edges' individual Align e.g. as screencaptures, it may works again :D
Rivera Glenora Park Condo_r.FCStd
(80.32 KiB) Downloaded 26 times
Rivera Glenora Park Condo_r2.FCStd
(82.19 KiB) Downloaded 24 times
Screenshot from 2022-05-30 07-56-42.png
Screenshot from 2022-05-30 07-56-42.png (234.75 KiB) Viewed 1090 times
Screenshot from 2022-05-30 07-56-50.png
Screenshot from 2022-05-30 07-56-50.png (237.5 KiB) Viewed 1090 times
Screenshot from 2022-05-30 07-57-06.png
Screenshot from 2022-05-30 07-57-06.png (262.61 KiB) Viewed 1090 times
Screenshot from 2022-05-30 07-58-45.png
Screenshot from 2022-05-30 07-58-45.png (250.94 KiB) Viewed 1090 times
Screenshot from 2022-05-30 07-58-51.png
Screenshot from 2022-05-30 07-58-51.png (232.51 KiB) Viewed 1090 times
Screenshot from 2022-05-30 07-59-08.png
Screenshot from 2022-05-30 07-59-08.png (238.87 KiB) Viewed 1090 times
Screenshot from 2022-05-30 07-59-11.png
Screenshot from 2022-05-30 07-59-11.png (230.18 KiB) Viewed 1090 times
Screenshot from 2022-05-30 07-59-31.png
Screenshot from 2022-05-30 07-59-31.png (218.61 KiB) Viewed 1090 times
Screenshot from 2022-05-30 07-59-42.png
Screenshot from 2022-05-30 07-59-42.png (228.75 KiB) Viewed 1090 times
Screenshot from 2022-05-30 07-59-59.png
Screenshot from 2022-05-30 07-59-59.png (227.96 KiB) Viewed 1090 times
Screenshot from 2022-05-30 08-00-05.png
Screenshot from 2022-05-30 08-00-05.png (214.1 KiB) Viewed 1090 times
Screenshot from 2022-05-30 08-00-23.png
Screenshot from 2022-05-30 08-00-23.png (229.88 KiB) Viewed 1090 times
Screenshot from 2022-05-30 08-00-28.png
Screenshot from 2022-05-30 08-00-28.png (217.86 KiB) Viewed 1090 times
Screenshot from 2022-05-30 08-21-33.png
Screenshot from 2022-05-30 08-21-33.png (207.1 KiB) Viewed 1090 times
Screenshot from 2022-05-30 08-21-33.png
Screenshot from 2022-05-30 08-21-33.png (207.1 KiB) Viewed 1090 times
Screenshot from 2022-05-30 08-21-59.png
Screenshot from 2022-05-30 08-21-59.png (224.96 KiB) Viewed 1090 times
Screenshot from 2022-05-30 08-22-48.png
Screenshot from 2022-05-30 08-22-48.png (220.67 KiB) Viewed 1090 times
steve123
Posts: 149
Joined: Fri Sep 04, 2015 8:58 pm

Re: Wall from sketch

Post by steve123 »

Roy_043 wrote: Sun May 29, 2022 8:31 pm The Placement of the sketch is the problem, notably the angle (0.63°). The base of a wall must be in a plane parallel to the global XY plane.
Thanks for the feedback ... I thought I checked the angle but I must have overlooked it. Not sure how that happened ... I noticed today the BIM sketcher uses the draft working plane to set the orientation for the sketch so I must have inadvertently skewed the view when I set the working plane.
steve123
Posts: 149
Joined: Fri Sep 04, 2015 8:58 pm

Re: Wall from sketch

Post by steve123 »

paullee wrote: Mon May 30, 2022 12:27 am It is interesting, I remember somehow a rotated sketch should work - it seems to work to some extent :roll:
  1. At 15 deg, it works, seems problem at other angles ? :o
  2. Turn all but 1 edge to construction mode - try keep one in Normal mode which result in a sloping edge
  3. The Wall extrude 'vertically' (z=1) regardless the base edge is sloping
  4. Turn 2 edges to Normal, the Normal of the Sketch - i.e. not z=1 - is used for extrusion direction
  5. Turn some more edges to Normal, OCC may fail
  6. Use SketchArch add-on trying to change some of last edges' individual Align e.g. as screencaptures, it may works again :D
Indeed. This makes me think it would be helpful if the wall tool should generated a warning message when the plane is not parallel to the global XY plane. Thank you for the feedback.
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: Wall from sketch

Post by paullee »

steve123 wrote: Mon May 30, 2022 6:28 pm Indeed. This makes me think it would be helpful if the wall tool should generated a warning message when the plane is not parallel to the global XY plane. Thank you for the feedback.
Care to create an bug report / feature request ? :)

In addition to a message, better make extrusion works at any angle.

Thanks!
Post Reply