<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to make a pivot door? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11501#M37827</link>
    <description>Wes,&lt;BR /&gt;
&lt;BR /&gt;
I am not sure how to move this thread to library parts; perhaps the powers that watch over us can assist.&lt;BR /&gt;
I am working on adding the parameter and no doubt will have many questions.&lt;BR /&gt;
Thank you.</description>
    <pubDate>Wed, 02 Feb 2005 19:34:24 GMT</pubDate>
    <dc:creator>Erika Epstein</dc:creator>
    <dc:date>2005-02-02T19:34:24Z</dc:date>
    <item>
      <title>how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11498#M37824</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;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? &lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 09:04:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11498#M37824</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2023-05-24T09:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11499#M37825</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
so, to move the origin from the center of the door over to the pivot point, you would:&lt;BR /&gt;
&lt;BR /&gt;
ADDX    a/2-pivot_dist&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
wes</description>
      <pubDate>Wed, 02 Feb 2005 18:55:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11499#M37825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-02T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11500#M37826</link>
      <description>Wes,&lt;BR /&gt;
I haven't tried what you suggest, but are you sure &lt;BR /&gt;
ADDX a/2-pivot_dist works ?&lt;BR /&gt;
&lt;BR /&gt;
It seems to me that all that does is move the door panel.&lt;BR /&gt;
If the door panel is rotated about the "Y" axis using ROTY&lt;BR /&gt;
the object will rotate about it's local origin therefore don't&lt;BR /&gt;
you have to change the local origin of the door panel&lt;BR /&gt;
to change the pivot line ?&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Wed, 02 Feb 2005 19:25:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11500#M37826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-02T19:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11501#M37827</link>
      <description>Wes,&lt;BR /&gt;
&lt;BR /&gt;
I am not sure how to move this thread to library parts; perhaps the powers that watch over us can assist.&lt;BR /&gt;
I am working on adding the parameter and no doubt will have many questions.&lt;BR /&gt;
Thank you.</description>
      <pubDate>Wed, 02 Feb 2005 19:34:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11501#M37827</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2005-02-02T19:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11502#M37828</link>
      <description>peter-&lt;BR /&gt;
&lt;BR /&gt;
It all depends on where you place the ADDX line.  I used it in a pivot door I built &lt;B&gt;before&lt;/B&gt; my ROTY command, both of which are before the code creating the door geometry, so in essence I did move the local origin.&lt;BR /&gt;
&lt;BR /&gt;
erika-&lt;BR /&gt;
&lt;BR /&gt;
maybe the above will help you get the code in the right place!&lt;BR /&gt;
&lt;BR /&gt;
&lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
wes</description>
      <pubDate>Wed, 02 Feb 2005 19:38:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11502#M37828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-02T19:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11503#M37829</link>
      <description>Wes,&lt;BR /&gt;
Right you are !&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Wed, 02 Feb 2005 19:43:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11503#M37829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-02T19:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11504#M37830</link>
      <description>Wes and Peter,&lt;BR /&gt;
as Peter remarked, all that does is shift the door relative to the wall hole created.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Adding RotY gs_open_3D  after  the ADDX statement resulted in the pivot!&lt;BR /&gt;
&lt;BR /&gt;
Also, How do I get it to show door swings?&lt;BR /&gt;
&lt;BR /&gt;
making progress,&lt;BR /&gt;
thanks</description>
      <pubDate>Wed, 02 Feb 2005 19:45:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11504#M37830</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2005-02-02T19:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11505#M37831</link>
      <description>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 &amp;amp; bottom rails.&lt;BR /&gt;
&lt;BR /&gt;
cPRISM_ gs_leaf_mat, gs_leaf_mat, gs_leaf_mat,&lt;BR /&gt;
             5, 0'-0.500",&lt;BR /&gt;
        -pivot_dist, rail-0.5",     15,&lt;BR /&gt;
        A-pivot_dist, rail-0.5",     15,&lt;BR /&gt;
        A-pivot_dist, b-rail+0.5",     15,&lt;BR /&gt;
        -pivot_dist, b-rail+0.5",     15,&lt;BR /&gt;
        -pivot_dist, rail-0.5",     -1&lt;BR /&gt;
&lt;BR /&gt;
use the 2d script to draw rectangles and arcs to show the door swing (and the backswing of the offset pivot). similar code...&lt;BR /&gt;
&lt;BR /&gt;
making sense yet?&lt;BR /&gt;
&lt;BR /&gt;
w</description>
      <pubDate>Wed, 02 Feb 2005 20:09:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11505#M37831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-02T20:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11506#M37832</link>
      <description>Wes,&lt;BR /&gt;
I have it rotating in 3D fine, now I have to get the 2D script up to speed.&lt;BR /&gt;
Your help is wonderful.&lt;BR /&gt;
thank you,&lt;BR /&gt;
Erika</description>
      <pubDate>Wed, 02 Feb 2005 20:18:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11506#M37832</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2005-02-02T20:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a pivot door?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11507#M37833</link>
      <description>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)&lt;BR /&gt;
&lt;BR /&gt;
ADD DoorW/2-Pivot,0,Doorthk/2   !!! Centre the door in the opening&lt;BR /&gt;
ROTx -90                                   !!! Lay it down flat on the floor&lt;BR /&gt;
ROTz -Door_Opening_Arc            !!! Swing the door open&lt;BR /&gt;
cPRISM_ DoorMat,DoorMat,DoorMat,5,DoorHt,&lt;BR /&gt;
   Pivot,-DoorThk/2,15,&lt;BR /&gt;
   -DoorW+Pivot,-DoorThk/2,15,&lt;BR /&gt;
   -DoorW+Pivot,DoorThk/2,15,&lt;BR /&gt;
   Pivot,DoorThk/2,15,&lt;BR /&gt;
   Pivot,-DoorThk/2,15&lt;BR /&gt;
DEL 3&lt;BR /&gt;
&lt;BR /&gt;
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 &amp;amp; COS calculations.&lt;BR /&gt;
&lt;BR /&gt;
Use a similar strategy in 2D using ADD2 DoorW/2-Pivot,0 &amp;amp; ROT2 -Door_Opening_Arc &amp;amp; POLY2 (just cut &amp;amp; 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 &amp;amp; voila!&lt;BR /&gt;
&lt;BR /&gt;
Cheers,</description>
      <pubDate>Thu, 03 Feb 2005 04:59:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/how-to-make-a-pivot-door/m-p/11507#M37833</guid>
      <dc:creator>Vitruvius</dc:creator>
      <dc:date>2005-02-03T04:59:03Z</dc:date>
    </item>
  </channel>
</rss>

