<?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: offsetting a hole in a PRISM, suggestions? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36410#M29130</link>
    <description>tube is the go, but I personally would love to see an answer to the question  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; I have had many instances where offsetting a prism or a path is needed, but the trig is a headache. There must be an easy "plug in" bit of code using the cosine rule and co-ordinate geometry..&lt;BR /&gt;
Any maths genius's or physics Nerds up for the challenge?</description>
    <pubDate>Sat, 23 Feb 2008 04:49:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-02-23T04:49:26Z</dc:date>
    <item>
      <title>offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36401#M29121</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I have a triangle shaped object created with a PRISM. I need to cut a triangle shaped hole inside it that is equidistant (or basically offset) on all 3 sides. The width of my trim(determined by user) determines the offset.&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions on how to get the coordinates for the interior triangle?  &lt;BR /&gt;
&lt;BR /&gt;
The angles of the interior triangle are all the same as the overall triangles object.&lt;BR /&gt;
&lt;BR /&gt;
This may be more of a math question than an &lt;BR /&gt;
ArchiCAD question unless someone can tell me some secret offset command for inside a PRISM.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Feb 2008 15:23:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36401#M29121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-22T15:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36402#M29122</link>
      <description>You could create a copy of the prism and use the "Resize" command to reduce the object the required amount. Be sure to select the center of the prism as the base point for the resize command.&lt;BR /&gt;
&lt;BR /&gt;
Then use SEO with the newly created object to create the hole. Finally, place the new object on a hidden layer.</description>
      <pubDate>Fri, 22 Feb 2008 17:54:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36402#M29122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-22T17:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36403#M29123</link>
      <description>Can you do all that with scripting or do I have to give up the ability to select multiple trim sizes?</description>
      <pubDate>Fri, 22 Feb 2008 17:58:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36403#M29123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-22T17:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36404#M29124</link>
      <description>How good are you with Trig and linear algebra? You could probably script it out, but it won't be pretty.&lt;BR /&gt;
&lt;BR /&gt;
I think there are few objects like this in the Archicad library that you could look at for examples.</description>
      <pubDate>Fri, 22 Feb 2008 18:09:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36404#M29124</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2008-02-22T18:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36405#M29125</link>
      <description>At the moment all I'm doing is spinning my wheels about different ways to use Sin, cos and tan to get the necessary angles. The initial object works correctly to change its shape based off user input roof pitches including when the roof pitches are not the same. The inner holes I've got working about 80% correctly. THey just aren't working for all cases. I'm trying to decided if I need an if-else loop to get the various cases to work right. &lt;BR /&gt;
&lt;BR /&gt;
I don't think I do since the outer most layer works correctly.  But yah, it's long and ugly.............</description>
      <pubDate>Fri, 22 Feb 2008 18:14:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36405#M29125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-22T18:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36406#M29126</link>
      <description>Taking a cue from Dominick's suggestion,&lt;BR /&gt;
would it be possible to make a cutpolya with&lt;BR /&gt;
the same parameters as the prism then&lt;BR /&gt;
mul the cutpolya to make it proportionally &lt;BR /&gt;
smaller and use it to cut the hole in the prism ?&lt;BR /&gt;
The local origin of the prism would have to be&lt;BR /&gt;
the geometric center of the shape.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Fri, 22 Feb 2008 18:41:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36406#M29126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-22T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36407#M29127</link>
      <description>I was able to make my object work by using an if-then statement for when the two pitches were not equal and a whole lot of math. I'm very curious as to how much shorter the code would be if I used the cutpolya command or attempted to script an SEO action. Thanks for all of the ideas.</description>
      <pubDate>Fri, 22 Feb 2008 21:28:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36407#M29127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-22T21:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36408#M29128</link>
      <description>I don't know what you are trying to make but it occurs to me&lt;BR /&gt;
that the easy way to make this shape with the offset the same&lt;BR /&gt;
regardless of the size and shape of the triangle is to make&lt;BR /&gt;
the shape using the TUBE command.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Fri, 22 Feb 2008 21:47:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36408#M29128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-22T21:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36409#M29129</link>
      <description>&lt;BLOCKQUOTE&gt;Peter wrote:&lt;BR /&gt;I don't know what you are trying to make but it occurs to me&lt;BR /&gt;
that the easy way to make this shape with the offset the same&lt;BR /&gt;
regardless of the size and shape of the triangle is to make&lt;BR /&gt;
the shape using the TUBE command.&lt;BR /&gt;
Peter Devlin&lt;/BLOCKQUOTE&gt;
Spot on! TUBE command is the way to go.</description>
      <pubDate>Sat, 23 Feb 2008 04:20:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36409#M29129</guid>
      <dc:creator>LiHigh</dc:creator>
      <dc:date>2008-02-23T04:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36410#M29130</link>
      <description>tube is the go, but I personally would love to see an answer to the question  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; I have had many instances where offsetting a prism or a path is needed, but the trig is a headache. There must be an easy "plug in" bit of code using the cosine rule and co-ordinate geometry..&lt;BR /&gt;
Any maths genius's or physics Nerds up for the challenge?</description>
      <pubDate>Sat, 23 Feb 2008 04:49:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36410#M29130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-23T04:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36411#M29131</link>
      <description>Getting the offset coords is no problem. But, determine the direction of offset requires complex math. I'll see if I've the spare time....</description>
      <pubDate>Sat, 23 Feb 2008 07:10:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36411#M29131</guid>
      <dc:creator>LiHigh</dc:creator>
      <dc:date>2008-02-23T07:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: offsetting a hole in a PRISM, suggestions?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36412#M29132</link>
      <description>Footing 1 11 - slab accessory 2d Script has a good example of offsetting a poly, its not commented enough but you will get the gist.&lt;BR /&gt;
&lt;BR /&gt;
		!-------------------------&lt;BR /&gt;
		! Start the polygon offset&lt;BR /&gt;
		!-------------------------&lt;BR /&gt;
	&lt;BR /&gt;
&lt;BR /&gt;
		For i=crd_begend&lt;J&gt;[1] To crd_begend&lt;J&gt;[2]           ! Precalculate the data&lt;BR /&gt;
			pen 2                                            ! Draw the polygon beFore the offset&lt;BR /&gt;
			If i&amp;lt;crd_begend&lt;J&gt;[2] Then&lt;BR /&gt;
				data&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[3]=ac_coords[i+1][2]-ac_coords&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[2]       ! Direction vector&lt;BR /&gt;
				data&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[4]=ac_coords[i+1][3]-ac_coords&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[3]       ! Direction vector&lt;BR /&gt;
			Else&lt;BR /&gt;
				data&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[3]=ac_coords[crd_begend&lt;J&gt;[1]+1][2]-ac_coords&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[2] ! Direction vector&lt;BR /&gt;
				data&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[4]=ac_coords[crd_begend&lt;J&gt;[1]+1][3]-ac_coords&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[3] ! Direction vector&lt;BR /&gt;
			EndIf           &lt;BR /&gt;
	&lt;BR /&gt;
			If abs(data&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[3])&amp;lt;epszilon Then data&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[3]=0&lt;BR /&gt;
			If abs(data&lt;I&gt;[4])&amp;lt;epszilon Then data&lt;I&gt;[4]=0&lt;BR /&gt;
	&lt;BR /&gt;
			length=sqr(data&lt;I&gt;[3]^2+data&lt;I&gt;[4]^2)            ! Make the unit vector&lt;BR /&gt;
			vect_x=offset*dir_x*data&lt;I&gt;[4]/length&lt;BR /&gt;
			vect_y=offset*dir_y*data&lt;I&gt;[3]/length&lt;BR /&gt;
	&lt;BR /&gt;
			data&lt;I&gt;[1]=ac_coords&lt;I&gt;[2]+vect_x&lt;BR /&gt;
			data&lt;I&gt;[2]=ac_coords&lt;I&gt;[3]+vect_y&lt;BR /&gt;
		next i&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/J&gt;&lt;/J&gt;&lt;/J&gt;&lt;/J&gt;</description>
      <pubDate>Sat, 23 Feb 2008 07:25:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/offsetting-a-hole-in-a-PRISM-suggestions/m-p/36412#M29132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-23T07:25:22Z</dc:date>
    </item>
  </channel>
</rss>

