cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

how to make a pivot door?

Erika Epstein
Booster
I am trying to make a door that pivots not at the side of the door but in the off-center. Can some one help me with how to do this?

thanks,
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
9 REPLIES 9
Not applicable
Erika... I just realized that this was posted under working in archicad rather than the libraryparts/gdl topic. You'll have to use some gdl to do this... If you've never done it before, it could be a little daunting, though I'm sure we'd all help you through it.

All you really need to do differently from making a regular door is to create a variable for the pivot distance and use it to adjust your origin location before you use any rotation commands.

so, to move the origin from the center of the door over to the pivot point, you would:

ADDX a/2-pivot_dist



HTH
wes
Not applicable
Wes,
I haven't tried what you suggest, but are you sure
ADDX a/2-pivot_dist works ?

It seems to me that all that does is move the door panel.
If the door panel is rotated about the "Y" axis using ROTY
the object will rotate about it's local origin therefore don't
you have to change the local origin of the door panel
to change the pivot line ?
Thank you,
Peter Devlin
Erika Epstein
Booster
Wes,

I am not sure how to move this thread to library parts; perhaps the powers that watch over us can assist.
I am working on adding the parameter and no doubt will have many questions.
Thank you.
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Not applicable
peter-

It all depends on where you place the ADDX line. I used it in a pivot door I built before my ROTY command, both of which are before the code creating the door geometry, so in essence I did move the local origin.

erika-

maybe the above will help you get the code in the right place!



wes
Not applicable
Wes,
Right you are !
Thank you,
Peter Devlin
Erika Epstein
Booster
Wes and Peter,
as Peter remarked, all that does is shift the door relative to the wall hole created.


Adding RotY gs_open_3D after the ADDX statement resulted in the pivot!

Also, How do I get it to show door swings?

making progress,
thanks
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Not applicable
right. now you've got to create the geometry around the pivot point. see the code for my piece of 1/2" glass below. 'rail' is the variable to control the height of top & bottom rails.

cPRISM_ gs_leaf_mat, gs_leaf_mat, gs_leaf_mat,
5, 0'-0.500",
-pivot_dist, rail-0.5", 15,
A-pivot_dist, rail-0.5", 15,
A-pivot_dist, b-rail+0.5", 15,
-pivot_dist, b-rail+0.5", 15,
-pivot_dist, rail-0.5", -1

use the 2d script to draw rectangles and arcs to show the door swing (and the backswing of the offset pivot). similar code...

making sense yet?

w
Erika Epstein
Booster
Wes,
I have it rotating in 3D fine, now I have to get the 2D script up to speed.
Your help is wonderful.
thank you,
Erika
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Vitruvius
Booster
I do the pivot door by setting the origin of the door prism at the pivot point (where DoorW=Door Leaf Width / DoorHT=Door Leaf Height / DoorThk = Door Leaf Thickness / Pivot = Pivot distance from door edge)

ADD DoorW/2-Pivot,0,Doorthk/2 !!! Centre the door in the opening
ROTx -90 !!! Lay it down flat on the floor
ROTz -Door_Opening_Arc !!! Swing the door open
cPRISM_ DoorMat,DoorMat,DoorMat,5,DoorHt,
Pivot,-DoorThk/2,15,
-DoorW+Pivot,-DoorThk/2,15,
-DoorW+Pivot,DoorThk/2,15,
Pivot,DoorThk/2,15,
Pivot,-DoorThk/2,15
DEL 3

The above places the centre of the door at the pivot so you can easily manipulate the opening action of the door. It also has the advantage that your door hardware is created at 0,0,0 then ROTated and moved by ADD into it's correct location. If you try to create the door from an edge, you'll get into a nightmare of translations using SIN & COS calculations.

Use a similar strategy in 2D using ADD2 DoorW/2-Pivot,0 & ROT2 -Door_Opening_Arc & POLY2 (just cut & paste the cPRISM_ coordinates and delete the '15' masking number) so that you can easily rotate the door open. Add your door swings using ARC2 & voila!

Cheers,
Cameron Hestler, Architect
Archicad 27 / Mac Studio M1 Max - 32 GB / LG24" Monitors / 14.5 Sonoma