<?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 AC17 DevKit change in Linear Dimensions? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/AC17-DevKit-change-in-Linear-Dimensions/m-p/168243#M5794</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, I have an addon working perfectly on AC14,15,16. When I use it on AC17 its works fine, only the custom content of Linear Dimension note isn't overwritten. I'm rewriting it like this&lt;BR /&gt;
&lt;PRE&gt;strcpy((*memo.dimElems)&lt;/PRE&gt;
&lt;P&gt;.note.content,tmp);&lt;/P&gt;
tmp is char*&lt;BR /&gt;&lt;BR /&gt;The code is OK, but AC just don't overwrite the content of Linear dimension note it (Dimension note type is set to "custom" all the time - opposite of "Measured" value). Is this a new bug? Or what?&lt;BR /&gt;&lt;BR /&gt;I see there is a change in structure in AC 17 DevKit in API_NoteType&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;contentUStr &lt;BR /&gt;Optional parameter for accessing the text or the autotext of the note in UniString format.&lt;/BLOCKQUOTE&gt;
so I tried &lt;BR /&gt;
&lt;PRE&gt;(*memo.dimElems)&lt;/PRE&gt;
&lt;P&gt;.note.contentUStr=tmpUniStr&lt;/P&gt;
where tmpUniStr is ptr to dynamically allocated UniString to change the pointer to new UniString with new content. This actually rewrite the dimension but with something weird, like ''Ś"&lt;BR /&gt;&lt;BR /&gt;Thx in advance.&lt;/DIV&gt;</description>
    <pubDate>Wed, 02 Aug 2023 12:03:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-02T12:03:19Z</dc:date>
    <item>
      <title>AC17 DevKit change in Linear Dimensions?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/AC17-DevKit-change-in-Linear-Dimensions/m-p/168243#M5794</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, I have an addon working perfectly on AC14,15,16. When I use it on AC17 its works fine, only the custom content of Linear Dimension note isn't overwritten. I'm rewriting it like this&lt;BR /&gt;
&lt;PRE&gt;strcpy((*memo.dimElems)&lt;/PRE&gt;
&lt;P&gt;.note.content,tmp);&lt;/P&gt;
tmp is char*&lt;BR /&gt;&lt;BR /&gt;The code is OK, but AC just don't overwrite the content of Linear dimension note it (Dimension note type is set to "custom" all the time - opposite of "Measured" value). Is this a new bug? Or what?&lt;BR /&gt;&lt;BR /&gt;I see there is a change in structure in AC 17 DevKit in API_NoteType&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;contentUStr &lt;BR /&gt;Optional parameter for accessing the text or the autotext of the note in UniString format.&lt;/BLOCKQUOTE&gt;
so I tried &lt;BR /&gt;
&lt;PRE&gt;(*memo.dimElems)&lt;/PRE&gt;
&lt;P&gt;.note.contentUStr=tmpUniStr&lt;/P&gt;
where tmpUniStr is ptr to dynamically allocated UniString to change the pointer to new UniString with new content. This actually rewrite the dimension but with something weird, like ''Ś"&lt;BR /&gt;&lt;BR /&gt;Thx in advance.&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:03:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/AC17-DevKit-change-in-Linear-Dimensions/m-p/168243#M5794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-02T12:03:19Z</dc:date>
    </item>
  </channel>
</rss>

