<?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: GDL for a LABEL. help needed in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154613#M24252</link>
    <description>try this at the top of the script&lt;BR /&gt;
&lt;BR /&gt;
LABCON = "" + LABCON + ""&lt;BR /&gt;
&lt;BR /&gt;
This should do the trick</description>
    <pubDate>Thu, 02 Jul 2009 04:33:06 GMT</pubDate>
    <dc:creator>Ben Cohen</dc:creator>
    <dc:date>2009-07-02T04:33:06Z</dc:date>
    <item>
      <title>GDL for a LABEL. help needed</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154612#M24251</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi&lt;BR /&gt;
First of all, I'm quite low on the Junior League when talking about GDL. So please be patient if you see something "obviously wrong".&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Objective:&lt;/B&gt;&lt;BR /&gt;
An Label object, with all my Specs as Values so my team can use only the specs listed. And if any of the specs changes, we can change it on the GDL , and it will be updated where it was used (any view when updated)&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Problem:&lt;/B&gt;&lt;BR /&gt;
As you can see on the image attached, I wanted to handle the style of the text using Paragraph and Textblock, and then Richtext. I've playing around with the numbers and I can't get the defined Style to be applied to the text shown. &lt;BR /&gt;
Something else, When I do the same replacing the Variable "LABCON" with any text string, the Style works.&lt;BR /&gt;
&lt;BR /&gt;
I really appreciate your help&lt;BR /&gt;
&lt;BR /&gt;
Nando&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Questions:&lt;/B&gt;&lt;BR /&gt;
How should I do this instead of using textblocks? If using textblocks, Should I Set the Style in a different way?&lt;/R&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/14850i40CAA51931756BF6/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Picture 1.png" title="Picture 1.png" /&gt;</description>
      <pubDate>Wed, 01 Jul 2009 08:32:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154612#M24251</guid>
      <dc:creator>Nando Mogollon</dc:creator>
      <dc:date>2009-07-01T08:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: GDL for a LABEL. help needed</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154613#M24252</link>
      <description>try this at the top of the script&lt;BR /&gt;
&lt;BR /&gt;
LABCON = "" + LABCON + ""&lt;BR /&gt;
&lt;BR /&gt;
This should do the trick</description>
      <pubDate>Thu, 02 Jul 2009 04:33:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154613#M24252</guid>
      <dc:creator>Ben Cohen</dc:creator>
      <dc:date>2009-07-02T04:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: GDL for a LABEL. help needed</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154614#M24253</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Might be useful to make a valuelist for just headers and then tag the &lt;BR /&gt;
choosen value for autotexts. In that case the referenced content is &lt;BR /&gt;
editable with autotexts without touching the label .gsm object.&lt;BR /&gt;
&lt;BR /&gt;
For example the value list is;&lt;BR /&gt;
&lt;BR /&gt;
!------------------------------------master script&lt;BR /&gt;
dim texts[]&lt;BR /&gt;
 texts[1]= "Header 1"&lt;BR /&gt;
 texts[2]= "Header 2"&lt;BR /&gt;
 texts[3]= "Header 3"&lt;BR /&gt;
 texts[4]= "Header 4"&lt;BR /&gt;
 texts[5]= "Header 5"&lt;BR /&gt;
&lt;BR /&gt;
values "LABCON" texts, custom&lt;BR /&gt;
&lt;BR /&gt;
labeltext="&amp;lt;" + LABCON +"&amp;gt;"&lt;BR /&gt;
!-------------------------------------master script&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Then you can use the "Project Info"-autotexts to generate and modify the references; &lt;BR /&gt;
just use the same headers there.&lt;BR /&gt;
&lt;BR /&gt;
The bad point is that autotexts are not library parts so you have to import / &lt;BR /&gt;
export them manually from PLN to PLN.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Fri, 03 Jul 2009 07:19:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154614#M24253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-03T07:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: GDL for a LABEL. help needed</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154615#M24254</link>
      <description>Hi all, &lt;BR /&gt;
Thanks for the help on the previous post.&lt;BR /&gt;
&lt;BR /&gt;
I've found a different approach to the problem: Instead of having one single Object, We have several Objects (Labels), Each one with a "Code Name". &lt;BR /&gt;
So every Object has it's own Content-Text. &lt;BR /&gt;
&lt;BR /&gt;
The advantage of this procedure is the "automatized" Specifications, in the Hole Project, Even in different Files when using Hotlinks and stand alone files for Details. We just need to share the Object folder on the server. Another advantage is the easy access to Change the Spec: Just open the object, and modify the text.&lt;BR /&gt;
&lt;BR /&gt;
The Shadow side: We don't have a single "source" for all the Specifications and it's code name, it's something we have to do manually, So far the best tool is a spread sheet in Google Docs, so any one can modify the content in some Teamwork fashion.&lt;BR /&gt;
&lt;BR /&gt;
Another good thing is the "Force Horizontal" option, so we can have vertical arrows, which is not possible with the standard Label Tool.(see the attached image).&lt;BR /&gt;
&lt;BR /&gt;
Here you will find the Script, so if you find it interesting, you can use it.&lt;BR /&gt;
--------------&lt;BR /&gt;
DEFINE STYLE{2} TypA LABEL_FONT_NAME, LABEL_TEXT_SIZE*GLOB_SCALE/1000, LABEL_FONT_STYLE&lt;BR /&gt;
&lt;BR /&gt;
PARAGRAPH "PARRAFO" LABEL_TEXT_ALIGN, .1, .1, .1, 1, 0&lt;BR /&gt;
PEN LABEL_TEXT_PEN&lt;BR /&gt;
SET STYLE "TypA"&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!!!!--------&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;-------------- REPLACE THE TEXT BELOW --------&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;-------!!!!!&lt;BR /&gt;
&lt;BR /&gt;
"Material,"&lt;BR /&gt;
" "&lt;BR /&gt;
"Size: Width x Height x Deep or Thickness, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Element Type or Name, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Purposes, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Located at..."&lt;BR /&gt;
" "&lt;BR /&gt;
"Color and Finishes definition, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Provider and reference, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Installation or Construction notes."&lt;BR /&gt;
&lt;BR /&gt;
!!!!--------&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;-------------- REPLACE THE TEXT ABOVE --------&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;-------!!!!!&lt;BR /&gt;
!!!!--------&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;------- AND SAVE AS, WITH A DIFERENT NAME --------&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;-------!!!!!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ENDPARAGRAPH&lt;BR /&gt;
&lt;BR /&gt;
IF LABEL_TEXT_ALIGN=1 THEN&lt;BR /&gt;
GLAS=4&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF LABEL_TEXT_ALIGN=3 THEN&lt;BR /&gt;
GLAS=6&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF LABEL_TEXT_ALIGN=2 THEN&lt;BR /&gt;
GLAS=8&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF LABEL_TEXT_ALIGN=4 THEN&lt;BR /&gt;
GLAS=4&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
IF HOR THEN&lt;BR /&gt;
AGL=270&lt;BR /&gt;
ELSE&lt;BR /&gt;
AGL=0&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
TEXTBLOCK "FIFI" 80*GLOB_SCALE/1000, GLAS, AGL, 1, 1, 0, "PARRAFO"&lt;BR /&gt;
&lt;BR /&gt;
RICHTEXT2 0,0, "FIFI"&lt;BR /&gt;
------------------&lt;BR /&gt;
&lt;BR /&gt;
Best Regards&lt;BR /&gt;
&lt;BR /&gt;
Nando&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/14447i74DD7D4B4E4E86AC/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Picture 2.png" title="Picture 2.png" /&gt;</description>
      <pubDate>Mon, 06 Jul 2009 09:23:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154615#M24254</guid>
      <dc:creator>Nando Mogollon</dc:creator>
      <dc:date>2009-07-06T09:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: GDL for a LABEL. help needed</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154616#M24255</link>
      <description>&lt;BLOCKQUOTE&gt;"NandoMogollon" wrote:&lt;BR /&gt;&lt;BR /&gt;
!!!!--------&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;-------------- REPLACE THE TEXT BELOW --------&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;-------!!!!!&lt;BR /&gt;
&lt;BR /&gt;
"Material,"&lt;BR /&gt;
" "&lt;BR /&gt;
"Size: Width x Height x Deep or Thickness, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Element Type or Name, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Purposes, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Located at..."&lt;BR /&gt;
" "&lt;BR /&gt;
"Color and Finishes definition, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Provider and reference, "&lt;BR /&gt;
" "&lt;BR /&gt;
"Installation or Construction notes."&lt;BR /&gt;
&lt;BR /&gt;
!!!!--------&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;-------------- REPLACE THE TEXT ABOVE --------&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;-------!!!!!&lt;BR /&gt;
!!!!--------&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;------- AND SAVE AS, WITH A DIFFERENT NAME --------&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;-------!!!!!&lt;BR /&gt;
&lt;BR /&gt;
Ideally, I would like to get back to the original idea of having a single object, and LINK each of the Texts above as Variables on an external file, like an excel file or a TXT file.&lt;BR /&gt;
With the GDL TEXT I/O ADD-ON it may be possible, but is out of my area of knowledge.&lt;BR /&gt;
&lt;BR /&gt;
In that case I would need to select the Spec wanted from a pop up menu on the settings of the label, not by choosing a different Label, but that's another story.&lt;BR /&gt;
&lt;BR /&gt;
I'm a bit busy by now, and probably I won't have time to keep developing this object. Feel free to do it. Just let me know if any of you can find a way to do the "Linking Trick". &lt;BR /&gt;
&lt;BR /&gt;
Best Regards&lt;BR /&gt;
&lt;BR /&gt;
Nando&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/14466iDB7FFAF49287C06D/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Picture 3.png" title="Picture 3.png" /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 06 Jul 2009 10:30:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-for-a-LABEL-help-needed/m-p/154616#M24255</guid>
      <dc:creator>Nando Mogollon</dc:creator>
      <dc:date>2009-07-06T10:30:20Z</dc:date>
    </item>
  </channel>
</rss>

