<?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: Stair Stringer in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110572#M31914</link>
    <description>Peter, I guess I got rapped up in what I was doing last night and never came back to the post to see you're reply. I spent some time researching the Put..... command and with some trial and error, eventually(11:30 pm) came up with a working 3 stringer script!! Must say I was quite proud of myself. Now I just need to put some treads and risers on it. I've also scripted my own cedar railing that eventually I hope to combine with the stairs. Thanks everyone for you're help!   Doug</description>
    <pubDate>Mon, 12 Mar 2007 16:10:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-03-12T16:10:40Z</dc:date>
    <item>
      <title>Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110562#M31904</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;This is the 3D script for a stair stringer. All the variables are right. I've checked them 3 times. If I end the script with m, r2, m, 0 right before 10: it does exactly what it's supposed to do. The rest of it is supposed to fill in the rest of the rises and runs. When I check script it says I have a missing Call keyword at the section in red. When I click continue it tells me that I need a string type expression at that same setion. I'm getting better at scripting but this one has me stumped. Am I going about this the wrong way? I know it's been good practice. &lt;BR /&gt;
&lt;BR /&gt;
EDIT&lt;BR /&gt;
Thanks for looking Dwight. I tried using gosub but it did the same thing. if I run it as it is shown now it works as before plus gives me the next step down. If I remove the ! from the 10: it doesn't seem to like having the 10: in the middle of the prism. Will a prism normally work with a line number in the middle of it?&lt;BR /&gt;
ROTX 90&lt;BR /&gt;
MATERIAL 81&lt;BR /&gt;
L=NOR-3&lt;BR /&gt;
STRW=11.25"&lt;BR /&gt;
TH=(NOR*7.3125")+LF&lt;BR /&gt;
TRW=RUN/NOTR&lt;BR /&gt;
RISE=TH/NOR&lt;BR /&gt;
ANG=ATN(RISE/TRW)&lt;BR /&gt;
R2=RISE-1"&lt;BR /&gt;
N=STRW/SIN(ANG) &lt;BR /&gt;
M=R2/TAN(ANG)&lt;BR /&gt;
F=N-M&lt;BR /&gt;
Q=M-1.5"&lt;BR /&gt;
U=(RUN-2.375")+Q&lt;BR /&gt;
W=U-N&lt;BR /&gt;
G=W*TAN(ANG)&lt;BR /&gt;
V=TH-(RISE+1")&lt;BR /&gt;
H=TRW-3.875"&lt;BR /&gt;
I=3&lt;BR /&gt;
!PRISM ((NOTR-2)*2)+8, 1.5",&lt;BR /&gt;
&lt;BR /&gt;
PRISM 11, 1.5",&lt;BR /&gt;
M, 0, N, 0, U, G, U, V, U-H, V,&lt;BR /&gt;
U-H, V-RISE, U-(H+TRW), V-RISE,&lt;BR /&gt;
!10:&lt;BR /&gt;
U-(H+(TRW*(I-2))), V-(RISE*(I-1)),&lt;BR /&gt;
U-(H+(TRW*(I-1))), V-(RISE*(I-1)),&lt;BR /&gt;
!I=I+1&lt;BR /&gt;
!IF I &amp;gt; NOR+3 THEN 20:&lt;BR /&gt;
!GOTO 10:&lt;BR /&gt;
!20:&lt;BR /&gt;
M, R2, M, 0&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 11 Mar 2007 16:44:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110562#M31904</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-11T16:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110563#M31905</link>
      <description>WHATIF:&lt;BR /&gt;
&lt;BR /&gt;
GOTO 10:&lt;BR /&gt;
&lt;BR /&gt;
IS:&lt;BR /&gt;
&lt;BR /&gt;
GOSUB 10:&lt;BR /&gt;
&lt;BR /&gt;
??</description>
      <pubDate>Sun, 11 Mar 2007 18:06:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110563#M31905</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2007-03-11T18:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110564#M31906</link>
      <description>I made some changes to the script and did an edit above. How 'bout it Peter, you're the stairmaster!!</description>
      <pubDate>Sun, 11 Mar 2007 19:54:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110564#M31906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-11T19:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110565#M31907</link>
      <description>Hello Doug,&lt;BR /&gt;
I did not think that one could&lt;BR /&gt;
jump out of the parameters of a command&lt;BR /&gt;
and go to a label. But to be sure, I tried&lt;BR /&gt;
it with a very simple PRISM command&lt;BR /&gt;
and got an error using goto and gosub.&lt;BR /&gt;
&lt;BR /&gt;
I am curious about why you are not writing&lt;BR /&gt;
the PRISM command in the normal manner&lt;BR /&gt;
with each pair of x and y values on a separate line.&lt;BR /&gt;
The code is more understandable this way.&lt;BR /&gt;
&lt;BR /&gt;
I am not clear about why you would want&lt;BR /&gt;
to jump out to a label.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Sun, 11 Mar 2007 21:06:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110565#M31907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-11T21:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110566#M31908</link>
      <description>In the prism I've designated 8 of the points. The number of points left are determined by the overall number of rises minus these points. I assume that I need to use a variable to accomplish this but not quite sure how to go about it. The # of rises, #of treads, and overall run of the stringer are input by the user. Basically I need to end the prism based on a variable.</description>
      <pubDate>Sun, 11 Mar 2007 21:24:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110566#M31908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-11T21:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110567#M31909</link>
      <description>Hello Doug,&lt;BR /&gt;
I think you will need a FOR loop to do this.&lt;BR /&gt;
Look at the code for the stringers in the&lt;BR /&gt;
library part "Stair straight run.gsm" in&lt;BR /&gt;
the concrete folder in the complete stairs folder.&lt;BR /&gt;
You don't have to use the parameter buffer&lt;BR /&gt;
but you need a FOR loop to fill the parameters&lt;BR /&gt;
of the PRISM command based on the calculated &lt;BR /&gt;
number of steps.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Sun, 11 Mar 2007 21:49:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110567#M31909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-11T21:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110568#M31910</link>
      <description>OK Peter, but if I put a for next loop outside the prism won't it repeat all the first points of the prism as well?</description>
      <pubDate>Sun, 11 Mar 2007 21:58:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110568#M31910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-11T21:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110569#M31911</link>
      <description>Hello Doug, &lt;BR /&gt;
If you look at the script of the&lt;BR /&gt;
lib part I mentioned you will&lt;BR /&gt;
notice that some of the points&lt;BR /&gt;
are not from the parameter buffer&lt;BR /&gt;
but are in the command.&lt;BR /&gt;
This is common in GDL.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Sun, 11 Mar 2007 23:54:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110569#M31911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-11T23:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110570#M31912</link>
      <description>I checked out the script that you mentioned Peter. Although I'm starting to get the hang of this, it's going to take a few to understand exactly what it's doing. If you have any insight I'd appreciate it.  Doug&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Edit:&lt;BR /&gt;
&lt;BR /&gt;
I found "Put"..."Get"..."Use"...NSP" in the manual. I'm starting to see how it works.</description>
      <pubDate>Mon, 12 Mar 2007 00:10:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110570#M31912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-12T00:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110571#M31913</link>
      <description>Hello Doug,&lt;BR /&gt;
I wrote a small 3D script that I hope shows how&lt;BR /&gt;
the FOR NEXT loop and PUT GET work.&lt;BR /&gt;
&lt;BR /&gt;
The 3D script is as follows.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
numriser=5	!!!number of risers&lt;BR /&gt;
riserht=7"	  !!!riser height&lt;BR /&gt;
trdp=11"	  !!!tread depth&lt;BR /&gt;
&lt;BR /&gt;
width=3'-0"	!!!stair width&lt;BR /&gt;
&lt;BR /&gt;
!!!-------------------------------------&lt;BR /&gt;
put 0,0&lt;BR /&gt;
put 0,riserht&lt;BR /&gt;
&lt;BR /&gt;
for i=1 to numriser step 1&lt;BR /&gt;
put (i-1)*trdp,i*riserht&lt;BR /&gt;
put i*trdp,i*riserht&lt;BR /&gt;
next i&lt;BR /&gt;
&lt;BR /&gt;
put trdp*numriser, riserht*(numriser-1)&lt;BR /&gt;
put trdp,0&lt;BR /&gt;
!!!--------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
material 18&lt;BR /&gt;
pen 1&lt;BR /&gt;
&lt;BR /&gt;
rotx 90&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
prism nsp/2,width,&lt;BR /&gt;
get (nsp)&lt;BR /&gt;
&lt;BR /&gt;
del 1&lt;BR /&gt;
end&lt;BR /&gt;
&lt;BR /&gt;
I hope this helps&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Mon, 12 Mar 2007 02:46:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110571#M31913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-12T02:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Stair Stringer</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110572#M31914</link>
      <description>Peter, I guess I got rapped up in what I was doing last night and never came back to the post to see you're reply. I spent some time researching the Put..... command and with some trial and error, eventually(11:30 pm) came up with a working 3 stringer script!! Must say I was quite proud of myself. Now I just need to put some treads and risers on it. I've also scripted my own cedar railing that eventually I hope to combine with the stairs. Thanks everyone for you're help!   Doug</description>
      <pubDate>Mon, 12 Mar 2007 16:10:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stair-Stringer/m-p/110572#M31914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-12T16:10:40Z</dc:date>
    </item>
  </channel>
</rss>

