<?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 Get the world coordinate of a character in a text/element in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-the-world-coordinate-of-a-character-in-a-text-element/m-p/596541#M9273</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Given the nth character in a text element, is it possible to easily get that characters position in world coordinates?&lt;/P&gt;
&lt;P&gt;It could probably be calculated from a combination of API_TextType, API_ParagraphType and maybe API_FontType but it would be tricky to cover every case. Is there an easy way to do it? I could not find anything readily available in the API documentation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenjiDev_0-1711573074007.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/58007i8E53A545412E14D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenjiDev_0-1711573074007.png" alt="BenjiDev_0-1711573074007.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 11:11:46 GMT</pubDate>
    <dc:creator>BenjiDev</dc:creator>
    <dc:date>2024-09-17T11:11:46Z</dc:date>
    <item>
      <title>Get the world coordinate of a character in a text/element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-the-world-coordinate-of-a-character-in-a-text-element/m-p/596541#M9273</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Given the nth character in a text element, is it possible to easily get that characters position in world coordinates?&lt;/P&gt;
&lt;P&gt;It could probably be calculated from a combination of API_TextType, API_ParagraphType and maybe API_FontType but it would be tricky to cover every case. Is there an easy way to do it? I could not find anything readily available in the API documentation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenjiDev_0-1711573074007.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/58007i8E53A545412E14D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenjiDev_0-1711573074007.png" alt="BenjiDev_0-1711573074007.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 11:11:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-the-world-coordinate-of-a-character-in-a-text-element/m-p/596541#M9273</guid>
      <dc:creator>BenjiDev</dc:creator>
      <dc:date>2024-09-17T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get the world coordinate of a character in a text/element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-the-world-coordinate-of-a-character-in-a-text-element/m-p/598521#M9289</link>
      <description>&lt;P&gt;Hi Benji,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know of any readily available function. I only found &lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___element.html#ga16c31e5654f9eaf2a2316ddd894de99e" target="_self"&gt;ACAPI_Element_GetTextLineLength&lt;/A&gt;. With that it might be worth a try to get the line length of the substring ending just before the character you are interested in. That could at least simplify that part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 05:58:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-the-world-coordinate-of-a-character-in-a-text-element/m-p/598521#M9289</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2024-04-10T05:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get the world coordinate of a character in a text/element</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-the-world-coordinate-of-a-character-in-a-text-element/m-p/598999#M9296</link>
      <description>&lt;P&gt;Ah, surely will be useful for what I'm trying to do, thanks Bern!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 11:26:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-the-world-coordinate-of-a-character-in-a-text-element/m-p/598999#M9296</guid>
      <dc:creator>BenjiDev</dc:creator>
      <dc:date>2024-04-12T11:26:53Z</dc:date>
    </item>
  </channel>
</rss>

