<?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 Send Message  - String Parameter Issue in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/send-message-string-parameter-issue/m-p/13561039#M63475</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.5 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV class="fr-view clearfix"&gt;
  &lt;P&gt;I am trying to pass a string value referencing a location in the 3D model as one of the Send Message parameters to be assigned to a label in a wait for message event:..&lt;/P&gt;
  &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1630523307025.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1507251iDE52F3044E33A96B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1630523307025.png" alt="1630523307025.png" /&gt;&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;However, this results in a "Invalid cast from char* to double" error.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;I've tried using a number reference:&lt;/P&gt;
  &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1630522929809.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1507252i76E8A41821F2E0F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1630522929809.png" alt="1630522929809.png" /&gt;&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;This results with token.destination value of...&lt;/P&gt;
  &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1630522999324.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1507253iE8412E757D84E527/image-size/large?v=v2&amp;amp;px=999" role="button" title="1630522999324.png" alt="1630522999324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;But this results as a 'invalid destination' when used in a Move Object activity.&lt;/P&gt;
  &lt;P&gt;So how does one pass a valid location reference to be stored in a token label???&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 01 Sep 2021 19:10:42 GMT</pubDate>
    <dc:creator>stan_e_davis</dc:creator>
    <dc:date>2021-09-01T19:10:42Z</dc:date>
    <item>
      <title>Send Message  - String Parameter Issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-message-string-parameter-issue/m-p/13561039#M63475</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.5 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV class="fr-view clearfix"&gt;
  &lt;P&gt;I am trying to pass a string value referencing a location in the 3D model as one of the Send Message parameters to be assigned to a label in a wait for message event:..&lt;/P&gt;
  &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1630523307025.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1507251iDE52F3044E33A96B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1630523307025.png" alt="1630523307025.png" /&gt;&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;However, this results in a "Invalid cast from char* to double" error.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;I've tried using a number reference:&lt;/P&gt;
  &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1630522929809.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1507252i76E8A41821F2E0F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1630522929809.png" alt="1630522929809.png" /&gt;&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;This results with token.destination value of...&lt;/P&gt;
  &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1630522999324.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1507253iE8412E757D84E527/image-size/large?v=v2&amp;amp;px=999" role="button" title="1630522999324.png" alt="1630522999324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;But this results as a 'invalid destination' when used in a Move Object activity.&lt;/P&gt;
  &lt;P&gt;So how does one pass a valid location reference to be stored in a token label???&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Sep 2021 19:10:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-message-string-parameter-issue/m-p/13561039#M63475</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2021-09-01T19:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Send Message  - String Parameter Issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-message-string-parameter-issue/m-p/13561040#M63476</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The predefined "Send Message" option only allows double values because the "senddelayedmessage" command only supports numbers as message parameters. "sendmessage" can handle other variable types as well.&lt;/P&gt;&lt;P&gt;Either open the code window of the option and change the double parameters to "Variant" manually (in that case make sure that the delay time is always set to -1). &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1630524288977.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1507250i1EBD664522EA05CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1630524288977.png" alt="1630524288977.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Opening the pick option GUI again will overwrite this though, so it might be better so simply write a code snippet with the "sendmessage" command yourself. You can find information on the syntax of commands under "Help -&amp;gt; Command Helper".&lt;/P&gt;&lt;PRE&gt;sendmessage(toObject, fromObject, param1, param2, param3)  // the params are optional&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Sep 2021 19:28:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-message-string-parameter-issue/m-p/13561040#M63476</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2021-09-01T19:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Send Message  - String Parameter Issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-message-string-parameter-issue/m-p/13561041#M63477</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Understood. Thanks again Felix.
&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Sep 2021 20:04:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-message-string-parameter-issue/m-p/13561041#M63477</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2021-09-01T20:04:37Z</dc:date>
    </item>
  </channel>
</rss>

