<?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: Operator and TEXT tag in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525348#M35355</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can use the 'On Pre Draw' trigger of the operator to adjust the text's position for every frame, so it always appears in the same position/orientation relative to the operator's center point.&lt;/P&gt;&lt;P&gt;In the attached model are two examples: For operator1, the text is a subnode of the operator, for operator2 it is not. The needed code is easier for the second option, since all that is needed is to adjust the location based on a fixed offset to the operator. In the first case, the operator's rotation has to be compensated.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/54099-texttag.fsm" target="_blank"&gt;TextTag.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 24 Jun 2022 12:39:30 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2022-06-24T12:39:30Z</dc:date>
    <item>
      <title>Operator and TEXT tag</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525347#M35354</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Customize a TEXT tag&lt;/P&gt;
 &lt;P&gt;Attached to Operator&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;How to Operator moves in all directions, TEXT label fixed orientation?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Jun 2022 06:13:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525347#M35354</guid>
      <dc:creator>dylan_c</dc:creator>
      <dc:date>2022-06-24T06:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Operator and TEXT tag</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525348#M35355</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can use the 'On Pre Draw' trigger of the operator to adjust the text's position for every frame, so it always appears in the same position/orientation relative to the operator's center point.&lt;/P&gt;&lt;P&gt;In the attached model are two examples: For operator1, the text is a subnode of the operator, for operator2 it is not. The needed code is easier for the second option, since all that is needed is to adjust the location based on a fixed offset to the operator. In the first case, the operator's rotation has to be compensated.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/54099-texttag.fsm" target="_blank"&gt;TextTag.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Jun 2022 12:39:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525348#M35355</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-06-24T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Operator and TEXT tag</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525349#M35356</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;How to fix text tag in &lt;SPAN style="color: rgb(51, 51, 51); font-family: "&gt;operator&lt;/SPAN&gt;?&lt;/P&gt;
 &lt;P&gt;And the text tag cannot be moved?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jun 2022 06:14:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525349#M35356</guid>
      <dc:creator>dylan_c</dc:creator>
      <dc:date>2022-06-27T06:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Operator and TEXT tag</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525350#M35357</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;What exactly do you mean with "fit text tag in operator"? You can change the size of the text in its properties.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1656311363301.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511055i0AE2DAA2848DBFC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="1656311363301.png" alt="1656311363301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The On Pre Draw trigger in the model moves the tag to a fixed position relative to the operator before every frame is drawn, so any position change you attempt is immediately overwritten.&lt;/P&gt;&lt;P&gt;To adjust the location it is moved to you have to change the parameters in the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/22.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-setLocation" target="_blank"&gt;setLocation&lt;/A&gt; command. Currently the location is determined as the center point of the operator plus a fixed offset.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1656311255448.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511056i5467A3442CF0B6E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1656311255448.png" alt="1656311255448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10px;"&gt;(This is the code for Operator2, Operator1 is similar, but the offset is determined based on the operator's rotation)&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jun 2022 06:28:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525350#M35357</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-06-27T06:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Operator and TEXT tag</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525351#M35358</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: "&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Jun 2022 01:27:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/operator-and-text-tag/m-p/13525351#M35358</guid>
      <dc:creator>dylan_c</dc:creator>
      <dc:date>2022-06-28T01:27:39Z</dc:date>
    </item>
  </channel>
</rss>

