<?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: More than Symb_pos in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/More-than-Symb-pos/m-p/225125#M10920</link>
    <description>I am not 100% sure about what you are doing but if you want to stop a user from mirroring an object (CTRL-M or pressing the mirror button in the object settings/info box) then all you need to do is add ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff0000"&gt;IF symb_mirrored = 1 THEN&lt;BR /&gt;
	MUL2 -1, 1&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
before your 2D script and ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff0000"&gt;IF symb_mirrored = 1 THEN&lt;BR /&gt;
	MULx -1&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
before your 3D script.&lt;BR /&gt;
&lt;BR /&gt;
If your object is not symmetrical about the origin you will need to use an &lt;FONT color="#ff0000"&gt;ADD2 distance,0&lt;/FONT&gt; command before the MUL2 command where 'distance' is the value you need to bring the object back to its original position.&lt;BR /&gt;
Simmilarly &lt;FONT color="#ff0000"&gt;ADDx distance &lt;/FONT&gt;in the 3D script.&lt;BR /&gt;
&lt;BR /&gt;
Then in your object you can add a parameter that allows for your 'normal' &amp;amp; 'mirrored' options for the object which you then control on the script.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Wed, 19 Nov 2014 02:34:25 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2014-11-19T02:34:25Z</dc:date>
    <item>
      <title>More than Symb_pos</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/More-than-Symb-pos/m-p/225122#M10917</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hy,&lt;BR /&gt;
what i want is to determine the absolute coordinates of 2 points of a GDL coded object.&lt;BR /&gt;
Let me explain, in my object i have coded:&lt;BR /&gt;
&lt;BR /&gt;
hotspot2 0.000, 0.000    !first point&lt;BR /&gt;
hotspot2 1.000, 0.000    !second point&lt;BR /&gt;
&lt;BR /&gt;
then i used the global variables symb_posX...Z to have the position of the first point relative to the project origin.&lt;BR /&gt;
&lt;BR /&gt;
How can i request the same for the second point?&lt;BR /&gt;
I dont want to calculate it from the first point  using symb_rotangle and symb_mirrored, what i want is to reverse calculate the mirrored and the angle variables of my object.&lt;BR /&gt;
&lt;BR /&gt;
Any idea?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Nov 2014 10:25:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/More-than-Symb-pos/m-p/225122#M10917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-16T10:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: More than Symb_pos</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/More-than-Symb-pos/m-p/225123#M10918</link>
      <description>Symb_pos is simply the position of the object origin in relation to the model origin - your first hotspot just happens to be the object origin (0,0).&lt;BR /&gt;
All other points in the object will have to be mathematically worked out in relation to the object origin based on the object rotation and mirror status.&lt;BR /&gt;
&lt;BR /&gt;
I am not sure what you mean by reverse calculating the mirrored and the angle variables of your object.&lt;BR /&gt;
The symb_rotangle and symb_mirrored values will give you that based on what you have done to your object in the model.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 17 Nov 2014 01:24:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/More-than-Symb-pos/m-p/225123#M10918</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2014-11-17T01:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: More than Symb_pos</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/More-than-Symb-pos/m-p/225124#M10919</link>
      <description>Hi Barry,&lt;BR /&gt;
i was coding an assemble of a pump and a cutter for a plant. It is featured in two configuration "normal" and "mirrored". These are very similar but if the user select the "normal" configuration and the object is mirrored with Ctrl+L the result is an error for the technician who have to really setup the machine.&lt;BR /&gt;
&lt;BR /&gt;
Using simb_mirrored and symb_rotangle was the solution but i'm not satisfied with it and was thinking, if i code a coordinate system with three points and can request the global coordinates of these points i would be able to simplify all the if..then that i've made (=reverse calculate mirrored state and rotation angle.......ok ok "reverse calculate" wasn't the best way to explain myself &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; )</description>
      <pubDate>Tue, 18 Nov 2014 21:36:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/More-than-Symb-pos/m-p/225124#M10919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-18T21:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: More than Symb_pos</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/More-than-Symb-pos/m-p/225125#M10920</link>
      <description>I am not 100% sure about what you are doing but if you want to stop a user from mirroring an object (CTRL-M or pressing the mirror button in the object settings/info box) then all you need to do is add ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff0000"&gt;IF symb_mirrored = 1 THEN&lt;BR /&gt;
	MUL2 -1, 1&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
before your 2D script and ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff0000"&gt;IF symb_mirrored = 1 THEN&lt;BR /&gt;
	MULx -1&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
before your 3D script.&lt;BR /&gt;
&lt;BR /&gt;
If your object is not symmetrical about the origin you will need to use an &lt;FONT color="#ff0000"&gt;ADD2 distance,0&lt;/FONT&gt; command before the MUL2 command where 'distance' is the value you need to bring the object back to its original position.&lt;BR /&gt;
Simmilarly &lt;FONT color="#ff0000"&gt;ADDx distance &lt;/FONT&gt;in the 3D script.&lt;BR /&gt;
&lt;BR /&gt;
Then in your object you can add a parameter that allows for your 'normal' &amp;amp; 'mirrored' options for the object which you then control on the script.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 19 Nov 2014 02:34:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/More-than-Symb-pos/m-p/225125#M10920</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2014-11-19T02:34:25Z</dc:date>
    </item>
  </channel>
</rss>

