<?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: Imported attributes are valid only for current instance in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266078#M3479</link>
    <description>Could you please send me an XML export of the properties after you added them to a project? You can save that file from the Property Manager dialog.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Akos</description>
    <pubDate>Wed, 05 Dec 2018 10:30:34 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2018-12-05T10:30:34Z</dc:date>
    <item>
      <title>Imported attributes are valid only for current instance</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266072#M3473</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, guys!&lt;BR /&gt;&lt;BR /&gt;I have a working addon which reads a text file and adds new elements in AC: walls, roofs, etc. with some properties. When I import a wall, for example, a piece of the wall is immediately drawn and I can move and modify it. I can see its properties with right button -&amp;gt; Wall Selection Settings. But if I first choose from the top bar my new wall and then I draw it, the properties have no values, only names.&lt;BR /&gt;Is there a way to apply the properties so that they will be shown in the second case?&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:49:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266072#M3473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T14:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Imported attributes are valid only for current instance</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266073#M3474</link>
      <description>I'm not sure if it understood well but in the second case, I assume that you draw a new wall in AC and then activated addon. &lt;BR /&gt;
&lt;BR /&gt;
In this case, if the addon is written just to read a text file and create new elements then probably no. You need to add functionality to attach properties to selected elements based on a sort of identification of existing element in files. &lt;BR /&gt;
&lt;BR /&gt;
You see properties because they are classified for Wall. But you see their default value in this case probably empty value.&lt;BR /&gt;
Try Propertie_test in examples there should be an example for this kind of functionality.</description>
      <pubDate>Fri, 30 Nov 2018 15:47:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266073#M3474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Imported attributes are valid only for current instance</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266074#M3475</link>
      <description>I open the file, read the attributes and properties in vectors, and then add them using these functions:&lt;BR /&gt;
&lt;BR /&gt;
GSErrCode ACAPI_Attribute_Create()&lt;BR /&gt;
GSErrCode ACAPI_Property_CreatePropertyDefinition()&lt;BR /&gt;
GSErrCode = ACAPI_Element_SetProperties()&lt;BR /&gt;
&lt;BR /&gt;
I am still not very confident of what every piece of code does (it is written by my previous colleague) and now I have to find a way to fix it only if it is possible.</description>
      <pubDate>Mon, 03 Dec 2018 11:20:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266074#M3475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T11:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Imported attributes are valid only for current instance</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266075#M3476</link>
      <description>I assume that whole thing was written just for importing purposes. &lt;BR /&gt;
&lt;BR /&gt;
Element_SetProperties should work fine but It's probably taking newly created wall element from previous bits of code. Probably you need to make new command which takes existing wall elements and then does Element_SetProperties using theirs GUIDs.&lt;BR /&gt;
&lt;BR /&gt;
This is only my assumption with your info provided. If you can be more specific or provide more code it will be easier to suggest something more helpfull.</description>
      <pubDate>Tue, 04 Dec 2018 13:13:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266075#M3476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-04T13:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Imported attributes are valid only for current instance</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266076#M3477</link>
      <description>Are you also creating the properties yourself, or are they part of the normal ARCHICAD template file?&lt;BR /&gt;
&lt;BR /&gt;
Regards, Akos</description>
      <pubDate>Tue, 04 Dec 2018 16:42:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266076#M3477</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2018-12-04T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Imported attributes are valid only for current instance</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266077#M3478</link>
      <description>I create a new property group and add properties in it - names and values and I can see them in the wall that is imported and drawn. This property group is applied globally in ArchiCAD because I can see it in every new wall that I draw manually - built-in type or my imported type. But the values of the newly drawn walls are always blank.&lt;BR /&gt;
I hoped that I should have the values in the case when I draw another piece of the wall that I imported. But if it is not possible, I think this issue can become a "known limitation".</description>
      <pubDate>Wed, 05 Dec 2018 07:31:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266077#M3478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-05T07:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Imported attributes are valid only for current instance</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266078#M3479</link>
      <description>Could you please send me an XML export of the properties after you added them to a project? You can save that file from the Property Manager dialog.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Akos</description>
      <pubDate>Wed, 05 Dec 2018 10:30:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266078#M3479</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2018-12-05T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Imported attributes are valid only for current instance</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266079#M3480</link>
      <description>In the Property Manager the values are also empty. The last Property Group is imported - "Shmendri_Kapeli".</description>
      <pubDate>Wed, 05 Dec 2018 14:26:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Imported-attributes-are-valid-only-for-current-instance/m-p/266079#M3480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-05T14:26:27Z</dc:date>
    </item>
  </channel>
</rss>

