Creating a face from two rectangles (one inside another)

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
arcol
Posts: 223
Joined: Sun Nov 10, 2013 9:02 am

Creating a face from two rectangles (one inside another)

Post by arcol »

This bugs me a lot.
I'm unable to create a face when one rectangle is inside another.
rectangle_within_rectangle.png
rectangle_within_rectangle.png (23.78 KiB) Viewed 2633 times
It just create a face for the bigger rectangle (Draft's upgrade tool).
rectangle_within_rectangle_upgraded.png
rectangle_within_rectangle_upgraded.png (22.12 KiB) Viewed 2633 times
Is it possible? Boolean operations (Part wb) is not working either.
If I convert the two Dwires into sketch, then I'm still unable to make a face (with Draft upgrade tool).

Freecad file attached, but I don't think it is necessary...
ps.fcstd
(3.76 KiB) Downloaded 42 times
User avatar
clintonsam75
Posts: 291
Joined: Thu Jun 19, 2014 5:54 pm
Location: South Korea
Contact:

Re: Creating a face from two rectangles (one inside another)

Post by clintonsam75 »

Go to the part workbench and click the icon labeled advanced utility to create shapes. Select face from edges. Select one edge by left clicking on it, then hold down the ctrl key and left click on the remaining three edges. then click create.
face from edges.png
face from edges.png (103.63 KiB) Viewed 2631 times
arcol
Posts: 223
Joined: Sun Nov 10, 2013 9:02 am

Re: Creating a face from two rectangles (one inside another)

Post by arcol »

clintonsam75 wrote:Go to the part workbench and click the icon labeled advanced utility to create shapes. Select face from edges. Select one edge by left clicking on it, then hold down the ctrl key and left click on the remaining three edges. then click create.
I want the other way around. So like a "wall".
(you created a face for the smaller rectangle.)

With this tool, I can only create a small rectangle face, and a big rectangle face, not the substraction of the two.

This is how I want:
wall_face.png
wall_face.png (22.46 KiB) Viewed 2624 times
User avatar
rockn
Veteran
Posts: 1791
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Creating a face from two rectangles (one inside another)

Post by rockn »

Hi arcol,
To make what you want, make two Draft rectangle, set the Make Face property to true to both of them.
Select both the bigger and the smaller rectangle in this order and press the Draft Downgrade button.
Formations - Assistance - Développement : https://freecad-france.com
arcol
Posts: 223
Joined: Sun Nov 10, 2013 9:02 am

Re: Creating a face from two rectangles (one inside another)

Post by arcol »

rockn wrote:Hi arcol,
To make what you want, make two Draft rectangle, set the Make Face property to true to both of them.
Select both the bigger and the smaller rectangle in this order and press the Draft Downgrade button.
It is working with Draft Rectangle only. (but working!, thank you).

But if I start from a sketch. Convert the sketch to Draft object, then the sketch rectangle gets converted to DWire.
The above mini-tutorial does not work for DWire.

I'm wondering why there is a Draft rectangle limitation?
If there is a limitation, how could I convert a DWire to a Draft Rectangle if it meets the rectangle criteria (4 corners, 90 degrees at corners)?
User avatar
rockn
Veteran
Posts: 1791
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Creating a face from two rectangles (one inside another)

Post by rockn »

As soon as you get faces (with Draft Upgrade or Property) you can use Draft Downgrade to make a cut from two shapes.
Formations - Assistance - Développement : https://freecad-france.com
arcol
Posts: 223
Joined: Sun Nov 10, 2013 9:02 am

Re: Creating a face from two rectangles (one inside another)

Post by arcol »

Dunno, how I could not figure it out myself.

Applying Upgrade tool to each of them, then selecting the bigger face,
then the smaller face and clicking on the downgrade tool, makes the desired effect.
User avatar
quick61
Veteran
Posts: 3803
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Creating a face from two rectangles (one inside another)

Post by quick61 »

arcol wrote:
rockn wrote:Hi arcol,
To make what you want, make two Draft rectangle, set the Make Face property to true to both of them.
Select both the bigger and the smaller rectangle in this order and press the Draft Downgrade button.
It is working with Draft Rectangle only. (but working!, thank you).

But if I start from a sketch. Convert the sketch to Draft object, then the sketch rectangle gets converted to DWire.
The above mini-tutorial does not work for DWire.

I'm wondering why there is a Draft rectangle limitation?
If there is a limitation, how could I convert a DWire to a Draft Rectangle if it meets the rectangle criteria (4 corners, 90 degrees at corners)?
You are absolutely correct. When you convert a Sketch to Draft and it creates the DWire, they will not make a face. Setting Face to true seems to be broken in this case. Strangely, it works just fine when the Draft > DWire tool it's self is used, but the DWire from a conversion fails. I though all these issues were fixed, but evidently not.

issue #2166

Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
Post Reply