<?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: project2 &amp;amp; cut fills in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142298#M12442</link>
    <description>&lt;BLOCKQUOTE&gt;Richardng wrote:&lt;BR /&gt;Am I missing something obvious - doesn't everybody want their objects to simply be cut with the floor plan?&lt;/BLOCKQUOTE&gt;
It just depends on the object and the desired plan view, the vast majority of objects I have created do not have a cut plane, mostly a simplified top down view.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Richardng wrote:&lt;BR /&gt;(and not waste time writing a duplicate script in 2D that has to be updated with any changes to the 3D shape)&lt;/BLOCKQUOTE&gt;
Except for very complicated shapes where an accurate top down view is needed, a 2D Script is better: it runs faster without the overhead of creating a 3D view for each object's representation in plan view. A lot of objects using &lt;FONT color="blue"&gt;Project2&lt;/FONT&gt; will take unnecessary resources for plan generation. Some of the code used for the 3D object can be reused for the 2D Script, with a change in command and editing some of the variables.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
    <pubDate>Wed, 05 Mar 2014 13:29:53 GMT</pubDate>
    <dc:creator>David Maudlin</dc:creator>
    <dc:date>2014-03-05T13:29:53Z</dc:date>
    <item>
      <title>project2 &amp; cut fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142295#M12439</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hey all,&lt;BR /&gt;
&lt;BR /&gt;
I've just started down the path of scripting my own objects, and I'm simply searching for a way to make the regular plan 2D view of the object look as it does in the Section or 3D Doc/Plan view.&lt;BR /&gt;
&lt;BR /&gt;
I've attached an example file of what I'm trying so far.  The upper block would ideally be filled with a user selected cut fill and the lower block would just be outlined.&lt;BR /&gt;
&lt;BR /&gt;
(Basically the way I would want every object to be displayed by default, cut at the level of the floor plan view)&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I can't seem to attach .gsm .....so here is the code:&lt;BR /&gt;
&lt;BR /&gt;
2D-----------------------------------------------&lt;BR /&gt;
SECT_ATTRS fill2, pen1,&lt;BR /&gt;
        pen2, pen2&lt;BR /&gt;
&lt;BR /&gt;
PROJECT2{3} 2,270,2+16+4092,15&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
3D-----------------------------------------------&lt;BR /&gt;
IF GLOB_CONTEXT =2 THEN&lt;BR /&gt;
ADDz 1.5&lt;BR /&gt;
CUTPLANE&lt;BR /&gt;
DEL 1&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
MATERIAL mmat&lt;BR /&gt;
BLOCK 1,1,1&lt;BR /&gt;
&lt;BR /&gt;
ADD 1,1,1&lt;BR /&gt;
BLOCK 1,1,1&lt;BR /&gt;
DEL 1&lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_CONTEXT=2 THEN CUTEND&lt;BR /&gt;
&lt;BR /&gt;
END&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/6933i2B41035F622C3125/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Screen Shot 2014-03-03 at 4.06.14 pm.png" title="Screen Shot 2014-03-03 at 4.06.14 pm.png" /&gt;</description>
      <pubDate>Sun, 02 Mar 2014 21:42:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142295#M12439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-02T21:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: project2 &amp; cut fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142296#M12440</link>
      <description>I think you will have to use the extended version of this command:&lt;BR /&gt;

&lt;PRE&gt;PROJECT2{3} projection_code, angle, method, parts [, backgroundColor,
fillOrigoX, fillOrigoY, filldirection][[,]
PARAMETERS name1=value1, ..., namen=valuen]&lt;/PRE&gt;

So to achieve this particular result you need to provide not only the first 4 parameters, but at least the next 4 parameters as well. Those define the cut fill's background color and the origin and direction of its pattern. &lt;BR /&gt;
&lt;BR /&gt;
These parantheses - [] - mean that those parameters included within them are optional parameters.&lt;BR /&gt;
&lt;BR /&gt;
For example, this code:&lt;BR /&gt;

&lt;PRE&gt;PROJECT2{3} 2,270,2+16+4092,15, 19, 0, 0, 0&lt;/PRE&gt;

I suppose would set the background fill color to Pen 19 (usually white), the Fill's origin will be at 0, 0 in the X-Y plane of the Object, and its direction will be the direction of the X axis.&lt;BR /&gt;
I did not try it, but let's hope that is what those values mean. The GDL Manual is not too verbose on these parameters and there is no example for their use either.</description>
      <pubDate>Tue, 04 Mar 2014 14:09:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142296#M12440</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2014-03-04T14:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: project2 &amp; cut fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142297#M12441</link>
      <description>Thanks Las, but adding those parameters did not seem to change anything.&lt;BR /&gt;
&lt;BR /&gt;
Does the SECT_ATTRS definition apply to shapes cut with the CUTPLANE?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
After a bit more digging I found this:&lt;BR /&gt;
&lt;A href="http://www.masterscript.nl/3d-objects/38-object-slicer.html" target="_blank"&gt;&lt;LINK_TEXT text="http://www.masterscript.nl/3d-objects/3 ... licer.html"&gt;http://www.masterscript.nl/3d-objects/38-object-slicer.html&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
(which seems like what I am trying to do)&lt;BR /&gt;
&lt;BR /&gt;
and this discussion:&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=25373&amp;amp;sid=e85f9fa3bf041751b42b4403e909a7de" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... 03e909a7de"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=25373&amp;amp;sid=e85f9fa3bf041751b42b4403e909a7de&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Am I missing something obvious - doesn't everybody want their objects to simply be cut with the floor plan?&lt;BR /&gt;
(and not waste time writing a duplicate script in 2D that has to be updated with any changes to the 3D shape)</description>
      <pubDate>Tue, 04 Mar 2014 23:17:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142297#M12441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-04T23:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: project2 &amp; cut fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142298#M12442</link>
      <description>&lt;BLOCKQUOTE&gt;Richardng wrote:&lt;BR /&gt;Am I missing something obvious - doesn't everybody want their objects to simply be cut with the floor plan?&lt;/BLOCKQUOTE&gt;
It just depends on the object and the desired plan view, the vast majority of objects I have created do not have a cut plane, mostly a simplified top down view.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Richardng wrote:&lt;BR /&gt;(and not waste time writing a duplicate script in 2D that has to be updated with any changes to the 3D shape)&lt;/BLOCKQUOTE&gt;
Except for very complicated shapes where an accurate top down view is needed, a 2D Script is better: it runs faster without the overhead of creating a 3D view for each object's representation in plan view. A lot of objects using &lt;FONT color="blue"&gt;Project2&lt;/FONT&gt; will take unnecessary resources for plan generation. Some of the code used for the 3D object can be reused for the 2D Script, with a change in command and editing some of the variables.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Wed, 05 Mar 2014 13:29:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142298#M12442</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2014-03-05T13:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: project2 &amp; cut fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142299#M12443</link>
      <description>"SECT_ATTRS fill2, pen1....",  should be in 3d script, not in 2d.</description>
      <pubDate>Thu, 06 Mar 2014 17:27:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142299#M12443</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2014-03-06T17:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: project2 &amp; cut fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142300#M12444</link>
      <description>Ok, that makes sense.  After playing around a bit more it seems that objects cut with a CUTPLANE do not count at cut polygons in PROJECT2{3}....?????&lt;BR /&gt;
&lt;BR /&gt;
Changing the 4th parameter between 3,12 and 15 shows that the shapes are not recognised as being cut.  &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
----------------2D----------------------&lt;BR /&gt;
PROJECT2{3} 2,270,2+16+4096,15,19,0,0,0&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
----------------3D----------------------&lt;BR /&gt;
ADDz 1.5&lt;BR /&gt;
CUTPLANE&lt;BR /&gt;
DEL 1&lt;BR /&gt;
&lt;BR /&gt;
SECT_FILL fill2, pen1, pen2, pen2&lt;BR /&gt;
&lt;BR /&gt;
MATERIAL mmat&lt;BR /&gt;
&lt;BR /&gt;
BLOCK 1,1,1&lt;BR /&gt;
&lt;BR /&gt;
ADD 1,1,1&lt;BR /&gt;
BLOCK 1,1,1&lt;BR /&gt;
DEL 1&lt;BR /&gt;
&lt;BR /&gt;
CUTEND&lt;BR /&gt;
&lt;BR /&gt;
END</description>
      <pubDate>Thu, 06 Mar 2014 20:55:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142300#M12444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-06T20:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: project2 &amp; cut fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142301#M12445</link>
      <description>Here's an example. It takes it's time to go through it.&lt;BR /&gt;
I try to attach "FloorPlanCutPlane.gsm" but no success...somebody help?&lt;BR /&gt;
OK, Thank You, Lazlo!</description>
      <pubDate>Thu, 06 Mar 2014 21:22:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142301#M12445</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2014-03-06T21:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: project2 &amp; cut fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142302#M12446</link>
      <description>Create a ZIP file out of it, you will be able to upload that.</description>
      <pubDate>Thu, 06 Mar 2014 21:54:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142302#M12446</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2014-03-06T21:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: project2 &amp; cut fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142303#M12447</link>
      <description>Thanks Pertti,  that was a really helpful script - it seems to do everything.&lt;BR /&gt;
&lt;BR /&gt;
For the moment I will stick to something a bit simpler, the key information was that it appears that CUTPLANE{2} has to be used to generate cut polygons - I had no idea.  &lt;BR /&gt;
As soon as I switched CUTPLANE for CUTPLANE{2} 0,0 it all looked good.</description>
      <pubDate>Sun, 09 Mar 2014 21:14:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/project2-amp-cut-fills/m-p/142303#M12447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-09T21:14:07Z</dc:date>
    </item>
  </channel>
</rss>

