Hello all, I am looking for some magic - or a dream solution.
I currently have a routine for inserting doors and windows into walls, but would also like to cut their openings so that if the door or windows are deleted then the void remains.
Having flipped through the forum I can see that there are many work solutions for inserting voids in walls using a ‘void’ family to the dimensions and insertion point of the door/wall and also a solution that involves incorporating the ‘void’ into the door/wall family - which work admirably.
I am happy to be corrected but I feel like there is another way using the Element.CutGeometry node immediately after the door/window has been inserted. Clearly I am missing a step.
current flow:
Walls Created, a test is done to ensure that where the door/wall families are to be placed sits on a wall and also identifies that wall, the window/door family is placed. Thus I have the element to be cut and the cutting element - but no success.
Happy for you all to tell me if I’m a fool in pursuing this and that I should just drop a void family in
What you’re missing is the creation of a separate void element > your “magic” zone. But Revit may throw an error if you try to cut something that is already empty space.
Why not just switch your door / window family to a new family type containing nothing but an opening or void (I would use openings) and use a type parameter to filter it out of schedules?
I would like to keep both the door/window and the opening, then when the door or window is deleted by a third party the opening still remains. In a real world situation when a door or window is removed the hole it left isn’t magically filled in.
I feel like you are trying to solve a problem that’s essentially just the wrong use of Revit.
Why would anyone delete the door but not the hole? If its an existing building with existing doors that get removed, the doors should not be deleted but set to Phase:Demolished.
Half a year from now people have no idea where doors have been deleted and you will end up with a model full of window/door holes and no telling which one was actually there and which ones have been placed by accidents. Managing phases in a project is a far better solution in my opinion.
Whilst i agree with what has previously been said here.
Get location of door.
Get height / width
Get thickness of host wall
Insert generic void family in location
Set height width and depth based on previous
Cut wall with void
When i door is deleted, the hole we remain.
But yeah, i dont really understand the usecase here. Sounds like phasing might be a better route to achieve what you want?