<?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: Objects on several floors in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130229#M22365</link>
    <description>You're nearly there. Yes you can use project2{3} to create the filled polygons. &lt;BR /&gt;
&lt;BR /&gt;
The good thing about project2{3} is that you can use the pens and fill pattern currently in effect in the 2D script. Try the script fragment below:&lt;BR /&gt;
&lt;BR /&gt;
fill fillType&lt;BR /&gt;
pen fillPen&lt;BR /&gt;
project2{3} 3, 270, 3 + 32, 4, bkgdPen&lt;BR /&gt;
&lt;BR /&gt;
pen contourPen&lt;BR /&gt;
project2 3, 270, 2&lt;BR /&gt;
&lt;BR /&gt;
(Of course you would substitute your own variables for fillType, fillPen, bkgdPen and contourPen).&lt;BR /&gt;
&lt;BR /&gt;
The first 'project2' creates the fill polygon with no outline. By setting the method to 3 (shading), and adding the 32 (use current attributes) the projection will use the current fill, pen and background pen. Set the parts to 4 so that only the view polygons will be visible (i.e. no outline). Also pass through the pen of the fill background.&lt;BR /&gt;
&lt;BR /&gt;
The second 'project2' adds the outline. I'm not sure if there's a way to do it in a single 'project2' command.</description>
    <pubDate>Mon, 02 Nov 2009 19:00:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-02T19:00:02Z</dc:date>
    <item>
      <title>Objects on several floors</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130228#M22364</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi,&lt;BR /&gt;
I'm trying to make an object to be visible in all the floors with the correct 2d representation. I mean, this object should be sectioned at each floor.&lt;BR /&gt;
In order to make the section, no problem. I use the CUTPLANE/CUTEND command using also the global variable for the story height, elevation and cutplane height ...&lt;BR /&gt;
For the 2D symbol I use the project2 instruction ...&lt;BR /&gt;
My problem is how to control the section, I mean, how to set the pen for section line (in plan), the fill, etc. etc. ...&lt;BR /&gt;
&lt;BR /&gt;
Actually my tests are on this simple code.&lt;BR /&gt;
3D&lt;BR /&gt;
&lt;B&gt;if glob_context = 2 then&lt;BR /&gt;
	cutplane &lt;BR /&gt;
&lt;BR /&gt;
		addz -(glob_cstory_elev+glob_cutplanes_info[1])&lt;BR /&gt;
		cone 10,5,1,90,90&lt;BR /&gt;
	cutend&lt;BR /&gt;
else &lt;BR /&gt;
	cone 10,5,1,90,90&lt;BR /&gt;
endif&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
2D&lt;BR /&gt;
&lt;B&gt;project2{3} 3,0,3,15&lt;/B&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Nov 2009 18:33:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130228#M22364</guid>
      <dc:creator>alemanda</dc:creator>
      <dc:date>2009-11-02T18:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Objects on several floors</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130229#M22365</link>
      <description>You're nearly there. Yes you can use project2{3} to create the filled polygons. &lt;BR /&gt;
&lt;BR /&gt;
The good thing about project2{3} is that you can use the pens and fill pattern currently in effect in the 2D script. Try the script fragment below:&lt;BR /&gt;
&lt;BR /&gt;
fill fillType&lt;BR /&gt;
pen fillPen&lt;BR /&gt;
project2{3} 3, 270, 3 + 32, 4, bkgdPen&lt;BR /&gt;
&lt;BR /&gt;
pen contourPen&lt;BR /&gt;
project2 3, 270, 2&lt;BR /&gt;
&lt;BR /&gt;
(Of course you would substitute your own variables for fillType, fillPen, bkgdPen and contourPen).&lt;BR /&gt;
&lt;BR /&gt;
The first 'project2' creates the fill polygon with no outline. By setting the method to 3 (shading), and adding the 32 (use current attributes) the projection will use the current fill, pen and background pen. Set the parts to 4 so that only the view polygons will be visible (i.e. no outline). Also pass through the pen of the fill background.&lt;BR /&gt;
&lt;BR /&gt;
The second 'project2' adds the outline. I'm not sure if there's a way to do it in a single 'project2' command.</description>
      <pubDate>Mon, 02 Nov 2009 19:00:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130229#M22365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-02T19:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Objects on several floors</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130230#M22366</link>
      <description>Thanks for your suggestion.&lt;BR /&gt;
I understood the method and I tried it.&lt;BR /&gt;
In this way I don't obtain what I want.&lt;BR /&gt;
In fact, in this way, I can control everything except the color of the cut part.&lt;BR /&gt;
In fact I can control the color of the outline ... but the outline is section and projection ... &lt;BR /&gt;
&lt;BR /&gt;
One question.&lt;BR /&gt;
In the GDL manual it talks about "cut part" for the 3D section/elevation window and project2(3) ...&lt;BR /&gt;
I think I've defined the cut part in the wrong way ... &lt;BR /&gt;
In fact I made a cut of the object (the cone in the test) but I didn't defined the cut part ... How to make it?</description>
      <pubDate>Tue, 03 Nov 2009 08:39:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130230#M22366</guid>
      <dc:creator>alemanda</dc:creator>
      <dc:date>2009-11-03T08:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Objects on several floors</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130231#M22367</link>
      <description>Oh I see, you want to show the cut surface as a section fill. Well that's a more interesting problem.&lt;BR /&gt;
&lt;BR /&gt;
Here's a possible approach you could take, although it's a bit clumsy.&lt;BR /&gt;
&lt;BR /&gt;
Add a parameter 'showSection' to the object. In the 2D script, first do a projection to show the cut surfaces as follows:
&lt;PRE&gt;fill sectFillType
pen sectFillPen
project2{3} 3, 270, 3 + 32, 4, sectBkgdPen parameters showSection = 1&lt;/PRE&gt;
Then do a projection to show the uncut surfaces:
&lt;PRE&gt;pen viewPen
project2 3, 270, 2&lt;/PRE&gt;
The clumsy part is that you would have to use a thin slice rather than a cutting plane to get your cut surfaces. In the 3D script, you would use group operations:
&lt;PRE&gt;group "model"
    (the code to create your model)
endgroup
if showSection then
    group "cutter"
        (transformation to adjust the height of the cutting 'plane' - actually a thin prism)
        prism 4, .001,
            -1000, -1000,
            1000, -1000,
            1000, 1000,
            -1000, 1000
    endgroup
    result = isectgroup("model", "cutter")
    placegroup result
else
    placegroup "model"
endif&lt;/PRE&gt;
I would be interested to hear if anyone has a better way, as this is a bit of a hack.</description>
      <pubDate>Tue, 03 Nov 2009 18:49:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130231#M22367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-03T18:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Objects on several floors</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130232#M22368</link>
      <description>Hi Folks,&lt;BR /&gt;
&lt;BR /&gt;
Depending on the complexity of the shape, I'd use a simple poly2_B{3}  to generate a circle and shrink it with a Mul2 linked to the FPCP (Floor Plan Cut Plan).&lt;BR /&gt;
&lt;BR /&gt;
If the geometry gets complex, I'd use Andrew's approach with a thin slice cut... but instead of using Solid Geometry Commands, I'd use two opposite cutplans separated by a thin distance.&lt;BR /&gt;
&lt;BR /&gt;
HTH.</description>
      <pubDate>Tue, 03 Nov 2009 19:05:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130232#M22368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-03T19:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Objects on several floors</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130233#M22369</link>
      <description>alemanda,&lt;BR /&gt;
&lt;BR /&gt;
Did you find a good solution for your problem?&lt;BR /&gt;
&lt;BR /&gt;
Stig</description>
      <pubDate>Wed, 18 Aug 2010 13:25:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Objects-on-several-floors/m-p/130233#M22369</guid>
      <dc:creator>Stig Bengtsson</dc:creator>
      <dc:date>2010-08-18T13:25:47Z</dc:date>
    </item>
  </channel>
</rss>

