<?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: Object not appearing when first placed in plan in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/574923#M5804</link>
    <description>&lt;P&gt;Hi Barry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry it has taken me so long to reply, life got away from me a bit there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the IF statement but when checking the script it returns with a warning that "Use of real types can result in precision problems" and the object still does not appear when first placed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have placed default values into the the parameters and it has resolved the issue. Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 05:47:42 GMT</pubDate>
    <dc:creator>KB-at-CWA</dc:creator>
    <dc:date>2023-11-10T05:47:42Z</dc:date>
    <item>
      <title>Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/398500#M5634</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am fairly early on with my scripting in GDL life and am not sure what to do to fix this issue.&lt;/P&gt;
&lt;P&gt;I have been trying to solve a documentation issue I have in my office where I want to eliminate separate 3D objects, symbols and splines for an electrical plan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have scripted an object that is an "X" symbol for a light switch that has a moveable hotspot, which draws a spline that you drag to a light on plan. It has a 3D block that is created at the same time and some options for different switch types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works very well, but when it is first placed in plan nothing appears until I zoom, or pan in the view. Please see the video attached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was created in Archicad 25 and I am happy to share the script if it helps.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:20:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/398500#M5634</guid>
      <dc:creator>KB-at-CWA</dc:creator>
      <dc:date>2024-09-24T08:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/398738#M5642</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/53029"&gt;@KB-at-CWA&lt;/a&gt; , could you share the library part to troubleshoot it ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 05:59:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/398738#M5642</guid>
      <dc:creator>MetalFingerz</dc:creator>
      <dc:date>2023-09-19T05:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/398739#M5643</link>
      <description>&lt;P&gt;If you .zip your object, you will then be able to attach it directly to your post. You could also PM it to someone to have a look if you would rather not freely share it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 07:03:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/398739#M5643</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-09-19T07:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/399775#M5673</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/8056"&gt;@MetalFingerz&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/11140"&gt;@Lingwisyer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the late reply, does the attachment work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I scripted it in AC25 and am working on macOS Monterey&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 23:13:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/399775#M5673</guid>
      <dc:creator>KB-at-CWA</dc:creator>
      <dc:date>2023-09-26T23:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/399781#M5674</link>
      <description>&lt;P&gt;The GPO object you attached works perfectly fine.&lt;/P&gt;
&lt;P&gt;But that does not seem to be the object you described in the first post.&lt;/P&gt;
&lt;P&gt;You will need to attach the 'X' symbol with spline object if you want an answer about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 00:55:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/399781#M5674</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-09-27T00:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/400480#M5700</link>
      <description>&lt;P&gt;Sorry about that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see attached the Light Switch symbol&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 00:20:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/400480#M5700</guid>
      <dc:creator>KB-at-CWA</dc:creator>
      <dc:date>2023-10-03T00:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/400514#M5701</link>
      <description>&lt;P&gt;Thanks for that.&lt;/P&gt;
&lt;P&gt;It seems to be because your 'offset side' &amp;amp; 'offset up' parameters are set to zero by default.&lt;/P&gt;
&lt;P&gt;So it is trying to draw a spline that doesn't actually exist.&lt;/P&gt;
&lt;P&gt;It doesn't seem to like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could set default values for each (such as 100) and it will be happy.&lt;/P&gt;
&lt;P&gt;Or if there are occasions where you don't want to see the spline, you could alter the script like this...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if lampOffsetX &amp;lt;&amp;gt; 0 and lampOffsetY &amp;lt;&amp;gt; 0 then
	SPLINE2A 3, 2,
	0,	0,	90,	0,	SQR (lampOffsetX/curvature*lampOffsetX/curvature +lampOffsetY/curvature*lampOffsetY/curvature),
	lampOffsetX/2,	lampOffsetY/2, 0,	0,	0,
	lampOffsetX,	lampOffsetY, 90,	SQR (lampOffsetX/curvature*lampOffsetX/curvature +lampOffsetY/curvature*lampOffsetY/curvature),	0
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 06:49:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/400514#M5701</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-10-03T06:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/400530#M5702</link>
      <description>&lt;P&gt;I would put a minimum length modifier in the&amp;nbsp;&lt;EM&gt;Parameter Script&lt;/EM&gt; for it, then maybe have an IF statement to change the colour of the line if it is in it's default location. Help prevent switches to nowhere.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 08:13:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/400530#M5702</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-10-03T08:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/574923#M5804</link>
      <description>&lt;P&gt;Hi Barry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry it has taken me so long to reply, life got away from me a bit there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the IF statement but when checking the script it returns with a warning that "Use of real types can result in precision problems" and the object still does not appear when first placed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have placed default values into the the parameters and it has resolved the issue. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 05:47:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/574923#M5804</guid>
      <dc:creator>KB-at-CWA</dc:creator>
      <dc:date>2023-11-10T05:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Object not appearing when first placed in plan</title>
      <link>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/574924#M5805</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/53029"&gt;@KB-at-CWA&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I tried the IF statement but when checking the script it returns with a warning that "Use of real types can result in precision problems" and the object still does not appear when first placed.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That should have worked.&lt;/P&gt;
&lt;P&gt;I just tried again and it worked for me - object just places an "X" with no spline.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The warning I just ignore as it is just that, a warning.&lt;/P&gt;
&lt;P&gt;Something to do with equating (or not equating in this case) values.&lt;/P&gt;
&lt;P&gt;This will avoid the warning ... if ABS(lampOffsetX) &amp;gt; 0 and ABS(lampOffsetY) &amp;gt; 0 then&lt;/P&gt;
&lt;P&gt;Barry&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 06:26:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Object-not-appearing-when-first-placed-in-plan/m-p/574924#M5805</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-11-10T06:26:35Z</dc:date>
    </item>
  </channel>
</rss>

