2022-10-05 11:12 AM - edited 2022-10-05 02:29 PM
Hi,
I have an idea, out of the box,
What if some objects from the library behave like a window, they can be anchored to a wall, when the wall moves, they follow on,
here i changed the type of a bed inside the GDL editor t oGS-Window, so it appears in the window menu,
Now it can be placed on a wall like a window, but it's turned and it has a Wallhole,
the object keeps all it's parameters it's fully parametric like the original bed
Does someone know how to fix this ?
it can be used for toilets, washbassin, electrical equipments, all kind of objects that can be acnchored on a wall
2022-10-05 12:40 PM
I couldn't get a good rest on such a bed. 🙂
I don't think this is necessary with independent furniture pieces, but this could be an option with objects, who have a physical connection to a wall, like some hvac and sanitary equipment.
Until then you can just group such two elements together.
| Archicad 4.55 - 26
| HP Z840 | 2× E5-2643 v4 | 64 GB RAM | Quadro M5000 | Windows 10 Pro x64
| HP Z4 G4 | W-2245 | 64 GB RAM | RTX A4000 | Windows 11
2022-10-05 01:47 PM
Interesting that such an association can be so easily achieved. Perhaps one day we might see an "Associate with Wall" option for objects that might benefit...
2022-10-05 02:37 PM
I think this is a great idea. So many occasions we have to furnish rooms in medical facilities at an early stage before wall build ups are known and then change the wall build up which inevitably affects its position and then have to reposition all of the furniture and fittings objects. If these could be associated to a wall it would make things so much easier. It may be worth posting this in to the Wishes forum so that Graphisoft will be aware of it.
2022-10-05 02:52 PM
Like the "outside-the-box-thinking" approach, but am not really convinced 😉
Anyway: Every door is scripted lying down. Meaning what you think of the Z-axis is actually Y.
You should rotate everything back by using a "rotx 90".
I have found this code in one of the GS objects:
wallniche 3, 1, 2, ! Fake wall cutting body far away from the wall body
0,0,1, 0.01, ! to disable cutting wallhole by the Archicad.
0, WALL_THICKNESS + 1.01,31,
-0.01,WALL_THICKNESS + 1.00,31,
0.01,WALL_THICKNESS + 1.00,31
2022-10-17 05:27 AM - edited 2022-10-17 05:29 AM
This has actually been requested (many times) before in the past, for other objects that would normally be "hosted" by a wall or a slab (like ceiling lamps or embedded wall lamps, Vents, ceiling fans,)....for Graphisoft to add a command to allow the object to be hosted to the wall like a window or a door - with or without the "wallhole" (or slabhole) for objects that need to have to cut into the wall or slab hole (like a recessed ceiling lamp).
Obviously it's been ignored, but imagine my surprise in realizing that it's basically just a GDL line of code (or a couple) that they would need to add either to the library objects or the wall/slab/column/beam elements themselves to make this a reality but have chosen not to, and instead leave it to the user to have to learn GDL to make it happen.
(shaking my head).
it's great you discovered this way of achieving (which is not at all "out-of-the-box" thinking since these are things that we naturally treat as hosted by walls in real life. A recessed ceiling lamp can't just exist in empty space on its own. It literally has to associate with a slab or a ceiling).
But it shouldn't be up to the user to have to figure out what Graphisoft themselves can sort out in less than a couple of lines of codes to their library objects.
It's ridiculous.
It would be like your car seller giving you the manufacturers manual to let you figure out how to re-wire the internal A/C unit just to get to change the temperature instead of just having one that works without much fussing.
And to add insult to injury this is how it's ALWAYS worked with Revit and even Vectorworks (the BIM component).
I'm telling you, it's like constantly pulling teeth with this company these days.
2023-05-07 04:56 PM
I got this code to work perfectly in the 3D script. In my case, I tested it with a sanitary artifact converted into a window, but I had to set the rotation factor of the master script to ROTX 270. And to complement the 2D script, I added the same code but changed "wallniche" to "WALLHOLE2". Regards!
Script 2D:
WALLHOLE2 3, 1, 2, ! Fake wall cutting body far away from the wall body
0,0,1, 0.01, ! to disable cutting wallhole by the Archicad.
0, WALL_THICKNESS + 1.01,31,
-0.01,WALL_THICKNESS + 1.00,31,
0.01,WALL_THICKNESS + 1.00,31