<?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: Looking for API function definition in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260211#M3433</link>
    <description>Thanks but no luck, the same crash  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_neutral.gif" style="display : inline;" /&gt;   &lt;BR /&gt;
There is "something" different here between Win and Mac (it's working on Mac)  and now I'll try to investigate.</description>
    <pubDate>Fri, 09 Nov 2018 07:46:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-09T07:46:03Z</dc:date>
    <item>
      <title>Looking for API function definition</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260207#M3429</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;How can I find, if possible, the definition of ACAPI_Property_CreatePropertyDefinition? I modified Element_Test example to have a menu command to open a text file and import the settings but I got a crash in this function &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" border="0" /&gt; &lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:30:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260207#M3429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-05T11:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for API function definition</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260208#M3430</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Could you show me please the definition of your PropertyTestHelpers::CreateProperty function?&lt;BR /&gt;
I think a little mistake in that function causes the crash.&lt;BR /&gt;
&lt;BR /&gt;
The definitions of ACAPI functions are inside ARCHICAD, so they are not public.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Tibor</description>
      <pubDate>Thu, 08 Nov 2018 14:32:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260208#M3430</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2018-11-08T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for API function definition</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260209#M3431</link>
      <description>Here it is, and is working on Mac:&lt;BR /&gt;
&lt;BR /&gt;
API_PropertyDefinition PropertyTestHelpers::CreateProperty (API_PropertyGroup group, const char * name)&lt;BR /&gt;
{&lt;BR /&gt;
    API_PropertyDefinition definition;&lt;BR /&gt;
    definition.guid = APINULLGuid;&lt;BR /&gt;
    definition.groupGuid = group.guid;&lt;BR /&gt;
    &lt;BR /&gt;
    GS::UniString uniName (name, CC_UTF8);&lt;BR /&gt;
    definition.name = uniName;&lt;BR /&gt;
    &lt;BR /&gt;
    definition.description = "Custom property set by ArchiCADImporter";&lt;BR /&gt;
    definition.collectionType = API_PropertySingleCollectionType;&lt;BR /&gt;
    definition.valueType = API_PropertyStringValueType;&lt;BR /&gt;
    definition.defaultValue.singleVariant.variant.type = definition.valueType;&lt;BR /&gt;
    return definition;&lt;BR /&gt;
}</description>
      <pubDate>Thu, 08 Nov 2018 14:37:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260209#M3431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-08T14:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for API function definition</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260210#M3432</link>
      <description>&lt;BLOCKQUOTE&gt;n.mihaylov wrote:&lt;BR /&gt;GS::UniString uniName (name, CC_UTF8);&lt;BR /&gt;
definition.name = uniName;&lt;/BLOCKQUOTE&gt;

Are you sure that the "name" string has UTF8 encoding?&lt;BR /&gt;
Could you replace these two lines with the following one line and retry it please?
&lt;PRE&gt;definition.name = name;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Nov 2018 17:22:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260210#M3432</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2018-11-08T17:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for API function definition</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260211#M3433</link>
      <description>Thanks but no luck, the same crash  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_neutral.gif" style="display : inline;" /&gt;   &lt;BR /&gt;
There is "something" different here between Win and Mac (it's working on Mac)  and now I'll try to investigate.</description>
      <pubDate>Fri, 09 Nov 2018 07:46:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260211#M3433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-09T07:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for API function definition</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260212#M3434</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Could you please provide some example strings, that are used as names for the Property Definitions?&lt;BR /&gt;
I could not reproduce the same issue yet.&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
Dénes</description>
      <pubDate>Wed, 05 Dec 2018 09:02:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260212#M3434</guid>
      <dc:creator>dfintha</dc:creator>
      <dc:date>2018-12-05T09:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for API function definition</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260213#M3435</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I fixed the problem several lines further, where I was setting the availability, although the addon crashed "here".</description>
      <pubDate>Thu, 07 Feb 2019 07:09:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Looking-for-API-function-definition/m-p/260213#M3435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-07T07:09:37Z</dc:date>
    </item>
  </channel>
</rss>

