We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Custom Parametric Door - Issues with flipping

Anonymous
Not applicable
Hi,

Apologies if this issue had already been discussed in another thread, tried to search this specific problem but couldn't really find the solution as yet.

I'm trying to script a custom parametric door from scratch, using macros for the leaf and the architrave, etc. and it's definitely getting there. The only thing I can't get my head around is that when I flip the door in the Selection Settings window the door gets mirrored around the outside edge of the wall instead of the centre line and so the door falls outside the wall, which is pretty frustrating. See images attached.

I've tried to look at the script of standard GS doors but all these objects use macros and I might look a bit thick here but the master scripts calling the macros don't give away the whereabouts of the actual macro objects.

Does anyone know how to tweak the script so the door stops screwing around and stays within the wall contours even when flipped? Or if this is not something easliy explained, does anyone know how to extract the actual scripts of door objects from the AC17 Library, such as gs_general_lt_door_macro?

Cheers for that guys.

Regency Door.jpg
7 REPLIES 7
David Maudlin
Rockstar
Ben_Joo wrote:
I've tried to look at the script of standard GS doors but all these objects use macros and I might look a bit thick here but the master scripts calling the macros don't give away the whereabouts of the actual macro objects.

... Or if this is not something easliy explained, does anyone know how to extract the actual scripts of door objects from the AC17 Library, such as gs_general_lt_door_macro?
To open the macro, in the script, select just the name of the macro (exclude the quote marks) and use the command Open Object....

You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
Many thanks David, I'd never have guessed that, works brilliantly. Although these doors appear to be a lot more complex than I first thought

Do you happen to know if there's a boolean type parameter that controls whether a door is flipped or not? I'd imagine if there was then this issue could be very easily resolved by putting a line in the script like:

IF FlippedOrNot = 1 THEN ADDY -WALL_THICKNESS

Your help is very much appreciated.
Erich
Booster
You don't just need to handle the flipped case. You also need to deal with rotation and the combination of the two parameters. Look at Oliver Dentan's site (http://archilib.od.pagesperso-orange.fr), he has a nice simple door available there that not only deals with these issues in a fairly transparent manner but also can display the din text in plan to help you unravel the door complexities.

While it has been awhile since I tackled this issue, I believe the global you are looking for is WIDO_REVEAL_SIDE
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
David Maudlin
Rockstar
Ben_Joo:

I have not thoroughly tested this, but you should look at the Global Variable WIDO_FRAME_THICKNESS in the GDL Reference Guide. Also, in your library part, from the main library window Details > Compatibility Options... > Nominal Frame Thickness where this variable is set. With a quick test I set it to WALL_THICKNESS (another Global Variable) and that seemed to correct the problem, but this will depend on your library part's parameters and scripts.

The Graphisoft library parts, particularly the doors and windows, have become very complex, so it is very difficult to read through their code so see what is going on.

Thanks for adding the signature.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
David & Erich

Thank you very much for your input, I'll check out what these variables do and also look at the website. I'd really love to see a brutally simple yet fully functional door script so I can pinch all the tricks from it. There seems to be a lot of different issues to consider.

Cheers
Barry Kelly
Moderator
Open you door object and look at the "compatibility options" - it is the "details" button in older versions of Archicad (pre 16).

You want to add the parameter for the frame thickness as shown in the attached image.
If there is no parameter then just type in a dimension.

This has worked for me on my own custom doors but I have never tried or used the standard GS doors so can't say for sure if it will work there.

But if you are working on standard GS doors just remember they will be replaced if you ever update the library unless you save as a copy with a new name and put it in your own library (or embed in the file).

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Excellent, Thank you very much for your help guys!

It was the WIDO_REVEAL_SIDE global, the door's now working properly both 2D/3D. There's probably more than one solution, I haven't tried the "compatibility options" yet but it might be more elegant.

Cheers everyone