<?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: Adding rotation of text to a custom light fixt object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-rotation-of-text-to-a-custom-light-fixt-object/m-p/258161#M10065</link>
    <description>As with anything in Archicad it can get as complicated as you want.&lt;BR /&gt;
&lt;BR /&gt;
You can automate it by simply adding a ROT command before the TEXT command that rotates it the negative angle of what you have rotated the symbol by.&lt;BR /&gt;
&lt;BR /&gt;
i.e.&lt;BR /&gt;

&lt;PRE&gt;ROT2 -symb_rotangle
TEXT2 0,0, LIGHTTYPE
DEL 1
&lt;/PRE&gt;

&lt;BR /&gt;
The 0,0 in the TEXT2 command is your text position in relation to your symbol - i.e. it maybe something like 0, 0.75 - I don't know what you have scripted.&lt;BR /&gt;
&lt;BR /&gt;
Or you could create a new angle parameter (rot_text) and then the user can type in an angle manually to rotate the text.&lt;BR /&gt;

&lt;PRE&gt;ROT2 rot_text
TEXT2 0,0, LIGHTTYPE
DEL 1
&lt;/PRE&gt;

&lt;BR /&gt;
You could automate this with a stretchy hotspot that the user can just drag on screen to rotate the text.&lt;BR /&gt;
&lt;BR /&gt;
You may also find that rotating the text will cause it to clash with your symbol - depends on the symbol rotation, text length and default text position.&lt;BR /&gt;
Then you may want to add parameters to move the text and even add stretchy hotspots to move the text.&lt;BR /&gt;
&lt;BR /&gt;
So you can see it can start getting more complicated.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The automatic rotation should work so long as the text is not too long and your default position is not too close to the symbol.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Wed, 01 Apr 2015 02:06:00 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2015-04-01T02:06:00Z</dc:date>
    <item>
      <title>Adding rotation of text to a custom light fixt object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-rotation-of-text-to-a-custom-light-fixt-object/m-p/258160#M10064</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;how do I do that?&lt;BR /&gt;
I've parametrically added the "text" so I can change it...but how do I add a parameter (without too much trouble) that allows the user to 'rotate' the text?&lt;BR /&gt;
&lt;BR /&gt;
Is it merely a word in front of the parameter "LIGHTTYPE" in the objects parameters or is it more complicated?&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/15174i5C58CFC750AD7398/image-size/large?v=v2&amp;amp;px=999" border="0" alt="LIGHT-SYMBOL-ROTATION.jpg" title="LIGHT-SYMBOL-ROTATION.jpg" /&gt;</description>
      <pubDate>Tue, 31 Mar 2015 19:19:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-rotation-of-text-to-a-custom-light-fixt-object/m-p/258160#M10064</guid>
      <dc:creator>rob2218</dc:creator>
      <dc:date>2015-03-31T19:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding rotation of text to a custom light fixt object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adding-rotation-of-text-to-a-custom-light-fixt-object/m-p/258161#M10065</link>
      <description>As with anything in Archicad it can get as complicated as you want.&lt;BR /&gt;
&lt;BR /&gt;
You can automate it by simply adding a ROT command before the TEXT command that rotates it the negative angle of what you have rotated the symbol by.&lt;BR /&gt;
&lt;BR /&gt;
i.e.&lt;BR /&gt;

&lt;PRE&gt;ROT2 -symb_rotangle
TEXT2 0,0, LIGHTTYPE
DEL 1
&lt;/PRE&gt;

&lt;BR /&gt;
The 0,0 in the TEXT2 command is your text position in relation to your symbol - i.e. it maybe something like 0, 0.75 - I don't know what you have scripted.&lt;BR /&gt;
&lt;BR /&gt;
Or you could create a new angle parameter (rot_text) and then the user can type in an angle manually to rotate the text.&lt;BR /&gt;

&lt;PRE&gt;ROT2 rot_text
TEXT2 0,0, LIGHTTYPE
DEL 1
&lt;/PRE&gt;

&lt;BR /&gt;
You could automate this with a stretchy hotspot that the user can just drag on screen to rotate the text.&lt;BR /&gt;
&lt;BR /&gt;
You may also find that rotating the text will cause it to clash with your symbol - depends on the symbol rotation, text length and default text position.&lt;BR /&gt;
Then you may want to add parameters to move the text and even add stretchy hotspots to move the text.&lt;BR /&gt;
&lt;BR /&gt;
So you can see it can start getting more complicated.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The automatic rotation should work so long as the text is not too long and your default position is not too close to the symbol.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 01 Apr 2015 02:06:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adding-rotation-of-text-to-a-custom-light-fixt-object/m-p/258161#M10065</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-04-01T02:06:00Z</dc:date>
    </item>
  </channel>
</rss>

