<?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 surrouding box of an object in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236283#M3968</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;If an object (a simple cube) has an offset (for example, half of its height above origin) when I click to move it (but have it done yet) the surrounding box of an object is displayed incorrectly.&lt;BR /&gt;&lt;BR /&gt;3D script
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;addz zzyzx/2

hotspot 0,0, zzyzx
hotspot 0,0, 0
hotspot a,0, zzyzx
hotspot a,0, 0
hotspot 0,b, zzyzx
hotspot 0,b, 0
hotspot a,b, zzyzx
hotspot a,b, 0

block a, b, zzyzx

del 1&lt;/PRE&gt;
&lt;BR /&gt;p.s. how can I rid of hotspots below the object (show2Dhotspotsin3D is disabled, same as other options in details - around symbol and so on)&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 11:31:24 GMT</pubDate>
    <dc:creator>A_ Smith</dc:creator>
    <dc:date>2021-09-14T11:31:24Z</dc:date>
    <item>
      <title>surrouding box of an object</title>
      <link>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236283#M3968</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;If an object (a simple cube) has an offset (for example, half of its height above origin) when I click to move it (but have it done yet) the surrounding box of an object is displayed incorrectly.&lt;BR /&gt;&lt;BR /&gt;3D script
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;addz zzyzx/2

hotspot 0,0, zzyzx
hotspot 0,0, 0
hotspot a,0, zzyzx
hotspot a,0, 0
hotspot 0,b, zzyzx
hotspot 0,b, 0
hotspot a,b, zzyzx
hotspot a,b, 0

block a, b, zzyzx

del 1&lt;/PRE&gt;
&lt;BR /&gt;p.s. how can I rid of hotspots below the object (show2Dhotspotsin3D is disabled, same as other options in details - around symbol and so on)&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 11:31:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236283#M3968</guid>
      <dc:creator>A_ Smith</dc:creator>
      <dc:date>2021-09-14T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: surrouding box of an object</title>
      <link>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236284#M3969</link>
      <description>You have turned off 'Show2Dhotspotsin3D' in the object parameters, but don't forget that it is a hidden parameter.&lt;BR /&gt;
You probably placed your test object before you changed and re-saved the object.&lt;BR /&gt;
So the originally placed object will still have this option on, and you can't see it to turn it off.&lt;BR /&gt;
&lt;BR /&gt;
Un-hide the parameter and re-save the object or place a new instance of the object.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 12 Jan 2021 07:52:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236284#M3969</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-01-12T07:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: surrouding box of an object</title>
      <link>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236285#M3970</link>
      <description>You're right. The object I have placed had an old value of show2DhotpostsIn3D. Thank you.&lt;BR /&gt;
&lt;BR /&gt;
Maybe you have an idea of how to make the surrounding box to be displayed properly?  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;&lt;BR /&gt;
If you look at the attached image - the distance is 0 (red box), but the contour of an object doesn't match the real contour of an object. Is there a possibility to control it? To make it move - I mean on the same offset I did in 3D script. Or even more - to make it bigger or smaller than an object...</description>
      <pubDate>Tue, 12 Jan 2021 08:11:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236285#M3970</guid>
      <dc:creator>A_ Smith</dc:creator>
      <dc:date>2021-01-12T08:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: surrouding box of an object</title>
      <link>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236286#M3971</link>
      <description>&lt;BLOCKQUOTE&gt;A. wrote:&lt;BR /&gt;
Maybe you have an idea of how to make the surrounding box to be displayed properly?  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;&lt;BR /&gt;
If you look at the attached image - the distance is 0 (red box), but the contour of an object doesn't match the real contour of an object. Is there a possibility to control it? To make it move - I mean on the same offset I did in 3D script. Or even more - to make it bigger or smaller than an object...
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
I am a little lost as to what you are trying to do.&lt;BR /&gt;
The very first line of your script is moving the object vertically by half the height of the object.&lt;BR /&gt;
So the base of your object (its zero base height) is still the project zero - hence the bounding box is starting at project zero.&lt;BR /&gt;
&lt;BR /&gt;
You also need to adjust the parameters for 'ac_bottomlevel' and 'ac_toplevel' to move this bounding box.&lt;BR /&gt;
You will need something like this in the master or parameter script.&lt;BR /&gt;

&lt;PRE&gt;ac_bottomlevel = ZZYZX*0.5
PARAMETERS ac_bottomlevel = ac_bottomlevel

ac_toplevel = ac_bottomlevel + ZZYZX
PARAMETERS ac_toplevel = ac_toplevel&lt;/PRE&gt;

&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 12 Jan 2021 08:44:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236286#M3971</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-01-12T08:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: surrouding box of an object</title>
      <link>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236287#M3972</link>
      <description>Thank you kindly. That's exactly what I was looking for.&lt;BR /&gt;
Tbh I'd already tried that and it didn't work. First I started to think (after adding code to master script) that it still has no influence. BUT for a new instance of an object, it's working perfectly fine - your tip for show2DhotspotsIn3D worked here too. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Have a good day.</description>
      <pubDate>Tue, 12 Jan 2021 10:18:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236287#M3972</guid>
      <dc:creator>A_ Smith</dc:creator>
      <dc:date>2021-01-12T10:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: surrouding box of an object</title>
      <link>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236288#M3973</link>
      <description>If you un-hide those parameters, the user can change them in the object instance and then the existing object will change to suit.&lt;BR /&gt;
It is just when they are hidden, they keep the values that were set when you placed the object and there is no way for the user to change them.&lt;BR /&gt;
Altering the parameter value in the object editor, will not change the parameter value of already placed objects.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 13 Jan 2021 00:59:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/surrouding-box-of-an-object/m-p/236288#M3973</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-01-13T00:59:05Z</dc:date>
    </item>
  </channel>
</rss>

