<?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: Remove quotation mark (inches) from text2 in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Remove-quotation-mark-inches-from-text2/m-p/269848#M5903</link>
    <description>So, here's what I came up with. The extra lines in the Master Script are to deal with Archicad's accuracy.&lt;BR /&gt;
I added a boolean to switch to decimal just in case. Seems to work pretty well. &lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;Master Script:&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
TOTAL = B*39.370078740157&lt;BR /&gt;
FRACTION = FRA(TOTAL)&lt;BR /&gt;
WHOLE_INCHES = TOTAL-FRACTION&lt;BR /&gt;
SIXTEENTHS = FRACTION/.0625&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; -1 AND SIXTEENTHS &amp;lt; .5 THEN FRACT = ""&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; .5 AND SIXTEENTHS &amp;lt; 1.5 THEN FRACT = "1/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 1.5 AND SIXTEENTHS &amp;lt; 2.5 THEN FRACT = "1/8"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 2.5 AND SIXTEENTHS &amp;lt; 3.5 THEN FRACT = "3/16"		&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 3.5 AND SIXTEENTHS &amp;lt; 4.5 THEN FRACT = "1/4"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 4.5 AND SIXTEENTHS &amp;lt; 5.5 THEN FRACT = "5/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 5.5 AND SIXTEENTHS &amp;lt; 6.5 THEN FRACT = "3/8"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 6.5 AND SIXTEENTHS &amp;lt; 7.5 THEN FRACT = "7/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 7.5 AND SIXTEENTHS &amp;lt; 8.5 THEN FRACT = "1/2"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 8.5 AND SIXTEENTHS &amp;lt; 9.5 THEN FRACT = "9/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 9.5 AND SIXTEENTHS &amp;lt; 10.5 THEN FRACT = "5/8"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 10.5 AND SIXTEENTHS &amp;lt; 11.5 THEN FRACT = "11/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 11.5 AND SIXTEENTHS &amp;lt; 12.5 THEN FRACT = "3/4"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 12.5 AND SIXTEENTHS &amp;lt; 13.5 THEN FRACT = "13/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 13.5 AND SIXTEENTHS &amp;lt; 14.5 THEN FRACT = "7/8"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 14.5 AND SIXTEENTHS &amp;lt; 15.5 THEN FRACT = "15/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 15.5 AND SIXTEENTHS &amp;lt; 16 THEN&lt;BR /&gt;
		WHOLE_INCHES = WHOLE_INCHES + 1&lt;BR /&gt;
		FRACT = ""&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;2D Script:&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
PEN  PEN_COLOR&lt;BR /&gt;
&lt;BR /&gt;
!!!!!!!!!!!!!!!!!!!!!!!!!CHANGING THE PITCH!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;BR /&gt;
unID=1000&lt;BR /&gt;
hotspot2 12", 0,      UNID, B,1+128 : unID=unID+1 &lt;BR /&gt;
hotspot2 12", -1,     UNID, B,3 : unID=unID+1 &lt;BR /&gt;
hotspot2 12", B, UNID, B ,2 : unID=unID+1 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
LINE2 0, 0, 0, B&lt;BR /&gt;
LINE2 0, B, 12", B&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0, 0&lt;BR /&gt;
HOTSPOT2 0, B&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
DEFINE STYLE "PITCHTEXT1" "ARIEL",  1.75, 5, 0 &lt;BR /&gt;
DEFINE STYLE "PITCHTEXT2" "ARIEL",  1.75, 6, 0 &lt;BR /&gt;
&lt;BR /&gt;
		set style "PITCHTEXT1"		&lt;BR /&gt;
		TEXT2 6", B+3", "12"&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
		set style "PITCHTEXT2"	&lt;BR /&gt;
IF DECIMAL THEN&lt;BR /&gt;
		TEXT2 -1", B/2, TOTAL&lt;BR /&gt;
ELSE&lt;BR /&gt;
		IF	FRACT = "" THEN&lt;BR /&gt;
		TEXT2 -1", B/2, STR ("%.0pt", WHOLE_INCHES)&lt;BR /&gt;
&lt;BR /&gt;
ELSE	TEXT2 -1", B/2, STR ("%.0pt", WHOLE_INCHES) + " " + FRACT&lt;BR /&gt;
&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
set fill 16&lt;BR /&gt;
	poly2_b     4,  2,  10,  91,&lt;BR /&gt;
				0,0,1,&lt;BR /&gt;
				0,B,1,&lt;BR /&gt;
				12",B,1,&lt;BR /&gt;
				0,0,1&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68104i7D67D0CA57261BD2/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Pitch Indicator 2.JPG" title="Pitch Indicator 2.JPG" /&gt;</description>
    <pubDate>Sat, 18 Mar 2017 19:28:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-18T19:28:27Z</dc:date>
    <item>
      <title>Remove quotation mark (inches) from text2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Remove-quotation-mark-inches-from-text2/m-p/269847#M5902</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi guys.&lt;BR /&gt;
&lt;BR /&gt;
I've tried to figure this out with the gdl reference guide but to no avail.&lt;BR /&gt;
I'm trying to get rid of the quotation mark. It's either that or I have to add one to the 12. That's easy but I have no interest in doing that. I've included the text2 statement in the attachment.  I started with decimal inches which worked fine but not everyone knows their decimals.I would appreciate a push in the right direction.&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Doug&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/74264iFDB11F80F138614E/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Pitch Indicator.JPG" title="Pitch Indicator.JPG" /&gt;</description>
      <pubDate>Fri, 17 Mar 2017 22:13:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Remove-quotation-mark-inches-from-text2/m-p/269847#M5902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-17T22:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove quotation mark (inches) from text2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Remove-quotation-mark-inches-from-text2/m-p/269848#M5903</link>
      <description>So, here's what I came up with. The extra lines in the Master Script are to deal with Archicad's accuracy.&lt;BR /&gt;
I added a boolean to switch to decimal just in case. Seems to work pretty well. &lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;Master Script:&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
TOTAL = B*39.370078740157&lt;BR /&gt;
FRACTION = FRA(TOTAL)&lt;BR /&gt;
WHOLE_INCHES = TOTAL-FRACTION&lt;BR /&gt;
SIXTEENTHS = FRACTION/.0625&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; -1 AND SIXTEENTHS &amp;lt; .5 THEN FRACT = ""&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; .5 AND SIXTEENTHS &amp;lt; 1.5 THEN FRACT = "1/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 1.5 AND SIXTEENTHS &amp;lt; 2.5 THEN FRACT = "1/8"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 2.5 AND SIXTEENTHS &amp;lt; 3.5 THEN FRACT = "3/16"		&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 3.5 AND SIXTEENTHS &amp;lt; 4.5 THEN FRACT = "1/4"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 4.5 AND SIXTEENTHS &amp;lt; 5.5 THEN FRACT = "5/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 5.5 AND SIXTEENTHS &amp;lt; 6.5 THEN FRACT = "3/8"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 6.5 AND SIXTEENTHS &amp;lt; 7.5 THEN FRACT = "7/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 7.5 AND SIXTEENTHS &amp;lt; 8.5 THEN FRACT = "1/2"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 8.5 AND SIXTEENTHS &amp;lt; 9.5 THEN FRACT = "9/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 9.5 AND SIXTEENTHS &amp;lt; 10.5 THEN FRACT = "5/8"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 10.5 AND SIXTEENTHS &amp;lt; 11.5 THEN FRACT = "11/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 11.5 AND SIXTEENTHS &amp;lt; 12.5 THEN FRACT = "3/4"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 12.5 AND SIXTEENTHS &amp;lt; 13.5 THEN FRACT = "13/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 13.5 AND SIXTEENTHS &amp;lt; 14.5 THEN FRACT = "7/8"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 14.5 AND SIXTEENTHS &amp;lt; 15.5 THEN FRACT = "15/16"&lt;BR /&gt;
IF SIXTEENTHS &amp;gt; 15.5 AND SIXTEENTHS &amp;lt; 16 THEN&lt;BR /&gt;
		WHOLE_INCHES = WHOLE_INCHES + 1&lt;BR /&gt;
		FRACT = ""&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;2D Script:&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
PEN  PEN_COLOR&lt;BR /&gt;
&lt;BR /&gt;
!!!!!!!!!!!!!!!!!!!!!!!!!CHANGING THE PITCH!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;BR /&gt;
unID=1000&lt;BR /&gt;
hotspot2 12", 0,      UNID, B,1+128 : unID=unID+1 &lt;BR /&gt;
hotspot2 12", -1,     UNID, B,3 : unID=unID+1 &lt;BR /&gt;
hotspot2 12", B, UNID, B ,2 : unID=unID+1 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
LINE2 0, 0, 0, B&lt;BR /&gt;
LINE2 0, B, 12", B&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0, 0&lt;BR /&gt;
HOTSPOT2 0, B&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
DEFINE STYLE "PITCHTEXT1" "ARIEL",  1.75, 5, 0 &lt;BR /&gt;
DEFINE STYLE "PITCHTEXT2" "ARIEL",  1.75, 6, 0 &lt;BR /&gt;
&lt;BR /&gt;
		set style "PITCHTEXT1"		&lt;BR /&gt;
		TEXT2 6", B+3", "12"&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
		set style "PITCHTEXT2"	&lt;BR /&gt;
IF DECIMAL THEN&lt;BR /&gt;
		TEXT2 -1", B/2, TOTAL&lt;BR /&gt;
ELSE&lt;BR /&gt;
		IF	FRACT = "" THEN&lt;BR /&gt;
		TEXT2 -1", B/2, STR ("%.0pt", WHOLE_INCHES)&lt;BR /&gt;
&lt;BR /&gt;
ELSE	TEXT2 -1", B/2, STR ("%.0pt", WHOLE_INCHES) + " " + FRACT&lt;BR /&gt;
&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
set fill 16&lt;BR /&gt;
	poly2_b     4,  2,  10,  91,&lt;BR /&gt;
				0,0,1,&lt;BR /&gt;
				0,B,1,&lt;BR /&gt;
				12",B,1,&lt;BR /&gt;
				0,0,1&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68104i7D67D0CA57261BD2/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Pitch Indicator 2.JPG" title="Pitch Indicator 2.JPG" /&gt;</description>
      <pubDate>Sat, 18 Mar 2017 19:28:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Remove-quotation-mark-inches-from-text2/m-p/269848#M5903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-18T19:28:27Z</dc:date>
    </item>
  </channel>
</rss>

