Arch Grid - Build Arch Window?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Arch Grid - Build Arch Window?
Hi, I am re-visiting the Arch Grid wiki https://www.freecadweb.org/wiki/Arch_Grid
Anybody has found the way to build an Arch Window using Arch Grid as a base? Found no other information on this!
Thanks for any hints!
Anybody has found the way to build an Arch Window using Arch Grid as a base? Found no other information on this!
Thanks for any hints!
Re: Arch Grid - Build Arch Window?
You need series of closed loops to make window frames. The one I did in the image above was by using Part Offset2D on top of an Arch Grid, then make the window from it.
Re: Arch Grid - Build Arch Window?
Ok, understand how it works now!
I have further attempted to understand the ArchWindow.makeWindow code
I have further attempted to understand the ArchWindow.makeWindow code
Code: Select all
def makeWindow(baseobj=None,width=None,height=None,parts=None,name="Window"):
- So it seem by passing an object with Wires + a series of strings defining the "Window Parts" to makeWindow function, it would produce an window object, right? (Yet to test )
- It seem (tested this workflow) unlike ArchWall / Structure, the Additions / Subtractions in ArchWindows does nothing right?
I try to create a Part object to simulate some kind of fins and 'Add' to it, nothing.
Re: Arch Grid - Build Arch Window?
Hmm yeah, that's possible indeed... I must check. It's possible that I didn't enable Additions/Subtractions, because I didn't know how to cope with the different solids in a window...
Re: Arch Grid - Build Arch Window?
- Maybe it is not 'legitimate' but I add Add+ a sketch to a Window Object just to 'pair' them up - SO, it is fine if Add+ does not do anything now (and would accept in Addition but ignore any action over those objects w/o a shape etc. in future) It is a very convenient workaround for Compound
- In addition to above, maybe if the Add+ objects are solid, just makeCompound to it as if it is another solid panel (or need to define it in WindowParts?)
I try to extrude a profile to act like a projecting fin on top of a window frame - a profile other than rectangular in shape that cannot be made in WindowObject currently. So it provide flexibility for user to define more complex profile rather than writing more codes for non-typical profiles?
Re: Arch Grid - Build Arch Window?
Yeah of course, one should allow to build a window from several "blocks", not just by the sketch + WindowParts.
But there is still something to define... In case of a subtraction, it's easy: Subtract the subtracted object from each of the solids of the window. But imagine you are adding a volume, that spans on both the glass and the frame of a window. What do we do in that case?
But there is still something to define... In case of a subtraction, it's easy: Subtract the subtracted object from each of the solids of the window. But imagine you are adding a volume, that spans on both the glass and the frame of a window. What do we do in that case?
Re: Arch Grid - Build Arch Window?
I just do some random experiment, think for a while but without any big picture in mind.yorik wrote: ↑Tue Mar 27, 2018 12:27 am Yeah of course, one should allow to build a window from several "blocks", not just by the sketch + WindowParts.
But there is still something to define... In case of a subtraction, it's easy: Subtract the subtracted object from each of the solids of the window. But imagine you are adding a volume, that spans on both the glass and the frame of a window. What do we do in that case?
I experiment to use Arch Frame to do a profile that Arch Window can't produce currently (screenshot), and i think if Window Add+ can just accept it that's already fine. So at least they become same object, move together...
Maybe just let each Add+Object to identify what is it: Frame, Glass panel, Solid Panel, Louvre (or add some other options), then just compound it?
BTW, just learning python....would it be better if WindowParts = [ (name, type (Frame, Glass Panel or Solid Panel), wires+hinge+opening mode, thickness, offest), (...another group), (...another group)...]
Re: Arch Grid - Build Arch Window?
Note that a simple way that works already, is to put all your pieces into a Part compound, and use that compound as the Base of a window (in that case, WindowParts will have no effect).
Re: Arch Grid - Build Arch Window?
Good morning/evening!
Done a test and read again the code (I do not really understand every line), it seem there could be only 1 object in Base.
So if used an 'custom' made object in Base then lost all the 'automatic' function ArchWindow provide right?
Concept:
- - - Arch Window (by Preset or Base Sketch)
|
|
| - Add + If found a Shape (otherwise skip)
| e.g. a Custom Profile projecting Head or Sill (by Part, Arch Frame etc.)
Just some thought on ArchWindow in providing more flexibility in creating complex shape.
Done a test and read again the code (I do not really understand every line), it seem there could be only 1 object in Base.
So if used an 'custom' made object in Base then lost all the 'automatic' function ArchWindow provide right?
Concept:
- - - Arch Window (by Preset or Base Sketch)
|
|
| - Add + If found a Shape (otherwise skip)
| e.g. a Custom Profile projecting Head or Sill (by Part, Arch Frame etc.)
Just some thought on ArchWindow in providing more flexibility in creating complex shape.
Re: Arch Grid - Build Arch Window?
Yes, the idea for all Arch objects is this: If you give it a shape, as Base, that can be used to "build" the final object (a line, a wire, a face... depending on the type), then the "internal engine" of the object is used to build the shape. If you give it a solid shape, it considers that you already built your own shape with other tools, and nothing more is done.
I think this is pretty powerful because it allows you to use just *any* possible shape for any of the arch types. So you can perfectly well build a totally valid BIM model fully with PartDesign, or even with other software.
I think this is pretty powerful because it allows you to use just *any* possible shape for any of the arch types. So you can perfectly well build a totally valid BIM model fully with PartDesign, or even with other software.