<?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: Unclear script of project2{4} in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288191#M2755</link>
    <description>Thanks</description>
    <pubDate>Mon, 25 Feb 2019 03:26:12 GMT</pubDate>
    <dc:creator>Nader Belal</dc:creator>
    <dc:date>2019-02-25T03:26:12Z</dc:date>
    <item>
      <title>Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288184#M2748</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
I was investigating project2{4} using the &lt;B&gt;&lt;A href=" http://gdl.graphisoft.com/tips-and-tricks/using-project24-command" target="_blank"&gt;downloadable example supplied by Graphisoft in this page&lt;/A&gt;&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
So by simple editing of the original script&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;for i = 1 to iCutPlanes
	put cutElevation + (i-1) * sliceHeight
next i


for i = 0 to iCutPlanes
	put 1+32,				! method
		2,					! parts
		1,					! cutFillIndex
		1,					! cutFillFgPen
		1,					! cutFillBgPen
		0.0,				! cutFillOrigoX
		0.0,				! cutFillOrigoY
		0.0,				! cutFillDirection
		1,					! cutLinePen
		1,					! cutLineType
		1,					! projectedFillIndex
		1,					! projectedFillFgPen
		1,					! projectedFillBgPen
		0.0,				! projectedFillOrigoX
		0.0,				! projectedFillOrigoY
		0.0,				! projectedFillDirection
		1,					! projectedLinePen
		1					! projectedLineType
next i


project2{4} 3, 270,						
	0,					! useTransparency	
	0,					! statusParts		
	iCutPlanes,			! numCutplanes		
	get (nsp)
&lt;/PRE&gt;

&lt;BR /&gt;
It will provide this result in the 2D view &lt;BR /&gt;



&lt;BR /&gt;
But when I reedit the script in the following way
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;project2{4} 3, 270,						
	0,					! useTransparency	
	0,					! statusParts		
	1,			! numCutplanes		
	5000,

1+32,				! method
			2,					! parts
			1,					! cutFillIndex
			1,					! cutFillFgPen
			1,					! cutFillBgPen
			0.0,				! cutFillOrigoX
			0.0,				! cutFillOrigoY
			0.0,				! cutFillDirection
			1,					! cutLinePen
			1,					! cutLineType
			1,					! projectedFillIndex
			1,					! projectedFillFgPen
			1,					! projectedFillBgPen
			0.0,				! projectedFillOrigoX
			0.0,				! projectedFillOrigoY
			0.0,				! projectedFillDirection
			1,					! projectedLinePen
			1,					! projectedLineType

1+32,				! method
			2,					! parts
			1,					! cutFillIndex
			1,					! cutFillFgPen
			1,					! cutFillBgPen
			0.0,				! cutFillOrigoX
			0.0,				! cutFillOrigoY
			0.0,				! cutFillDirection
			1,					! cutLinePen
			1,					! cutLineType
			1,					! projectedFillIndex
			1,					! projectedFillFgPen
			1,					! projectedFillBgPen
			0.0,				! projectedFillOrigoX
			0.0,				! projectedFillOrigoY
			0.0,				! projectedFillDirection
			1,					! projectedLinePen
			1					! projectedLineType
&lt;/PRE&gt;

It simply doesn't work, &lt;B&gt;the 2D space is empty&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
Can someone explain me how to make this work ??&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 23 Feb 2019 16:45:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288184#M2748</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-02-23T16:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288185#M2749</link>
      <description>Ok, I have narrowed the problem to one parameter ...&lt;BR /&gt;
&lt;BR /&gt;
Why do I need the to use parameter buffer for "&lt;B&gt;cutElevation&lt;/B&gt;" Parameter ???</description>
      <pubDate>Sun, 24 Feb 2019 19:18:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288185#M2749</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-02-24T19:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288186#M2750</link>
      <description>Works fine for me without using a buffer.&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;PROJECT2{4} 3, -90,						!projection_code, angle,
	0, 1+2,							!useTransparency, statusParts,		
	1,							!numCutplanes,
	gs_fw_lower + gs_int_fw + 2*gs_louvre_width,		!cutplaneHeight1, ..., cutplaneHeightn,

	3+32, 1+2+4+8+64,					!method1, parts1,
	gs_fill_type,						!cutFillIndex1,
	gs_fill_pen, gs_back_pen,				!cutFillFgPen1, cutFillBgPen1,
	0, 0, 0,						!cutFillOrigoX1, cutFillOrigoY1, cutFillDirection1,
	gs_cut_pen,	1,					!cutLinePen1, cutLineType1,
	65,							!projectedFillIndex1,
	19, 19,							!projectedFillFgPen1, projectedFillBgPen1,
	0, 0, 0,						!projectedFillOrigoX1, projectedFillOrigoY1, projectedFillDirection1,
	gs_pen_2D, 1,						!projectedLinePen1, projectedLineType1

	4+64, 1+2,						!method1, parts1,
	gs_fill_type,						!cutFillIndex1,
	gs_fill_pen, gs_back_pen,				!cutFillFgPen1, cutFillBgPen1,
	0, 0, 0,						!cutFillOrigoX1, cutFillOrigoY1, cutFillDirection1,
	gs_cut_pen,	4,					!cutLinePen1, cutLineType1,
	65,							!projectedFillIndex1,
	19, 19,							!projectedFillFgPen1, projectedFillBgPen1,
	0, 0, 0,						!projectedFillOrigoX1, projectedFillOrigoY1, projectedFillDirection1,
	gs_pen_2D, 4						!projectedLinePen1, projectedLineType1&lt;/PRE&gt;

&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;*From my own object.&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Mon, 25 Feb 2019 01:37:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288186#M2750</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-02-25T01:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288187#M2751</link>
      <description>I tried out the example object and I cannot seem to get it to work either...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Mon, 25 Feb 2019 01:59:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288187#M2751</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-02-25T01:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288188#M2752</link>
      <description>I have been toying around the values of the parameters, and here what I have found:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;&lt;B&gt;*PS:&lt;/B&gt; To make it simple lets just assume you work with only one cut surface&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
1- &lt;B&gt;Method&lt;/B&gt; works fine &lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;only when you use the same for the cut and uncut parts&lt;E&gt;&lt;/E&gt;. This doesn't apply for methods (16 -&amp;gt; 8192)&lt;BR /&gt;
&lt;BR /&gt;
2- &lt;B&gt;Parts&lt;/B&gt; can prove itself a little bit tricky but not that much.&lt;BR /&gt;
&lt;BR /&gt;
3- The most difficult part is to get the right combination between &lt;B&gt;Methods&lt;/B&gt; a &lt;B&gt;Parts&lt;/B&gt;, as not all will be the one you need.</description>
      <pubDate>Mon, 25 Feb 2019 02:09:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288188#M2752</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-02-25T02:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288189#M2753</link>
      <description>@Lingwisyer&lt;BR /&gt;
&lt;BR /&gt;
Anyway I have took the script to an object that I´m working on, stripped it from "&lt;B&gt;32&lt;/B&gt;" method. It worked.&lt;BR /&gt;
&lt;BR /&gt;
The problem that I have now, that the object I´m working on have openings that can change in type, size or location, so in the wire frame mode to works perfectly but in the coloured mode, I just can't make it work &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cry.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cry.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cry.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 25 Feb 2019 02:13:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288189#M2753</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-02-25T02:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288190#M2754</link>
      <description>Your cuts are through a vertical surface so the shading is covering up the lower cuts which does not happen with wireframe?</description>
      <pubDate>Mon, 25 Feb 2019 02:44:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288190#M2754</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-02-25T02:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288191#M2755</link>
      <description>Thanks</description>
      <pubDate>Mon, 25 Feb 2019 03:26:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288191#M2755</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-02-25T03:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288192#M2756</link>
      <description>Could you include an "&lt;B&gt;If glob_view_type = 2&lt;/B&gt;" statement near the start of your script that will set all of your openings to the same height when viewed in plan? In this way you can cut them all with a single cutplane. No need to worry about overlapping shadings either.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Mon, 25 Feb 2019 04:18:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288192#M2756</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-02-25T04:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288193#M2757</link>
      <description>Thanks a lot,&lt;BR /&gt;
&lt;BR /&gt;
I was going to write to you the same answer right now, before seeing your question.&lt;BR /&gt;
&lt;BR /&gt;
Is GDL is enhancing our telepathic abilities ???  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 25 Feb 2019 04:37:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288193#M2757</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-02-25T04:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288194#M2758</link>
      <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
Could you include an "&lt;B&gt;If glob_view_type = 2&lt;/B&gt;" statement near the start of your script that will set all of your openings to the same height when viewed in plan? In this way you can cut them all with a single cutplane. No need to worry about overlapping shadings either.&lt;BR /&gt;

&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
&lt;B&gt;&lt;FONT size="150"&gt;Update&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Just found out that you don't need a "&lt;B&gt;cutplane&lt;/B&gt;" in the 3D Script as "&lt;B&gt;project2{4}&lt;/B&gt;" already have it.</description>
      <pubDate>Wed, 20 Mar 2019 15:41:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288194#M2758</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-03-20T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288195#M2759</link>
      <description>&lt;BLOCKQUOTE&gt;Moonlight wrote:&lt;BR /&gt;Just found out that you don't need a "&lt;B&gt;cutplane&lt;/B&gt;" in the 3D Script as "&lt;B&gt;project2{4}&lt;/B&gt;" already have it.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
I was referring to the commands internal cutplane. The representation is different though as the internal cutplane will only use a single line type and weight whilst a stand alone cutplane will use the projected surfaces line types and weights. There are some other issues with using a standalone the the internal one solves, but I cannot remember what they were at the current moment...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Thu, 21 Mar 2019 01:29:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288195#M2759</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-03-21T01:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear script of project2{4}</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288196#M2760</link>
      <description>@Lingwisyer&lt;BR /&gt;
&lt;BR /&gt;
I'm aware of that, I meant that the function doesn't need the cutplane for the objects' representations, unless ofcourse it's to bypass a limitation.</description>
      <pubDate>Thu, 21 Mar 2019 18:51:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Unclear-script-of-project2-4/m-p/288196#M2760</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-03-21T18:51:54Z</dc:date>
    </item>
  </channel>
</rss>

