<?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: Lamp and Light in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147378#M24156</link>
    <description>Thank you so much.&lt;BR /&gt;
I don't understand why Graphisoft don't do this when they prepare the object, and in general when they create the library.&lt;BR /&gt;
Thanks again.</description>
    <pubDate>Wed, 17 Jun 2009 13:29:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-06-17T13:29:48Z</dc:date>
    <item>
      <title>Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147376#M24154</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi. Does anybody know how I can rotate the text in the object light when it's showing in the Floor Plan like a RCP symbol?&lt;BR /&gt;
Thank you for your help.&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/73502i2AFA68D205F900A6/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Lamp.jpg" title="Lamp.jpg" /&gt;</description>
      <pubDate>Wed, 17 Jun 2009 03:12:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147376#M24154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-17T03:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147377#M24155</link>
      <description>giuseppe,&lt;BR /&gt;
&lt;BR /&gt;
To do this open up the object and save it as a new object preferable to someplace that will be loaded when you need it. In the 2D script look for the variable used for the text (i will call it textparameter but this will not be the name in the part) from the parameters table. You should see something like:&lt;BR /&gt;
&lt;BR /&gt;
  TEXT2 x, y, textparameter&lt;BR /&gt;
&lt;BR /&gt;
Just before this command you can add a "ROT2 180" command. Follow the TEXT2 command with a "DEL 1". This will essentially flip the text 180 degrees. Better still, add a new rotation parameter to the parameter table and use "ROT2 rotation_parameter" instead of 180. This will allow the user to rotate the text to any desired angle. &lt;BR /&gt;
&lt;BR /&gt;
You can also go further and allow the text to be rotated so it is upright all the time automatically, or when a Boolean variable is turned on...the options are endless.&lt;BR /&gt;
&lt;BR /&gt;
HTH</description>
      <pubDate>Wed, 17 Jun 2009 03:21:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147377#M24155</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2009-06-17T03:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147378#M24156</link>
      <description>Thank you so much.&lt;BR /&gt;
I don't understand why Graphisoft don't do this when they prepare the object, and in general when they create the library.&lt;BR /&gt;
Thanks again.</description>
      <pubDate>Wed, 17 Jun 2009 13:29:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147378#M24156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-17T13:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147379#M24157</link>
      <description>Eric, I add the parameter that you told me but there is an  error on the script and the new object it is a black spot. &lt;BR /&gt;
I am sure I made a mistake or I misunderstood what you said.&lt;BR /&gt;
Please can you be more clear?&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 17 Jun 2009 14:16:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147379#M24157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-17T14:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147380#M24158</link>
      <description>giuseppe,&lt;BR /&gt;
&lt;BR /&gt;
Which part are you using? Then I can give you the exact change.</description>
      <pubDate>Thu, 18 Jun 2009 05:09:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147380#M24158</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2009-06-18T05:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147381#M24159</link>
      <description>Hi! Thanks to be patience, and for my delay on your answer.&lt;BR /&gt;
The light are:&lt;BR /&gt;
Wall Lamp 02 12&lt;BR /&gt;
Wall Lamp 05 12&lt;BR /&gt;
Halogen Recessed 12&lt;BR /&gt;
Hanging  Lamp 01 12&lt;BR /&gt;
Recessed Spot 12&lt;BR /&gt;
Fluorescence Suspended 12&lt;BR /&gt;
Fluorescence Wall 12&lt;BR /&gt;
Fluorescence Recessed 01 12&lt;BR /&gt;
Spot ceiling 12&lt;BR /&gt;
Chandelier 12&lt;BR /&gt;
Thanks for your help and for your time</description>
      <pubDate>Tue, 23 Jun 2009 13:16:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147381#M24159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-23T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147382#M24160</link>
      <description>giuseppe,&lt;BR /&gt;
&lt;BR /&gt;
OK, Take a look at the Wall Lamp 02 12 object. The steps to changing the text behavior here are as follows:&lt;BR /&gt;
1. Select the object in your project.&lt;BR /&gt;
&lt;BR /&gt;
2. With the object selected open the object. To do this go to File&amp;gt;Libraries and Objects&amp;gt;Open Object. This will open the GDL window. &lt;BR /&gt;
&lt;BR /&gt;
3. Here look at the parameter table to find the parameter given to the text displayed (image 1).&lt;BR /&gt;
&lt;BR /&gt;
4. Switch to the 2D script window - click where it says 2D script on the left hand side. &lt;BR /&gt;
&lt;BR /&gt;
5. Do a Find and Replace to locate the text parameter (choose the whole word option here). Alternately you can do a Find and Replace for the command "text2" (without quotes). &lt;BR /&gt;
(image 2)&lt;BR /&gt;
&lt;BR /&gt;
6. This should take you to the following: &lt;PRE&gt;text2 txt_pos_x, txt_pos_y, txt&lt;/PRE&gt; Change this bit of code to the following: &lt;PRE&gt;text2 0, 0, txt&lt;/PRE&gt;
(image 3)&lt;BR /&gt;
&lt;BR /&gt;
7. Just before this line add the following: &lt;PRE&gt;ADD2 txt_pos_x, txt_pos_y
		ROT2 rotation&lt;/PRE&gt;
(image 3)&lt;BR /&gt;
&lt;BR /&gt;
8. Follow the text2 command line with the following: &lt;PRE&gt;DEL 2&lt;/PRE&gt;
(image 3)&lt;BR /&gt;
&lt;BR /&gt;
9. Go back to the parameter table that the object first opened to. Here add the new parameter "rotation" (without quotes). To do this click the NEW button  at the top of the GDL window. This will add a new parameter to the bottom of the parameter list. Overwrite the default parameter name with the name rotation. &lt;BR /&gt;
(image 4)&lt;BR /&gt;
&lt;BR /&gt;
10. Select the symbol in the TYPE column. You will notice that there is a flippy triangle now. If you click the symbol again you will get a popup chart of parameter types. Select the second symbol for the angle type. &lt;BR /&gt;
(image 4)&lt;BR /&gt;
&lt;BR /&gt;
11. Under the NAME column give this new parameter a name that will make sense to the user. This is what you will see when using the part. &lt;BR /&gt;
(image 4)&lt;BR /&gt;
&lt;BR /&gt;
12. Save the part under a new name and enjoy the new flexibility of the part.&lt;BR /&gt;
&lt;BR /&gt;
Here is the first light done for you.</description>
      <pubDate>Wed, 24 Jun 2009 01:29:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147382#M24160</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2009-06-24T01:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147383#M24161</link>
      <description>Here is the first one.</description>
      <pubDate>Wed, 24 Jun 2009 01:30:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147383#M24161</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2009-06-24T01:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147384#M24162</link>
      <description>Here is a slight variation that will keep the text upright always when the parameter TxtUp is set to on. &lt;BR /&gt;

&lt;PRE&gt;	ADD2 txt_pos_x,txt_pos_y
	IF TxtUp=1 THEN : ROT2 w~*(V~*2-1) : ENDIF 
	text2 0,0,txt
	DEL 1+TxtUp&lt;/PRE&gt;

This is a bit easier to use but less flexible for odd conditions where you perhaps don't want the text all the way upright.</description>
      <pubDate>Wed, 24 Jun 2009 01:59:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147384#M24162</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2009-06-24T01:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147385#M24163</link>
      <description>Thank you so much for your help and I will try to modify some of the others objects following your instructions, and I hope I can do it.&lt;BR /&gt;
Thanks again for you help.</description>
      <pubDate>Wed, 24 Jun 2009 12:55:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147385#M24163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-24T12:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147386#M24164</link>
      <description>Good luck. Remember to work on copies of the original objects. Also, use the two I modified as examples and all should be well. If not, you know where I am.</description>
      <pubDate>Wed, 24 Jun 2009 13:36:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147386#M24164</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2009-06-24T13:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147387#M24165</link>
      <description>Hi! I have an other question did you know how change the size of 2D symbol rcp?&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 24 Jun 2009 19:12:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147387#M24165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-24T19:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147388#M24166</link>
      <description>At least for the way the first part is written, the quick and dirty way is to define a parameter to scale the symbol, (ie "scale") and then add the following:
&lt;PRE&gt;MUL2 scale, scale
&lt;/PRE&gt;
Just before the line in the 2D script that reads as follows:
&lt;PRE&gt;IF gs_detlevel_2D=`Electric Symbol` then
&lt;/PRE&gt;
After the very last line in the 2D script add:
&lt;BLOCKQUOTE&gt;DEL 1&lt;/BLOCKQUOTE&gt;

In the parameter table you will need to add the parameter "scale" and set the type to be a real number.&lt;BR /&gt;
&lt;BR /&gt;
Attached is an fast example.</description>
      <pubDate>Thu, 25 Jun 2009 01:46:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147388#M24166</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2009-06-25T01:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lamp and Light</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147389#M24167</link>
      <description>Thank you so much.&lt;BR /&gt;
I really appreciate you help&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 25 Jun 2009 18:30:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Lamp-and-Light/m-p/147389#M24167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-25T18:30:41Z</dc:date>
    </item>
  </channel>
</rss>

