<?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 Label that reads any parameter on an object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129650#M13011</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
I've recently started working with Archicad (17) and I've come across a problem. At my workplace, we need to be able to display quite a lot of information on the drawing in 2D, information that is contained within objects. In Archicad I have only found the standard labeler that only displays the ID of the object and that it can only display 1 label per object.&lt;BR /&gt;
&lt;BR /&gt;
For example I may need to show on the drawing that this object is a SINK and I would maybe also display that this object will have liquids and gases connected to it. For example I would have small texts saying &lt;BR /&gt;
BL, KV, TL (Swedish so don't mind the letters). This is information that I store in the object and it would be very handy to have a label that could simply read from a chosen parameter.&lt;BR /&gt;
&lt;BR /&gt;
So I'm looking for someone out there that knows alot about GDL, I've only had 1 days worth of a course on it and I'm very limited on the basics of it.&lt;BR /&gt;
&lt;BR /&gt;
What I need is:&lt;BR /&gt;
* Text label that reads 1 row of a parameter that is conatined within the selected object.&lt;BR /&gt;
* Label can be moved and rotated manually&lt;BR /&gt;
It is managable to say that for example a parameter-row that I've named Liquids1 can have it's own label connected to it so that I would have say a list of 20 different labels connected to a certain parameter.&lt;BR /&gt;
&lt;BR /&gt;
What I'd like to be able to do:&lt;BR /&gt;
* I select the textlabel, connect it to my object. Get a dropdown list of all the usermade parameters that I can just choose from. (So I only need 1 GDL object)&lt;BR /&gt;
* Within the labeltool, change size and font of the text.&lt;BR /&gt;
* That I can lock in this text to the object so when I move or rotate the object the labeltext will stick with it.&lt;BR /&gt;
&lt;BR /&gt;
Anyone out there that has a solid idea how to atleast start this up and get it going?&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 27 Jan 2014 11:15:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-27T11:15:55Z</dc:date>
    <item>
      <title>Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129650#M13011</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
I've recently started working with Archicad (17) and I've come across a problem. At my workplace, we need to be able to display quite a lot of information on the drawing in 2D, information that is contained within objects. In Archicad I have only found the standard labeler that only displays the ID of the object and that it can only display 1 label per object.&lt;BR /&gt;
&lt;BR /&gt;
For example I may need to show on the drawing that this object is a SINK and I would maybe also display that this object will have liquids and gases connected to it. For example I would have small texts saying &lt;BR /&gt;
BL, KV, TL (Swedish so don't mind the letters). This is information that I store in the object and it would be very handy to have a label that could simply read from a chosen parameter.&lt;BR /&gt;
&lt;BR /&gt;
So I'm looking for someone out there that knows alot about GDL, I've only had 1 days worth of a course on it and I'm very limited on the basics of it.&lt;BR /&gt;
&lt;BR /&gt;
What I need is:&lt;BR /&gt;
* Text label that reads 1 row of a parameter that is conatined within the selected object.&lt;BR /&gt;
* Label can be moved and rotated manually&lt;BR /&gt;
It is managable to say that for example a parameter-row that I've named Liquids1 can have it's own label connected to it so that I would have say a list of 20 different labels connected to a certain parameter.&lt;BR /&gt;
&lt;BR /&gt;
What I'd like to be able to do:&lt;BR /&gt;
* I select the textlabel, connect it to my object. Get a dropdown list of all the usermade parameters that I can just choose from. (So I only need 1 GDL object)&lt;BR /&gt;
* Within the labeltool, change size and font of the text.&lt;BR /&gt;
* That I can lock in this text to the object so when I move or rotate the object the labeltext will stick with it.&lt;BR /&gt;
&lt;BR /&gt;
Anyone out there that has a solid idea how to atleast start this up and get it going?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jan 2014 11:15:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129650#M13011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-27T11:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129651#M13012</link>
      <description>I think you have to contact "Master Script".....&lt;A href="http://www.masterscript.nl/" target="_blank"&gt;http://www.masterscript.nl/&lt;/A&gt;.&lt;BR /&gt;
They have made few useful LABELS.</description>
      <pubDate>Mon, 27 Jan 2014 13:19:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129651#M13012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-27T13:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129652#M13013</link>
      <description>&lt;BLOCKQUOTE&gt;andro55 wrote:&lt;BR /&gt;I think you have to contact "Master Script".....&lt;A href="http://www.masterscript.nl/" target="_blank"&gt;http://www.masterscript.nl/&lt;/A&gt;.&lt;BR /&gt;
They have made few useful LABELS.&lt;/BLOCKQUOTE&gt;

I looked in to their script called Label Everything but this seems a bit too much.&lt;BR /&gt;
&lt;BR /&gt;
Is it really that hard to make a text strip that automaticly reads a parameter on an object.&lt;BR /&gt;
I feel like it should be very basic, It doesn't need to autorotate based on stuff, read everything connected to an object or have markers connected to it.&lt;BR /&gt;
&lt;BR /&gt;
As I said, I only did a 1 day GDL course and have some coding experience from way back in school so I'm really just looking for some pointers on what strings I should take a look at if noones actually done a GDL object like this before.</description>
      <pubDate>Mon, 27 Jan 2014 13:29:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129652#M13013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-27T13:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129653#M13014</link>
      <description>Hi there.&lt;BR /&gt;
If you are looking for pointers to get started, there are a lot of people in this community that will gladly help you get going.&lt;BR /&gt;
&lt;BR /&gt;
It is really not that hard to do what you want, but it will take a little time and patience and a lot of reading and trial &amp;amp; error.&lt;BR /&gt;
&lt;BR /&gt;
The first thing I would say: keep your GDL reference guide open at all times &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; You will need it. Check out the Text Element section in the guide, it has the keywords you'll need to grab the object's parameter's content and display it as text in your label (such as text2, richtext2; and others like SET STYLE, DEFINE STYLE, PARAGRAPH, TEXTBLOCK)&lt;BR /&gt;
&lt;BR /&gt;
Remember to make your new scripted object a Label subtype, this if you really want it to be attached to your object and to be recognized as a label by the label tool.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps you get started.&lt;BR /&gt;
Feel free to ask!</description>
      <pubDate>Mon, 27 Jan 2014 15:53:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129653#M13014</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2014-01-27T15:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129654#M13015</link>
      <description>Thank you for the pointers.&lt;BR /&gt;
&lt;BR /&gt;
I've been looking around a bit and I'm not quite sure what I've gotten myself in to &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
What I've done is a new object that is subtype Label.&lt;BR /&gt;
&lt;BR /&gt;
Here I've been messing around with &lt;BR /&gt;
Text2 aswell as the =REQUEST ("ASSOCLP_PARVALUE",...) - Can't seem to find out how to use this appropriatly&lt;BR /&gt;
Also I made an attempt with a = str(...)&lt;BR /&gt;
&lt;BR /&gt;
But I can't seem to put the pieces together. the GDL Reference Guide isn't very Rookie-friendly &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I've read up that I need to have the exact same parameters in both my label object and my objects were I want to read information from for it to match up.&lt;BR /&gt;
&lt;BR /&gt;
Is it important to set the style of the text? For now I'd just like to see if I can get the label to read stuff.&lt;BR /&gt;
&lt;BR /&gt;
Say I had a list of parameters on all my objects that are identical that reads for example rows:&lt;BR /&gt;
&lt;BR /&gt;
VVS1&lt;BR /&gt;
VVS2&lt;BR /&gt;
EL1&lt;BR /&gt;
EL2&lt;BR /&gt;
- This rows are texts that are blank in the objectlibrary and I want to type in information in the object itself&lt;BR /&gt;
&lt;BR /&gt;
I have my labeltool that simply reads the parameter VVS1 and displays the information written in the object.&lt;BR /&gt;
 - (Advanced would be to select which of the VVS1, VVS2, EL1 and EL2 to display from the objects parameters)&lt;BR /&gt;
&lt;BR /&gt;
Pointers and ideas?</description>
      <pubDate>Tue, 28 Jan 2014 14:08:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129654#M13015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-28T14:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129655#M13016</link>
      <description>Documentation about Request ASSOCPAR_VALUE has an error.&lt;BR /&gt;
There is missing "" there I do not remember where - open any marker object and search for the command.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Tue, 28 Jan 2014 15:06:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129655#M13016</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2014-01-28T15:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129656#M13017</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I've been messing around and looking at other markers and I feel like I've gotten somewhere overall but I still can't seem to fetch information with the request.&lt;BR /&gt;
&lt;BR /&gt;
Can't seem to find much information on this in either the GDL ref guide or via google.&lt;BR /&gt;
&lt;BR /&gt;
I'm looking at this:&lt;BR /&gt;
If link_att=`Media` Then&lt;BR /&gt;
	na=request("Assoclp_parvalue", "Media", naminda, typea, flaga, dim1a, dim2a, vala)&lt;BR /&gt;
&lt;BR /&gt;
What is the na=request, do I need to reference this in somewhere else?&lt;BR /&gt;
&lt;BR /&gt;
What is all of these: naminda, typea, flaga, dim1a, dim2a, vala?&lt;BR /&gt;
&lt;BR /&gt;
link_att is the parameter that will display on the drawing and it works with my other setups with the name of the object and the ID but I can't seem to fetch information from my parameter named Media which I have in both the object and the marker</description>
      <pubDate>Wed, 29 Jan 2014 11:00:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129656#M13017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-29T11:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129657#M13018</link>
      <description>My next attempt was this:&lt;BR /&gt;
If link_att=`Media` Then&lt;BR /&gt;
Media = ""&lt;BR /&gt;
nm=Request ("Assoclp_parvalue", "Media", index, type, flags, dim1, dim2, Media)&lt;BR /&gt;
&lt;BR /&gt;
TEXT2 0,0,Media &lt;BR /&gt;
EndIf&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have the Media parameter in both my object and my label&lt;BR /&gt;
This instead of not working at all gives me a 0 on the drawing</description>
      <pubDate>Wed, 29 Jan 2014 11:38:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129657#M13018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-29T11:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129658#M13019</link>
      <description>Hi.&lt;BR /&gt;
I've been a little busy to reply. Before downloading, please read the explanation and try to do it yourself. If you can't, download and open to see how it works. Here it goes:&lt;BR /&gt;
&lt;BR /&gt;
It may seem that the GDL guide isn't friendly, but you really need to read it carefully and fully understand how each keyword works.&lt;BR /&gt;
&lt;BR /&gt;
The request is the correct one. Did you see the explanation of the REQUEST function? It says that its return value is the number of correctly retrieved values, 0 otherwise. So if you write n=REQUEST (something, bla, bla...) then if your request and parameters are correct, the value of n will be how many values you got right, may be 1, 2, etc. So if n=0 something didn't work as expected. If n&amp;gt;0, "you've got values" &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
To keep the solution simple:&lt;BR /&gt;
Make one object. Create one parameter that will store the values you'll want to display, name it "sampleParameter". Write something simple in the 2D script so you can select the object in plan, like:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;circle2 0,0,0.10
hotspot2 0,0
&lt;/PRE&gt;

In the parameter script, give your parameter the values you will want to display, something like:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;VALUES 'sampleParameter' 'fv','dc','sx','az'
&lt;/PRE&gt;

If you want, you could show the text to see if it works:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;text2 0,0,sampleParameter
&lt;/PRE&gt;

Also, if you want, you could add a second boolean parameter to turn of the text in this object, just to make it simpler to work in the label; so make a new boolean parameter and name it "showSampleText" and leave it on by default, then change the text2 line in 2d script to:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;IF showSampleText THEN text2 0,0,sampleParameter
&lt;/PRE&gt;

Save it and place it on plan.&lt;BR /&gt;
&lt;BR /&gt;
Now the label.&lt;BR /&gt;
&lt;BR /&gt;
Make a new object, label subtype. No parameters needed for this simple test. You request, from the associated object, the &lt;B&gt;value&lt;/B&gt; from the "sampleParameter", and store it in the last variable: "requestedValue"; as the GDL guide describes it. The DUMMY parts, you don't need right now.&lt;BR /&gt;
&lt;BR /&gt;
In the masterScript, write:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;requestedValue=""
n = REQUEST("ASSOCLP_PARVALUE", "sampleParameter", DUMMY_name_index, DUMMY_type, DUMMY_flags, DUMMY_dim1, DUMMY_dim2, requestedValue)
&lt;/PRE&gt;

So with this, you have the value of the "sampleParameter" stored in the "requestedValue" variable, that gets initialized with requestedValue=""&lt;BR /&gt;
&lt;BR /&gt;
Now in the 2d script, just write:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;text2 0,0,requestedValue
&lt;/PRE&gt;

Save your new label.&lt;BR /&gt;
&lt;BR /&gt;
Select the object you created, label it; select the label and from the label type, select the newly saved label. It should display the value of the parameter from the object. If you open the object's properties and change the value, the label should update.&lt;BR /&gt;
&lt;BR /&gt;
From here, you can add other bells &amp;amp; whistles to your lablel.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps. &lt;BR /&gt;
Best regards. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 29 Jan 2014 17:11:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129658#M13019</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2014-01-29T17:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129659#M13020</link>
      <description>Thanks a bunch sinceV6,&lt;BR /&gt;
&lt;BR /&gt;
I will take a look when work allows it and get back to you!</description>
      <pubDate>Thu, 30 Jan 2014 08:14:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129659#M13020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-30T08:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129660#M13021</link>
      <description>Thanks again, this looks solid and simple enough to understand.&lt;BR /&gt;
&lt;BR /&gt;
I do have some further questions, I'd like to be able to add a bunch of parameters to one mainparameter and use the label to display the mainparameter&lt;BR /&gt;
&lt;BR /&gt;
I simply tried this,&lt;BR /&gt;
In the object I have this written in the master script:&lt;BR /&gt;
&lt;BR /&gt;
sampleParameter1 = sampleParameter2 + sampleParameter3 + sampleParameter4&lt;BR /&gt;
&lt;BR /&gt;
after changing it up to look correctly in script with the label I can't quite get it to transfer over.&lt;BR /&gt;
&lt;BR /&gt;
It displays correctly in the objects SampleText that you made but the label only displays something if I manually write something in the objects sampleParameter1&lt;BR /&gt;
&lt;BR /&gt;
Does my addition above not work as I think it should?&lt;BR /&gt;
&lt;BR /&gt;
Also, two more sidequestions.&lt;BR /&gt;
Where can I change the texthight on the label?&lt;BR /&gt;
If I want to add spaces between my sampleParameter2, 3 and 4 - how do I do this?</description>
      <pubDate>Thu, 30 Jan 2014 14:26:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129660#M13021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-30T14:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129661#M13022</link>
      <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
In the label, you are calling the value of the parameter as it appears in the parameter list, so what you wrote in the master script is working but is not passing that information to your parameter. For this, use the parameter script with the PARAMETERS keyword. The label should then be able to grab the contents of the combined values.&lt;BR /&gt;
&lt;BR /&gt;
The text height might be defined within the script using style definition and parameters or the values from the label settings dialog. Read the keywords I pointed out earlier and the global variables regarding labels.&lt;BR /&gt;
&lt;BR /&gt;
As for spaces, you might simply state:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;sampleParameter1 = sampleParameter2 + " " + sampleParameter3 + " " + sampleParameter4
&lt;/PRE&gt;

or add symbols in between.
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;sampleParameter1 = sampleParameter2 + " + " + sampleParameter3 + " + " + sampleParameter4
&lt;/PRE&gt;

There are many ways you could move on from here as to how to approach building the parameters in each object and in the label. For instance, instead of creating parameters AND writing that code in each object to be labeled, I would organize it so that I just create as few parameters/code as needed in each object, and use the label to get values from them and build the output there, as maintaining the code in the label -a single object- will be simpler.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Thu, 30 Jan 2014 18:46:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129661#M13022</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2014-01-30T18:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129662#M13023</link>
      <description>Thanks again for your time, I really appreciate it.&lt;BR /&gt;
&lt;BR /&gt;
I'll dig down and work some more on this the coming week.</description>
      <pubDate>Fri, 31 Jan 2014 07:36:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129662#M13023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T07:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129663#M13024</link>
      <description>One thing that I just thought off.&lt;BR /&gt;
&lt;BR /&gt;
if I just use the text2 command, and set it at 0,0 coordinates. Can I somehow give it hotspots so that they can be moved around individually from the object itself?</description>
      <pubDate>Fri, 31 Jan 2014 09:21:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129663#M13024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T09:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129664#M13025</link>
      <description>It is possible:&lt;BR /&gt;
&lt;BR /&gt;
you must add a "diamant" hotspot. This is the code in 2D Script window:&lt;BR /&gt;
&lt;BR /&gt;
circle2 0,0,0.10&lt;BR /&gt;
hotspot2 0,0&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
	!Text hotspots&lt;BR /&gt;
unID = 1&lt;BR /&gt;
	HOTSPOT2 0, txty, unID,  txtx,  1+128   : unID=unID+1&lt;BR /&gt;
	HOTSPOT2 txtx, txty, unID,  txtx,  2    : unID=unID+1&lt;BR /&gt;
	HOTSPOT2 -1, txty, unID,  txtx,  3    : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
	HOTSPOT2 txtx, 0, unID,  txty,  1+128   : unID=unID+1&lt;BR /&gt;
	HOTSPOT2 txtx, txty, unID,  txty,  2    : unID=unID+1&lt;BR /&gt;
	HOTSPOT2 txtx, -1, unID,  txty,  3    : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
IF showSampleText THEN text2 txtx, txty, sampleParameter&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
In the Parameters Window add 2 variables for text position:&lt;BR /&gt;
               " txtx" and "txty"</description>
      <pubDate>Fri, 31 Jan 2014 12:48:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129664#M13025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T12:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129665#M13026</link>
      <description>2D Script Window:&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/9712iD3E3A52256D34688/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Object with parameters 1_Text Hotspot  02.jpg" title="Object with parameters 1_Text Hotspot  02.jpg" /&gt;</description>
      <pubDate>Fri, 31 Jan 2014 12:49:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129665#M13026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T12:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129666#M13027</link>
      <description>Works like a charm!&lt;BR /&gt;
Now I just need to sort out how I work it out for all of my parameter text2's individually from eachother but I guess that will just need some repeating and creations of a bunch of new txtx and y's parameters and more HOTSPOT2's.</description>
      <pubDate>Fri, 31 Jan 2014 15:08:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129666#M13027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T15:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129667#M13028</link>
      <description>&lt;BLOCKQUOTE&gt;andro55 wrote:&lt;BR /&gt;
	!Text hotspots&lt;BR /&gt;
unID = 1&lt;BR /&gt;
	HOTSPOT2 0, txty, unID,  txtx,  1+128   : unID=unID+1&lt;BR /&gt;
	HOTSPOT2 txtx, txty, unID,  txtx,  2    : unID=unID+1&lt;BR /&gt;
	HOTSPOT2 -1, txty, unID,  txtx,  3    : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
	HOTSPOT2 txtx, 0, unID,  txty,  1+128   : unID=unID+1&lt;BR /&gt;
	HOTSPOT2 txtx, txty, unID,  txty,  2    : unID=unID+1&lt;BR /&gt;
	HOTSPOT2 txtx, -1, unID,  txty,  3    : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
IF showSampleText THEN text2 txtx, txty, sampleParameter&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
In the Parameters Window add 2 variables for text position:&lt;BR /&gt;
               " txtx" and "txty"&lt;/BLOCKQUOTE&gt;

I have done this, and it works. But I have several parameters that I would like to add individual hotspots to, is this possible?&lt;BR /&gt;
Currently I have this:&lt;BR /&gt;
unID = 1&lt;BR /&gt;
HOTSPOT2 0, txty, unID, txtx, 1+128 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 txtx, txty, unID, txtx, 2 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 -1, txty, unID, txtx, 3 : unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 txtx, 0, unID, txty, 1+128 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 txtx, txty, unID, txty, 2 : unID=unID+1&lt;BR /&gt;
HOTSPOT2 txtx, -1, unID, txty, 3 : unID=unID+1 &lt;BR /&gt;
&lt;BR /&gt;
IF showSampleText1 THEN text2 txtx+0.1, txty+0.1,sampleParameter1&lt;BR /&gt;
&lt;BR /&gt;
IF showSampleText2 THEN text2 txtx+0.2, txty+0.2,sampleParameter2&lt;BR /&gt;
&lt;BR /&gt;
IF showSampleText3 THEN text2 txtx+0.3, txty+0.3,sampleParameter3&lt;BR /&gt;
&lt;BR /&gt;
And I have the 2 parameters for txtx and txty for the text positions&lt;BR /&gt;
&lt;BR /&gt;
------&lt;BR /&gt;
With this I have tried editing these to have multiple parameters, for example: txtx1, txtx2 etc. and adding several more rows for the hotspots but I can't seem to get it to work. Doing my head in here.&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to add hotspots to several text2 commands within 1 object?</description>
      <pubDate>Thu, 13 Feb 2014 15:07:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129667#M13028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-13T15:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129668#M13029</link>
      <description>You need only 1 Hotspot for several lines of text.&lt;BR /&gt;
Here´s one example:&lt;BR /&gt;
&lt;BR /&gt;
Master Script:&lt;BR /&gt;
&lt;BR /&gt;
!!! ---------- text ----------&lt;BR /&gt;
	flag_1 = "%~" + STR(decimal, 3, 0)  	! formatstring (myne)&lt;BR /&gt;
!	flag_2 = "%." + STR(decimal, 3, 0)  		! formatstring (original)&lt;BR /&gt;
&lt;BR /&gt;
	DEFINE STYLE "4"  fontType, hText, 3, 0&lt;BR /&gt;
	DEFINE STYLE "5"  fontType, hText, 5, 0&lt;BR /&gt;
	DEFINE STYLE "6"  fontType, hText, 1, 0&lt;BR /&gt;
&lt;BR /&gt;
	x = REQUEST("Height_of_style", "5", height)&lt;BR /&gt;
	height = height * GLOB_SCALE/1000&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
2D Script:&lt;BR /&gt;
&lt;BR /&gt;
!!! ========== Shaft Description - OPIS JAŠKA (FI K.P. K.D.) ==========&lt;BR /&gt;
symo = (SYMB_MIRRORED*2-1)&lt;BR /&gt;
&lt;BR /&gt;
	ROT2 SYMB_ROTANGLE*symo   ! fixed position &lt;BR /&gt;
	MUL2 -symo, 1&lt;BR /&gt;
&lt;BR /&gt;
!!! ------------ hotspot for Shaft Description location -----------------&lt;BR /&gt;
		ADD2 fi_jaska*0.25, -fi_jaska*0.25&lt;BR /&gt;
  	HOTSPOT2      0, opis_y, unID, opis_x, 1+128	: unID = unID+1	! base x&lt;BR /&gt;
	HOTSPOT2 opis_x, opis_y, unID, opis_x, 2     	: unID = unID+1	! moving x&lt;BR /&gt;
	HOTSPOT2     -1, opis_y, unID, opis_x, 3     	: unID = unID+1	! ref x&lt;BR /&gt;
&lt;BR /&gt;
	HOTSPOT2 opis_x,      0, unID, opis_y, 1+128 	: unID = unID+1	! base y&lt;BR /&gt;
	HOTSPOT2 opis_x, opis_y, unID, opis_y, 2     	: unID = unID+1	! moving y&lt;BR /&gt;
	HOTSPOT2 opis_x,     -1, unID, opis_y, 3     	: unID = unID+1	! ref y&lt;BR /&gt;
&lt;BR /&gt;
	ADD2 opis_x, opis_y&lt;BR /&gt;
&lt;BR /&gt;
	STYLE "4"&lt;BR /&gt;
&lt;BR /&gt;
	len1 = STW("=") * GLOB_SCALE/1000&lt;BR /&gt;
&lt;BR /&gt;
	TEXT2 -len1, height*3, tip + " ¤"&lt;BR /&gt;
	TEXT2 -len1, height*2, "K.P.= " &lt;BR /&gt;
	TEXT2 -len1, height*1, "K.D.= "&lt;BR /&gt;
 &lt;BR /&gt;
	len2 = STW("=")*GLOB_SCALE/1000&lt;BR /&gt;
&lt;BR /&gt;
	STYLE "6"&lt;BR /&gt;
	&lt;BR /&gt;
	lenT1 = STW(STR(flag_1, fi_jaska)) * GLOB_SCALE/1000&lt;BR /&gt;
	lenT2 = STW(STR(flag_1, kota_pokrova)) * GLOB_SCALE/1000&lt;BR /&gt;
	lenT3 = STW(STR(flag_1, kota_dna)) * GLOB_SCALE/1000&lt;BR /&gt;
	lenT  = MAX(lenT1, lenT2, lenT3)&lt;BR /&gt;
&lt;BR /&gt;
	len3 = len2 + lenT&lt;BR /&gt;
&lt;BR /&gt;
	TEXT2  len3, height*3, str(flag_1, fi_jaska * 100)&lt;BR /&gt;
	TEXT2  len3, height*2, str(flag_1, kota_pokrova)&lt;BR /&gt;
	TEXT2  len3, height*1, str(flag_1, kota_dna)&lt;BR /&gt;
&lt;BR /&gt;
	DEL 2&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/9674iAC758720715B247F/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Text in GDL_02.jpg" title="Text in GDL_02.jpg" /&gt;</description>
      <pubDate>Thu, 13 Feb 2014 20:30:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129668#M13029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-13T20:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Label that reads any parameter on an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129669#M13030</link>
      <description>Hi.&lt;BR /&gt;
If I understand correctly, you want your 3 texts to be independent, with a hotspot for each text element, right?&lt;BR /&gt;
&lt;BR /&gt;
The best approach would be arrays. Each editable hotspot needs to have its associated parameter in the parameter list. If you want 3 text elements and each with 2 drag components (X and Y), you would need either 6 parameters to control every text element or an array that carries these values.&lt;BR /&gt;
&lt;BR /&gt;
I would create a two dimension array, 3 rows, 2 columns. With this single parameter you could reference the needed coordinates for each text.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Thu, 13 Feb 2014 23:17:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-reads-any-parameter-on-an-object/m-p/129669#M13030</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2014-02-13T23:17:59Z</dc:date>
    </item>
  </channel>
</rss>

