<?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: edges of Poly2_b{5} curves convert to HotArc2 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308310#M4359</link>
    <description>&lt;P&gt;sin / cos rather... tan-likes can blow up&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 08:47:52 GMT</pubDate>
    <dc:creator>Piotr Dobrowolski</dc:creator>
    <dc:date>2021-10-05T08:47:52Z</dc:date>
    <item>
      <title>edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308305#M4356</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;I would like to add some clickable edges to a Poly2_b{5}.&lt;/FONT&gt; At the moment I can only click in the middle of the Poly2_b{5} fill to select it. I need to be able to select the outer perimeter for aligning the edges to other objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;I can match the Hotline2 commands to the linear edges of the Poly2_b{5}.&amp;nbsp;However how can I HotArc2 the Poly2_b{5}curves?&lt;/FONT&gt; Or is there any other way to make the edges clickable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Poly2_b{5} uses the&amp;nbsp;Arc using centerpoint and angle with the 900 and 4000:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808080"&gt;x0, y0, 900, !Set centerpoint&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;0, a, 4000+s, !Arc using centerpoint and angle&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Whilst Hotarc2 uses:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808080"&gt;hotarc2 xCenterPoint, yCenterPoint, radius, angleStart, angleEnd, unID&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to write duplicate and change the original Poly2_b{5} code so that Hotarc2 can follow the curves of the&amp;nbsp;Poly2_b{5}?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your help, I have been battling this for several days!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:13:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308305#M4356</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-09-09T09:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308306#M4357</link>
      <description>&lt;P&gt;No, The hotarc's and hotlines have to be scripted separately, you can use the polyline values (if using put or matrix parameters obviously, but it has to be phrased and the angles calculated on center and starting point/ angle in poly definition.&lt;/P&gt;&lt;P&gt;Piotr&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 08:23:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308306#M4357</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2021-10-05T08:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308308#M4358</link>
      <description>&lt;P&gt;Time to pull out the highschool trigonometry!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arctan( dx / dy )&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 08:30:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308308#M4358</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-10-05T08:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308310#M4359</link>
      <description>&lt;P&gt;sin / cos rather... tan-likes can blow up&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 08:47:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308310#M4359</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2021-10-05T08:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308360#M4360</link>
      <description>&lt;P&gt;One of my objects contains trig equations which exceed the line limit so have to be split into various parts...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 01:15:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308360#M4360</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-10-06T01:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308378#M4361</link>
      <description>&lt;P&gt;use the Force Luke: and use "\"&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 07:34:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308378#M4361</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2021-10-06T07:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308382#M4362</link>
      <description>&lt;P&gt;Hi Piotr, thanks so much, I had wondered but thought I would check. Thank you again!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 08:50:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308382#M4362</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2021-10-06T08:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308383#M4363</link>
      <description>&lt;P&gt;Hi Lingwisyer, thank you to for responding, I will have to look up&amp;nbsp;arctan( dx / dy ) and dust off some maths books. All the best!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 08:52:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308383#M4363</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2021-10-06T08:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308501#M4364</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;tanΘ = opposite / adjacent&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In this case. Change in X (dX) / Change in Y (dY) between your starting node and the centre&amp;nbsp;node.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arctan is the same as tan⁻¹&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;EM&gt;Θ =&amp;nbsp;arctan( dx / dy )&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You may then need to add 90 depending on whether zero is vertical or horizontal. You may also need to subtract&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;Θ from 360 if X₁ &amp;lt; X₂&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 01:50:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308501#M4364</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-10-07T01:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308509#M4365</link>
      <description>&lt;P&gt;I mean the *character limit for a string, which a new line does not fix. I did not know about this identifier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In reality I should probably break it down more as it is the merge of several equations so by breaking it down it would be easier to understand. On several occasions I have myself needed to work parts of the equations backwards to figure out what they actually did...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 02:16:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308509#M4365</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-10-07T02:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308531#M4366</link>
      <description>&lt;P&gt;Sometimes this can be overriden by summing up parameters...but I do not know how many characters You have there...&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 08:03:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308531#M4366</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2021-10-07T08:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: edges of Poly2_b{5} curves convert to HotArc2</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308593#M4367</link>
      <description>&lt;P&gt;If it is your object which defines the geometry, you probably have the centerpoints of the circles to calculate with.&lt;/P&gt;
&lt;P&gt;If you have to draw generic polygons from profiles, it might be easier to use "ProfileConverter" macro. &lt;A href="http://gdl.graphisoft.com/tips-and-tricks/converting-to-status-coded-polygon-format" target="_blank" rel="noopener"&gt;This article&lt;/A&gt; explains the reverse conversion, hope you will be able to figure it out reading the code. We are in the process of writing some articles on GDLCenter about it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:57:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/edges-of-Poly2-b-5-curves-convert-to-HotArc2/m-p/308593#M4367</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2021-10-07T12:57:13Z</dc:date>
    </item>
  </channel>
</rss>

