<?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: Independent HotSpot2 Rotation in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100980#M30277</link>
    <description>Thanks again for all your help!</description>
    <pubDate>Tue, 17 Jul 2007 16:06:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-07-17T16:06:09Z</dc:date>
    <item>
      <title>Independent HotSpot2 Rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100974#M30271</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I have a symbol representing an electrical outlet along with informational text.  The text has its own hotspots, so it is free to move independently of the symbol, but they are still restricted to the rotation of the symbol.   Ideally i would like to have one gdl object with one symbol and multiple text elements, each able to rotate and move independently of each other.  Can each hotspot group be rotated independently, like they can be moved independently?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:01:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100974#M30271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-17T14:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Independent HotSpot2 Rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100975#M30272</link>
      <description>&lt;BLOCKQUOTE&gt;A wrote:&lt;BR /&gt;I have a symbol representing an electrical outlet along with informational text.  The text has its own hotspots, so it is free to move independently of the symbol, but they are still restricted to the rotation of the symbol.   Ideally i would like to have one gdl object with one symbol and multiple text elements, each able to rotate and move independently of each other.  Can each hotspot group be rotated independently, like they can be moved independently?&lt;/BLOCKQUOTE&gt;

Through GDL, you can rotate any elements separately of any others. It's just a matter of grouping your ROT2 and DEL statements so that each hotspot/element is rotated independently.</description>
      <pubDate>Tue, 17 Jul 2007 14:57:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100975#M30272</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2007-07-17T14:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Independent HotSpot2 Rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100976#M30273</link>
      <description>Using a script like this...&lt;BR /&gt;
&lt;BR /&gt;
hotspot2 0, yy, UnID, xx, 1 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, xx, 2 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 -.1, 0, UnID, xx, 3 :UnID = UnID + 1&lt;BR /&gt;
&lt;BR /&gt;
hotspot2 xx, 0, UnID, yy, 1 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, yy, 2 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, -.1, UnID, yy, 3 :UnID = UnID + 1&lt;BR /&gt;
&lt;BR /&gt;
Text2 xx, yy, "text"&lt;BR /&gt;
&lt;BR /&gt;
...i was able to get my text to move seperately from my symbol. Is there a way for me to use...&lt;BR /&gt;
&lt;BR /&gt;
hotspot2 0, yy, UnID, xx, 1 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, xx, 2 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 -.1, 0, UnID, xx, 3 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, yy, UnID, xx,  4 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, xx, 5  :UnID = UnID + 1&lt;BR /&gt;
hotspot2 -.1, 0, UnID, xx, 6 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 -.1, 0, UnID, xx, 7 :UnID = UnID + 1&lt;BR /&gt;
	&lt;BR /&gt;
hotspot2 xx, 0, UnID, yy, 1 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, yy, 2 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, -.1, UnID, yy, 3 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, 0, UnID, yy, 4 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, yy, 5 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, -.1, UnID, yy, 6 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, -.1, UnID, yy, 6 :UnID = UnID + 1&lt;BR /&gt;
&lt;BR /&gt;
Text2 xx, yy, "text"&lt;BR /&gt;
&lt;BR /&gt;
...or something like that to also activate the angle type parameter for the individual hotspot groups?</description>
      <pubDate>Tue, 17 Jul 2007 15:17:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100976#M30273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-17T15:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Independent HotSpot2 Rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100977#M30274</link>
      <description>That works well for basic movement. If you want rotation, you will need to add a ROT2 line. The problem with that is that if you are placing Text at X, Y, then the rotation applies as well, placing it at the rotated X, Y.&lt;BR /&gt;
&lt;BR /&gt;
I find that I usually have to do something like:
&lt;PRE&gt;ADD2 X, Y
ROT2 ang
TEXT2 x, y, "Text"
DEL 2&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jul 2007 15:22:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100977#M30274</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2007-07-17T15:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Independent HotSpot2 Rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100978#M30275</link>
      <description>Thanks for your help and baring with me Tom.  I understand your suggestion, but that does not allow me to alter the movement or rotation of the text in the model window.  By using that hotspots I'm able to move a hotspot and a corresponding text.  I think if i can use the below correctly, I can also rotate a hotspot independently in the model window.  Is it possible?&lt;BR /&gt;
&lt;BR /&gt;
hotspot2 0, yy, UnID, xx, 1 + 128 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 xx, yy, UnID, xx, 2 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 -.1, 0, UnID, xx, 3 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 0, yy, UnID, xx, 4 + 128 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 xx, yy, UnID, xx, 5 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 -.1, 0, UnID, xx, 6 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 -.1, 0, UnID, xx, 7 :UnID = UnID + 1 &lt;BR /&gt;
&lt;BR /&gt;
hotspot2 xx, 0, UnID, yy, 1 + 128 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 xx, yy, UnID, yy, 2 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 0, -.1, UnID, yy, 3 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 xx, 0, UnID, yy, 4 + 128 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 xx, yy, UnID, yy, 5 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 0, -.1, UnID, yy, 6 :UnID = UnID + 1 &lt;BR /&gt;
hotspot2 0, -.1, UnID, yy, 6 :UnID = UnID + 1 &lt;BR /&gt;
&lt;BR /&gt;
Text2 xx, yy, "text" &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My full script is the following, and using the rotate tool in the mouse tracker  rotates the symbol and text together, just like the drag tool moves the two together.  But using the stretch tool allows me to move the hotspot and corresponding text separately, can i get a similar function to rotate to work separately from the symbol as well?&lt;BR /&gt;
&lt;BR /&gt;
Pen gs_cont_pentx&lt;BR /&gt;
Define Style "AC_STYLE1" cu_font_style, (6.75/72 * 25.4), 5, cu_font_bold&lt;BR /&gt;
Set Style "Ac_style1"&lt;BR /&gt;
&lt;BR /&gt;
hotspot2 0, yy, UnID, xx, 1 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, xx, 2 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 -.1, 0, UnID, xx, 3 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, yy, UnID, xx,  4 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, xx, 5  :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, 0, UnID, xx, 6 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 -.1, 0, UnID, xx, 7 :UnID = UnID + 1&lt;BR /&gt;
	&lt;BR /&gt;
hotspot2 xx, 0, UnID, yy, 1 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, yy, 2 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, -.1, UnID, yy, 3 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, 0, UnID, yy, 4 + 128 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 xx, yy, UnID, yy, 5 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, 0, UnID, yy, 6 :UnID = UnID + 1&lt;BR /&gt;
hotspot2 0, -.1, UnID, yy, 6 :UnID = UnID + 1&lt;BR /&gt;
&lt;BR /&gt;
Text2 xx, yy, "text"&lt;BR /&gt;
cu_del = cu_del + 1&lt;BR /&gt;
	&lt;BR /&gt;
&lt;BR /&gt;
	&lt;BR /&gt;
Hotspot2 0, 0&lt;BR /&gt;
Hotspot2 A, 0&lt;BR /&gt;
Hotspot2 A/2, 0&lt;BR /&gt;
Hotspot2 0, B&lt;BR /&gt;
Hotspot2 A, B&lt;BR /&gt;
Hotspot2 A/2, B&lt;BR /&gt;
Hotspot2 A, B/2&lt;BR /&gt;
Hotspot2 0, B/2&lt;BR /&gt;
&lt;BR /&gt;
RECT2 0,0, A, B&lt;BR /&gt;
RECT2 1.5",1.5",A-1.5",B-1.5"&lt;BR /&gt;
&lt;BR /&gt;
TEXT2 A/2, B/2, "O"&lt;BR /&gt;
&lt;BR /&gt;
I appreciate the time and effort.</description>
      <pubDate>Tue, 17 Jul 2007 15:44:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100978#M30275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-17T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Independent HotSpot2 Rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100979#M30276</link>
      <description>&lt;BLOCKQUOTE&gt;A wrote:&lt;BR /&gt;Thanks for your help and baring with me Tom.  I understand your suggestion, but that does not allow me to alter the movement or rotation of the text in the model window.  By using that hotspots I'm able to move a hotspot and a corresponding text.  I think if i can use the below correctly, I can also rotate a hotspot independently in the model window.  Is it possible?.&lt;/BLOCKQUOTE&gt;

You'll need rotation hotspots to make it happen. Rotation hotspots use the format:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;HOTSPOT2	0,0,						unID, angle, 6 : unID = unID + 1
HOTSPOT2 	A, 0, 					unID, angle, 4 : unID = unID + 1
HOTSPOT2 	A*COS(angle), A*SIN(angle), unID, angle, 5 : unID = unID + 1
ROT2 angle&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jul 2007 15:53:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100979#M30276</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2007-07-17T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Independent HotSpot2 Rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100980#M30277</link>
      <description>Thanks again for all your help!</description>
      <pubDate>Tue, 17 Jul 2007 16:06:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Independent-HotSpot2-Rotation/m-p/100980#M30277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-17T16:06:09Z</dc:date>
    </item>
  </channel>
</rss>

