What is valid 2D (sketched) shape for Arch/Structure?

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
matkor76
Posts: 4
Joined: Tue Jan 31, 2023 3:19 pm
Contact:

What is valid 2D (sketched) shape for Arch/Structure?

Post by matkor76 »

Hi !
I tried to create Arch/Structure over two rectangles sketched.
Seems it fails with
Structure has an invalid shape
when rectangles are glued by one edge / share one line in place of common edge, but works when rectangles are separate, overlapping or common part of edge is deleted.

What are rules for valid base shape for Arch/Structure?
Why sharing one edge shape fails, while separate/overlapping works?

I would like to have separate "cubes" touching each other with part of one face, as those will be separate elements in real life.
Here is one of non-working shapes
Screenshot of one non working 2s shapes
Screenshot of one non working 2s shapes
non_working_shape.png (5.82 KiB) Viewed 1418 times
from example file
valid_shape_for_arch.FCStd
contains all base 2d shapes which are mentioned in question
(29.99 KiB) Downloaded 38 times
TIA for any hints.

Code: Select all

OS: Ubuntu 20.04.5 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.1.
Build type: Release
Branch: unknown
Hash: 1397818c9664d158281339a84be59d3e9887f6ad
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.2
Locale: English/United States (en_US)
chrisb
Veteran
Posts: 53928
Joined: Tue Mar 17, 2015 9:14 am

Re: What is valid 2D (sketched) shape for Arch/Structure?

Post by chrisb »

Moved to Arch forum.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: What is valid 2D (sketched) shape for Arch/Structure?

Post by Roy_043 »

The result depends on the Face Maker property. If you select "Cheese" all sketches should work. I do not know why this is not the default.
matkor76
Posts: 4
Joined: Tue Jan 31, 2023 3:19 pm
Contact:

Re: What is valid 2D (sketched) shape for Arch/Structure?

Post by matkor76 »

depends on the Face Maker property.
Thanks, it works, but "Cheese" glues two rectangles to one face (as expected)

Reading docs of Face Maker "Simple"
https://freecad.github.io/SourceDoc/d3/ ... ml#details
should do the trick, and "make plane faces from all closed wires supplied, ignoring overlaps", right?

Unfortunately it fails with same error (structure has an invalid shape) :/
hko
Posts: 96
Joined: Thu Apr 23, 2020 10:44 pm

Re: What is valid 2D (sketched) shape for Arch/Structure?

Post by hko »

matkor76 wrote: Wed Feb 01, 2023 12:20 pm I would like to have separate "cubes" touching each other with part of one face, as those will be separate elements in real life.
If they are separate elements in real life, just next to each other, would it not make sense to have separate sketches / arch structures for them?
matkor76
Posts: 4
Joined: Tue Jan 31, 2023 3:19 pm
Contact:

Re: What is valid 2D (sketched) shape for Arch/Structure?

Post by matkor76 »

would it not make sense to have separate sketches
Dimensions and positions are variable, but strictly related, and I really like logic for that relations which Sketcher can provide. I could use "External geometry" but it would make constrain login less obvious.

For now I can live with one face generated from "Cheese" as Face Maker, but question remains, should "Simple" Face Maker should make it work (so it's bug) or docs of "Simple" FM are misleading?
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: What is valid 2D (sketched) shape for Arch/Structure?

Post by onekk »

matkor76 wrote: Wed Feb 01, 2023 12:20 pm ...
What are in the file the sketch not working?

It is not clear as you have many sketch with T-joint, that are considered non valid sketch.

So it is not surprisingly that the tools will fail, it is surprising that it work for non valid sketches.

T-joints are considered bad errors from always any Sketch guru here, and also unconstrained sketches.

@domad @chrisb What do you think?

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: What is valid 2D (sketched) shape for Arch/Structure?

Post by Roy_043 »

Carlo, this is about sketches in a different context than the Part or PartDesign Workbench. Your 'always' rules do not necessarily apply. Note that unconstrained sketches are pretty common in the Arch Workbench. An Arch_Wall created by picking two points will have a wall trace that is an unconstrained sketch. :mrgreen:
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: What is valid 2D (sketched) shape for Arch/Structure?

Post by yorik »

Here at arch, we are kind of FreeCAD pirates :mrgreen:
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: What is valid 2D (sketched) shape for Arch/Structure?

Post by thomas-neemann »

yorik wrote: Thu Feb 16, 2023 3:08 pm Here at arch, we are kind of FreeCAD pirates :mrgreen:
in my opinion arch is the fastest workbench of freecad and it is faster than any 3d cad system i know
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Post Reply