<?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 String Script in Rafter won't work in Collaboration with other software</title>
    <link>https://community.graphisoft.com/t5/Collaboration-with-other/String-Script-in-Rafter-won-t-work/m-p/68433#M6477</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I have added a string script to a rafter so that I can extract an individual calculation based on the rafter drawn. I added a parameter that calulates the length of the rafter on the slope see below:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;!----------------------------------------------------------&lt;BR /&gt;
IF B=0.75" THEN &lt;BR /&gt;
  CodeStart = 'X40'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=1.5" THEN&lt;BR /&gt;
  CodeStart = 'X40'&lt;BR /&gt;
ELSE CodeStart = 'X31'&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
IF B=0.75" THEN&lt;BR /&gt;
CodeMidA = '01'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=1.5" THEN&lt;BR /&gt;
CodeMidA = '02'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=3.5" THEN&lt;BR /&gt;
CodeMidA = '04'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=5.5" THEN&lt;BR /&gt;
CodeMidA = '06'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=7.25" THEN&lt;BR /&gt;
CodeMidA = '08'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF H=0.75" THEN&lt;BR /&gt;
CodeMidB = '01'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=1.5" THEN&lt;BR /&gt;
CodeMidB = '02'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=3.5" THEN&lt;BR /&gt;
CodeMidB = '04'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=5.5" THEN&lt;BR /&gt;
CodeMidB = '06'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=7.25" THEN&lt;BR /&gt;
CodeMidB = '08'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=9.25" THEN&lt;BR /&gt;
CodeMidB = '10'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=11.25" THEN&lt;BR /&gt;
CodeMidB = '12'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=13.25" THEN&lt;BR /&gt;
CodeMidB = '14'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=15.25" THEN&lt;BR /&gt;
CodeMidB = '16'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF 'raf_len'&amp;gt;6'-0" AND 'raf_len'&amp;lt;=8'-0" THEN&lt;BR /&gt;
CodeEnd = '08'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;8'-0" AND 'raf_len'&amp;lt;=10'-0" THEN&lt;BR /&gt;
CodeEnd = '10'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;10'-0" AND 'raf_len'&amp;lt;=12'-0" THEN&lt;BR /&gt;
CodeEnd = '12'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;12'-0" AND 'raf_len'&amp;lt;=14'-0" THEN&lt;BR /&gt;
CodeEnd = '14'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;14'-0" AND 'raf_len'&amp;lt;=16'-0" THEN&lt;BR /&gt;
CodeEnd = '16'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;16'-0" AND 'raf_len'&amp;lt;=18'-0" THEN&lt;BR /&gt;
CodeEnd = '18'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;18'-0" AND 'raf_len'&amp;lt;=20'-0" THEN&lt;BR /&gt;
CodeEnd = '20'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
!----------------------------------------------------------&lt;BR /&gt;
n=REQUEST ("name_of_listed", " ", objectname)&lt;BR /&gt;
&lt;BR /&gt;
COMPONENT objectname, 1, 'pieces',1,Codestart + CodeMidA + CodeMidB + CodeEnd,'80000'&lt;BR /&gt;
&lt;BR /&gt;
binaryprop&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
The COMPONENT command is and Incompatible type expression, (System Error -1)&lt;BR /&gt;
&lt;BR /&gt;
Any Ideas? Thanks.&lt;BR /&gt;
&lt;BR /&gt;
Barry Halloran&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 21 Apr 2005 17:22:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-04-21T17:22:05Z</dc:date>
    <item>
      <title>String Script in Rafter won't work</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/String-Script-in-Rafter-won-t-work/m-p/68433#M6477</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I have added a string script to a rafter so that I can extract an individual calculation based on the rafter drawn. I added a parameter that calulates the length of the rafter on the slope see below:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;!----------------------------------------------------------&lt;BR /&gt;
IF B=0.75" THEN &lt;BR /&gt;
  CodeStart = 'X40'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=1.5" THEN&lt;BR /&gt;
  CodeStart = 'X40'&lt;BR /&gt;
ELSE CodeStart = 'X31'&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
IF B=0.75" THEN&lt;BR /&gt;
CodeMidA = '01'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=1.5" THEN&lt;BR /&gt;
CodeMidA = '02'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=3.5" THEN&lt;BR /&gt;
CodeMidA = '04'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=5.5" THEN&lt;BR /&gt;
CodeMidA = '06'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF B=7.25" THEN&lt;BR /&gt;
CodeMidA = '08'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF H=0.75" THEN&lt;BR /&gt;
CodeMidB = '01'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=1.5" THEN&lt;BR /&gt;
CodeMidB = '02'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=3.5" THEN&lt;BR /&gt;
CodeMidB = '04'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=5.5" THEN&lt;BR /&gt;
CodeMidB = '06'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=7.25" THEN&lt;BR /&gt;
CodeMidB = '08'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=9.25" THEN&lt;BR /&gt;
CodeMidB = '10'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=11.25" THEN&lt;BR /&gt;
CodeMidB = '12'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=13.25" THEN&lt;BR /&gt;
CodeMidB = '14'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF H=15.25" THEN&lt;BR /&gt;
CodeMidB = '16'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF 'raf_len'&amp;gt;6'-0" AND 'raf_len'&amp;lt;=8'-0" THEN&lt;BR /&gt;
CodeEnd = '08'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;8'-0" AND 'raf_len'&amp;lt;=10'-0" THEN&lt;BR /&gt;
CodeEnd = '10'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;10'-0" AND 'raf_len'&amp;lt;=12'-0" THEN&lt;BR /&gt;
CodeEnd = '12'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;12'-0" AND 'raf_len'&amp;lt;=14'-0" THEN&lt;BR /&gt;
CodeEnd = '14'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;14'-0" AND 'raf_len'&amp;lt;=16'-0" THEN&lt;BR /&gt;
CodeEnd = '16'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;16'-0" AND 'raf_len'&amp;lt;=18'-0" THEN&lt;BR /&gt;
CodeEnd = '18'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF 'raf_len'&amp;gt;18'-0" AND 'raf_len'&amp;lt;=20'-0" THEN&lt;BR /&gt;
CodeEnd = '20'&lt;BR /&gt;
ENDIF&lt;BR /&gt;
!----------------------------------------------------------&lt;BR /&gt;
n=REQUEST ("name_of_listed", " ", objectname)&lt;BR /&gt;
&lt;BR /&gt;
COMPONENT objectname, 1, 'pieces',1,Codestart + CodeMidA + CodeMidB + CodeEnd,'80000'&lt;BR /&gt;
&lt;BR /&gt;
binaryprop&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
The COMPONENT command is and Incompatible type expression, (System Error -1)&lt;BR /&gt;
&lt;BR /&gt;
Any Ideas? Thanks.&lt;BR /&gt;
&lt;BR /&gt;
Barry Halloran&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Apr 2005 17:22:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/String-Script-in-Rafter-won-t-work/m-p/68433#M6477</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-21T17:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: String Script in Rafter won't work</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/String-Script-in-Rafter-won-t-work/m-p/68434#M6478</link>
      <description>I don't think scripting should be necessary?  Maybe I am missing something but I use the library Rafter2_1 and it gives slope length as is.  The thing I didn't like about the return was that it was in exact lengths, which doesn't help for a material list... so, I had someone write a script that you put into the Roofmaker Library folder (in the property datafolder) that rounds them to the next higher 2' increment.  I will email it to you if you like.</description>
      <pubDate>Thu, 21 Apr 2005 19:37:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/String-Script-in-Rafter-won-t-work/m-p/68434#M6478</guid>
      <dc:creator>Rick Thompson</dc:creator>
      <dc:date>2005-04-21T19:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: String Script in Rafter won't work</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/String-Script-in-Rafter-won-t-work/m-p/68435#M6479</link>
      <description>Rick,&lt;BR /&gt;
&lt;BR /&gt;
The reason for the script is for inventory purposes and quotes. The database parts are extracted to a third party program that then generates a cost and deducts the part from inventory. If you don't mind go ahead and email me the script I'll see if I can use any part of it. Thanks.&lt;BR /&gt;
&lt;BR /&gt;
Barry Halloran</description>
      <pubDate>Thu, 21 Apr 2005 19:44:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/String-Script-in-Rafter-won-t-work/m-p/68435#M6479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-21T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: String Script in Rafter won't work</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/String-Script-in-Rafter-won-t-work/m-p/68436#M6480</link>
      <description>I'll paste it here so anyone searching later can see it.&lt;BR /&gt;
&lt;BR /&gt;
!&lt;BR /&gt;
! Property script for Lumber Pack calculation&lt;BR /&gt;
! Parameters BxHxL&lt;BR /&gt;
!&lt;BR /&gt;
!print l&lt;BR /&gt;
SQUOT="'"&lt;BR /&gt;
DQUOTE='"'&lt;BR /&gt;
TOL=0.0625          ! cut length tolerance is 1/16 in. 05/21 fl&lt;BR /&gt;
MTI=1000/25.4       ! meter to inches&lt;BR /&gt;
MTF=MTI/12          ! meter to feet&lt;BR /&gt;
!&lt;BR /&gt;
WI=B*MTI&lt;BR /&gt;
HI=H*MTI&lt;BR /&gt;
if (WI-INT(WI))&amp;gt;TOL THEN WI=INT(WI)+1   ! width is rounded up to nearest inch&lt;BR /&gt;
if (HI-INT(HI))&amp;gt;TOL THEN HI=INT(HI)+1   ! height is rounded up to nearest inch&lt;BR /&gt;
!++++&lt;BR /&gt;
LINFT=L*MTF&lt;BR /&gt;
LININ=LINFT-int(LINFT)&lt;BR /&gt;
LINFT=int(LINFT)&lt;BR /&gt;
if LININ&amp;gt;0.001 then LINFT=LINFT+1&lt;BR /&gt;
if (LINFT-2*int(LINFT/2))&amp;gt;0.5 then LINFT=LINFT+1&lt;BR /&gt;
!++++&lt;BR /&gt;
BDFT=HI*WI*LINFT/12*QTY&lt;BR /&gt;
WSTR=STR(WI,2,0)&lt;BR /&gt;
HSTR=STR(HI,2,0)&lt;BR /&gt;
LSTRF=STR(LINFT,2,0)&lt;BR /&gt;
CUTSTR=WSTR+" x"+HSTR+" x "+LSTRF+SQUOT              &lt;BR /&gt;
COMPONENT "LUMBER OVERALL",BDFT,"Bdft",1,"01","80000"&lt;BR /&gt;
COMPONENT CUTSTR,QTY,"ea.",1,CUTSTR,"80000"&lt;BR /&gt;
&lt;BR /&gt;
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</description>
      <pubDate>Thu, 21 Apr 2005 19:46:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/String-Script-in-Rafter-won-t-work/m-p/68436#M6480</guid>
      <dc:creator>Rick Thompson</dc:creator>
      <dc:date>2005-04-21T19:46:42Z</dc:date>
    </item>
  </channel>
</rss>

