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.

Pivot door ...again

Erika Epstein
Booster
Hi,
Hopefully I am posting under the right section this time. Peter and Wes, your help was great. My door in 3D is working fine. 2D is another story.
I am unable to get the door panel itself to show rotated. Arc swings operate just fine, but the door itself won't budge from its closed position. Could someone please point out where I err?
thanks.

!!!move origin to pivot point
ADDX a/2-pivot_dist
!!!move pivot point to midway of door thickness
ADDY -gs_leaf_thk/2
!!!rotate door to open in 3D position
ROTy gs_open_2D

pen gs_leaf_pen
!!panel frame left
rect2 -a/2,-gs_leaf_thk/2, -a/2+gs_fw_side,gs_leaf_thk/2

!!panel frame right
rect2 a/2-gs_fw_side,-gs_leaf_thk/2, a/2,gs_leaf_thk/2

! panel bottom frame
pen 2
line2 -a/2+gs_fw_side,-gs_leaf_thk/4, a/2-gs_fw_side,-gs_leaf_thk/4
line2 -a/2+gs_fw_side,gs_leaf_thk/4, a/2-gs_fw_side,gs_leaf_thk/4

!!glass
pen gs_glass_pen
rect2 -a/2+gs_fw_side,-gs_leaf_thk/2, a/2-gs_fw_side,gs_leaf_thk/2



! if door open in 2D add swing
pen gs_swing_pen
addx a/2-pivot_dist
arc2 a/2-pivot_dist,0, a-pivot_dist, 180-gs_open_2D, 180
arc2 a/2-pivot_dist,0, pivot_dist, -gs_open_2D,0

!add hotspots, later turn into graphical hotspots
pen 1
hotspot2 -a/2,-gs_leaf_thk/2
hotspot2 -a/2, gs_leaf_thk/2
hotspot2 a/2,-gs_leaf_thk/2
hotspot2 a/2, gs_leaf_thk/2
hotspot2 a/2-pivot_dist, 0

pivot no pivot.jpg
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"
5 REPLIES 5
Anonymous
Not applicable
Erika,
I notice you are using 3D script transformation commands
such as ADDx rather than ADD2 x,y. 3D transformation commands
don't work in the 2D script.
I'm sure you know this
Peter Devlin
Erika Epstein
Booster
Peter,
I still feel so foolish 12 hours after first reading your reply.
If only I had had the nerve to post my question sooner.
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"
Anonymous
Not applicable
Erika,
How about letting us both of off the hook here.
The only way I spotted your error is that
I have made the same error many times.
Back in 6.5, you would get an error message
if you used a 3D script command in the 2D script.
I hope you are getting your pivot door working.
Cheers,
Peter Devlin
Anonymous
Not applicable
hi, I'm pretty new to archicad, and I've never done a gdl object as described above... Can someone explain how the code is placed in the "create object" dialog box, or point me to some more information as to how I can use the code in this thread to make a pivot door? Thanks in advance.
Erich
Booster
Pencrush,

First I strongly suggest you get a copy of the GDL Cookbook. DNC has kindly place a PDF version here http://www.nottingham.ac.uk/sbe/cookbook/ and although it deals with older versions of AC it all still applies. David does have some door examples in the book.

Secondly, I see you are in Portland as am I. Do you attend the local, and infrequent users group? If so perhaps we can start talking GDL there.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K