<?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: Is there a way to maintain object size regardless of view zoom? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559442#M62261</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt; is it possible to draw the 3d object (sphere) in the center of the node (like the red one). I tried with the midpoint selection but it won't work, it always generates it from one corner. &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="9227-3dobject-location.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1496130i2099D22FB0037249/image-size/large?v=v2&amp;amp;px=999" role="button" title="9227-3dobject-location.png" alt="9227-3dobject-location.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2017 21:58:39 GMT</pubDate>
    <dc:creator>enrique.elizaga</dc:creator>
    <dc:date>2017-10-23T21:58:39Z</dc:date>
    <item>
      <title>Is there a way to maintain object size regardless of view zoom?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559437#M62256</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 17.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I want to keep an objects size fixed (always 2 x 2 x 2) independently of the zoom used in the view. Is this possible? Kind of what happens with the connections edges.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 18:22:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559437#M62256</guid>
      <dc:creator>enrique.elizaga</dc:creator>
      <dc:date>2017-10-09T18:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to maintain object size regardless of view zoom?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559438#M62257</link>
      <description>&lt;P&gt;An additional comment would be that I don't want the object to be screen-locked, and the it should keep its location in the model (x,y,z).&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 23:07:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559438#M62257</guid>
      <dc:creator>enrique.elizaga</dc:creator>
      <dc:date>2017-10-09T23:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to maintain object size regardless of view zoom?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559439#M62258</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt;. Picture the same behaviour that the network nodes have. They have a fixed number of pixels regardless of the view zoom. And they are tied to a space location.&lt;/P&gt;
&lt;P&gt;Is it possible to do with a plane or object?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:45:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559439#M62258</guid>
      <dc:creator>enrique.elizaga</dc:creator>
      <dc:date>2017-10-10T12:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to maintain object size regardless of view zoom?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559440#M62259</link>
      <description>&lt;P&gt;
	You can get this functionality using the Custom Draw Trigger by adding the following code:&lt;/P&gt;
&lt;PRE&gt;double size = 5.0;
int shapeIndex = getshapeindex("fs3d\\Processor\\Processor.3ds");

double scaleFactor = size * viewpointradius(view).value / 100.0;
if (viewprojectiontype(view).value == 1) // orthographic projection
	scaleFactor = size * 10.0 / viewmagnification(view).value;
fglScale(scaleFactor, scaleFactor, scaleFactor);
drawobject(view, shapeIndex, 0);
&lt;/PRE&gt;&lt;P&gt;That example code draws a Processor shape. You could adjust the getshapeindex() call to draw a different shape. For example, use "fs3d\\General\\Plane.3ds" to draw a plane.&lt;/P&gt;&lt;P&gt;You can adjust the size variable to make it draw bigger or smaller.&lt;/P&gt;&lt;P&gt;&lt;A id="9025" href="https://answers.flexsim.com/storage/attachments/9025-object-size-ignore-zoom.fsm"&gt;Attached&lt;/A&gt; is a sample model demonstrating this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="9026-object-size-ignore-zoom.gif"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1496133i25A719856B6BB9FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="9026-object-size-ignore-zoom.gif" alt="9026-object-size-ignore-zoom.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:50:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559440#M62259</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2017-10-10T13:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to maintain object size regardless of view zoom?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559441#M62260</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt; This is EXACTLY what I intended! You are a genious my friend! &lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:31:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559441#M62260</guid>
      <dc:creator>enrique.elizaga</dc:creator>
      <dc:date>2017-10-10T14:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to maintain object size regardless of view zoom?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559442#M62261</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt; is it possible to draw the 3d object (sphere) in the center of the node (like the red one). I tried with the midpoint selection but it won't work, it always generates it from one corner. &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="9227-3dobject-location.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1496130i2099D22FB0037249/image-size/large?v=v2&amp;amp;px=999" role="button" title="9227-3dobject-location.png" alt="9227-3dobject-location.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 21:58:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559442#M62261</guid>
      <dc:creator>enrique.elizaga</dc:creator>
      <dc:date>2017-10-23T21:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to maintain object size regardless of view zoom?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559443#M62262</link>
      <description>&lt;P&gt;
	Add fglTranslate() calls to translate where the shape is drawn:&lt;/P&gt;
&lt;PRE&gt;double size = 5.0;
int shapeIndex = getshapeindex("fs3d\\General\\Sphere.3ds");
double scaleFactor = size*viewpointradius(view).value/100.0;
if (viewprojectiontype(view).value == 1)
	scaleFactor = size*10.0/viewmagnification(view).value;
fglTranslate(0.5, 0.5, 0.5);
fglScale(scaleFactor, scaleFactor, scaleFactor);
fglTranslate(-0.5, -0.5, -0.5);
drawobject(view, shapeIndex, 0);
&lt;/PRE&gt;&lt;P&gt;
Or modify the shape in a 3D modeling program (such as AC3D) so that the shape is centered on the origin.
The general sphere shape is positioned with its corner at the origin, not its center.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 22:08:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-there-a-way-to-maintain-object-size-regardless-of-view-zoom/m-p/13559443#M62262</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2017-10-23T22:08:25Z</dc:date>
    </item>
  </channel>
</rss>

