<?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: How to read the end  height of a conveyor using Flexsim in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-read-the-end-height-of-a-conveyor-using-flexsim/m-p/13523409#M33763</link>
    <description>&lt;P&gt;You can't find those values directly in the object. The position end values are the results of the combination of the start position with size and rotation of the conveyor. If you look into the tree of a conveyor of your model and you change the end position in the Quick Properties you will notice that the height of the conveyors end is the sum of z position and z size. If the y-end-position differs to the start-position you get an angle at the spatialrz attribute and different value for the spatialsx attribute of your conveyor.&lt;/P&gt;&lt;P&gt;The attribute values are in the tree "Conveyor&amp;gt;spatial". The name of "Conveyor" is different in your model. &lt;/P&gt;&lt;P&gt;     &lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2017 16:55:18 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2017-06-08T16:55:18Z</dc:date>
    <item>
      <title>How to read the end  height of a conveyor using Flexsim</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-read-the-end-height-of-a-conveyor-using-flexsim/m-p/13523407#M33761</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 17.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Able to set the end height of a conveyor using this method: &lt;A rel="nofollow noopener noreferrer" href="https://answers.flexsim.com/questions/22316/how-can-i-set-the-start-and-end-height-of-a-convey.html" target="_blank"&gt;https://answers.flexsim.com/questions/22316/how-can-i-set-the-start-and-end-height-of-a-convey.html&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;I want to first read the current end height and increment/decrement it by some value. &lt;/P&gt; 
&lt;P&gt;Also, how to read/write the ending x and y co-ordinates? &lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 23:02:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-read-the-end-height-of-a-conveyor-using-flexsim/m-p/13523407#M33761</guid>
      <dc:creator>majid_a</dc:creator>
      <dc:date>2017-06-06T23:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to read the end  height of a conveyor using Flexsim</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-read-the-end-height-of-a-conveyor-using-flexsim/m-p/13523408#M33762</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/207/anthony.j.html" nodeid="207"&gt;@anthony.johnson&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 19:45:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-read-the-end-height-of-a-conveyor-using-flexsim/m-p/13523408#M33762</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2017-06-07T19:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to read the end  height of a conveyor using Flexsim</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-read-the-end-height-of-a-conveyor-using-flexsim/m-p/13523409#M33763</link>
      <description>&lt;P&gt;You can't find those values directly in the object. The position end values are the results of the combination of the start position with size and rotation of the conveyor. If you look into the tree of a conveyor of your model and you change the end position in the Quick Properties you will notice that the height of the conveyors end is the sum of z position and z size. If the y-end-position differs to the start-position you get an angle at the spatialrz attribute and different value for the spatialsx attribute of your conveyor.&lt;/P&gt;&lt;P&gt;The attribute values are in the tree "Conveyor&amp;gt;spatial". The name of "Conveyor" is different in your model. &lt;/P&gt;&lt;P&gt;     &lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 16:55:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-read-the-end-height-of-a-conveyor-using-flexsim/m-p/13523409#M33763</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2017-06-08T16:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to read the end  height of a conveyor using Flexsim</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-read-the-end-height-of-a-conveyor-using-flexsim/m-p/13523410#M33764</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Read End Z value&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Object conveyor = model().find("Conveyor1");

double z = conveyor.location.z;
double sz = conveyor.size.z;
double rise = getvarnum(conveyor, "rise");

double end;
if (rise &amp;gt; 0)
	end = z + sz;
else
	end = z;
	
return end;
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Read Start Z Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Same as above, but change rise &amp;gt; 0 to rise &amp;lt; 0.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read End X Value&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Object conveyor = model().find("Conveyor1");

double x = conveyor.location.x;
double sx = conveyor.size.x;
double rz = conveyor.rotation.z;
double rise = getvarnum(conveyor, "rise");
double endX = sx * cos(degreestoradians(rz)) + x;

return endX;
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Read End Y Value&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Object conveyor = model().find("Conveyor1");

double y = conveyor.location.y;
double sx = conveyor.size.x;
double rz = conveyor.rotation.z;
double rise = getvarnum(conveyor, "rise");
double endY = sx * sin(degreestoradians(rz)) + y;

return endY;
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Set End X,Y Value&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Object conveyor = model().find("Conveyor1");

double x = 1;
double y = 1;
function_s(conveyor, "dragEnd", x, y, conveyor.location.z, activedocumentview());

function_s(conveyor, "clearNonLockedPoints");
function_s(conveyor, "notifyEdgePointsOnEdgeMoved");
function_s(conveyor, "finalizeSpatialChanges");
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Set Start X,Y Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Same as above, but use "dragStart" instead of  "dragEnd"&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 18:00:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-read-the-end-height-of-a-conveyor-using-flexsim/m-p/13523410#M33764</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2017-06-14T18:00:35Z</dc:date>
    </item>
  </channel>
</rss>

