Is there a way to make a Face the SubShape of another Face?

Need help, or want to share a macro? Post here!
User avatar
nmt
Posts: 12
Joined: Sun Feb 19, 2017 2:45 pm

Is there a way to make a Face the SubShape of another Face?

Postby nmt » Mon Mar 20, 2017 11:18 pm

Hello,
Is there a way (in python) to add a sub-face to a face? I want to represent conceptually the idea of a window or a wall as a sub-face to a wall face. However, I need the entity to stay as a "Part.Face" rather than a compound as I need to build a shell/solid out of it. I tried adding the outer wires and that kind of worked, but I was getting a solid face with a hole in it. Is there a way to make a "Face" the Subshape of another "Face". Any help is greatly appreciated.
DeepSOIC
Posts: 4466
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Is there a way to make a Face the SubShape of another Face?

Postby DeepSOIC » Mon Mar 20, 2017 11:32 pm

No, a face is a face. If you need two faces, you must use either a shell, or a compound.
DeepSOIC
Posts: 4466
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Is there a way to make a Face the SubShape of another Face?

Postby DeepSOIC » Mon Mar 20, 2017 11:36 pm

What you probably want is a shell of two faces, one is a frame (with hole), and the other patches the hole. Such a shell is perfectly valid for constructing a solid (assuming you add mode faces to close the shell, of course).