<?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 How to script cavity closure/skin turning for doors/windows? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-script-cavity-closure-skin-turning-for-doors-windows/m-p/117268#M17267</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'd appreciate some advice on achieving what is on the title of this topic. &lt;BR /&gt;
I have a bunch of custom doors/windows that I use since ArchiCAD 7 until today with few modifications. They are quite simple, but still answers my needs better than newer and more sophisticate objects, because they are very specific to my scenarios. &lt;BR /&gt;
Now I'd like to add these 'skin turning' capabilities that I see in the standard library parts, but I'm afraid this is a rather complex task, maybe beyond my GDL knowledge, which I would classify as intermediate. &lt;BR /&gt;
Does anyone have tried this or know of any wiki, recipe, code snippet or tutorial pointing guidelines to the challenge? &lt;BR /&gt;
Is it just a matter of fiddling with WALL_SKINS_PARAMS variable to get the fills, pens and dimensions of the skins and then draw them into the 2D script? &lt;BR /&gt;
Or are there more tricks that I don't know of? For instance, how do I know if the window is placed in a corner, which would modify the 2d drawing of the skins? &lt;BR /&gt;
In short, any tip regarding this subject would be greatly appreciated.&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 May 2023 10:36:55 GMT</pubDate>
    <dc:creator>Durval</dc:creator>
    <dc:date>2023-05-24T10:36:55Z</dc:date>
    <item>
      <title>How to script cavity closure/skin turning for doors/windows?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-script-cavity-closure-skin-turning-for-doors-windows/m-p/117268#M17267</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'd appreciate some advice on achieving what is on the title of this topic. &lt;BR /&gt;
I have a bunch of custom doors/windows that I use since ArchiCAD 7 until today with few modifications. They are quite simple, but still answers my needs better than newer and more sophisticate objects, because they are very specific to my scenarios. &lt;BR /&gt;
Now I'd like to add these 'skin turning' capabilities that I see in the standard library parts, but I'm afraid this is a rather complex task, maybe beyond my GDL knowledge, which I would classify as intermediate. &lt;BR /&gt;
Does anyone have tried this or know of any wiki, recipe, code snippet or tutorial pointing guidelines to the challenge? &lt;BR /&gt;
Is it just a matter of fiddling with WALL_SKINS_PARAMS variable to get the fills, pens and dimensions of the skins and then draw them into the 2D script? &lt;BR /&gt;
Or are there more tricks that I don't know of? For instance, how do I know if the window is placed in a corner, which would modify the 2d drawing of the skins? &lt;BR /&gt;
In short, any tip regarding this subject would be greatly appreciated.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:36:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-script-cavity-closure-skin-turning-for-doors-windows/m-p/117268#M17267</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2023-05-24T10:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to script cavity closure/skin turning for doors/wind</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-script-cavity-closure-skin-turning-for-doors-windows/m-p/117269#M17268</link>
      <description>I think it is a hudge task.&lt;BR /&gt;
Doable if you have some free time, but not simple.&lt;BR /&gt;
&lt;BR /&gt;
Take a look at GDL Technical Standards, and Basic Library Documentation examples, you will understand your pain.&lt;BR /&gt;
Theorically, it is just a collection of automatical macro calls. &lt;BR /&gt;
&lt;BR /&gt;
I don't blame GS on this point, doors and windows are (for me) the most complex parts to script.&lt;BR /&gt;
Thousands of possibiliities into a a single object. A nightmare. I did it once, far from to be perfect, that's enough.&lt;BR /&gt;
&lt;BR /&gt;
In practice, it is so much complicated, that I don't see any external parts using this feature. May be I'm wrong.&lt;BR /&gt;
Open a GS part, you will  see the complexity. Pity.</description>
      <pubDate>Thu, 26 May 2011 19:25:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-script-cavity-closure-skin-turning-for-doors-windows/m-p/117269#M17268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-26T19:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to script cavity closure/skin turning for doors/wind</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-script-cavity-closure-skin-turning-for-doors-windows/m-p/117270#M17269</link>
      <description>Actually, while waiting for a reply to this topic, I did some attempts, and the results made me optimistic.&lt;BR /&gt;
I do not need to cover all the possibilities. I only need the two most external skins to be turned.&lt;BR /&gt;
So I scripted two POLY2_B commands, one for the internal skin an another for the external one (then 'MUL2 -1,1' for the other side of the window).&lt;BR /&gt;
I just read the values for pens and fill from WALL_SKINS_PARAMS [1]&lt;X&gt; to draw the turning skin on the reference side, and WALL_SKINS_PARAMS [WALL_SKINS_NUMBER]&lt;X&gt; to draw the turning skin on the oposite side.&lt;BR /&gt;
These polys have a trapezoidal format, where the skin thickness is the height of the trapezoid. WALL_THICKNESS and WIDO_SILL are used to calculate the bases of the trapezoid. Have a look at the attached image. The two trapezoids on each side  (one for each skin) of the left window are highlighted in green.&lt;BR /&gt;
I still have to find out a way to tell ArchiCAD what my reference side is. Tried an 'IF WIDO_REVEAL_SIDE' to invert row 1 and row number WALL_SKINS_NUMBER, but it did not work as I expected.&lt;BR /&gt;
The left window – which I created by doing the second click on the "north" side of the wall – is OK (except from some fine adjustments to the pens). In the right window – created with the second click on the "south" – the skins were inverted.&lt;/X&gt;&lt;/X&gt;</description>
      <pubDate>Thu, 26 May 2011 21:13:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-script-cavity-closure-skin-turning-for-doors-windows/m-p/117270#M17269</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2011-05-26T21:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to script cavity closure/skin turning for doors/wind</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-script-cavity-closure-skin-turning-for-doors-windows/m-p/117271#M17270</link>
      <description>'SYMB_ROTANGLE' can be used instead of 'WIDO_REVEAL_SIDE' to work out the inversion of reference sides.</description>
      <pubDate>Thu, 26 May 2011 22:23:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-script-cavity-closure-skin-turning-for-doors-windows/m-p/117271#M17270</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2011-05-26T22:23:57Z</dc:date>
    </item>
  </channel>
</rss>

