<?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 How do I get/set profile modifier? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-get-set-profile-modifier/m-p/312764#M1840</link>
    <description>&lt;P&gt;I am using Archicad 23.&lt;BR /&gt;I want to get the settings from favorites, but I can't get the values of profile modifier.&lt;BR /&gt;How can I get/set the value of all or a specific profile modifier?&lt;/P&gt;&lt;P&gt;Please, help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GSErrCode favtest() {

	GSErrCode err = NoError;

	API_Favorite fav = {};
	fav.memo.New();

	fav.name = "test";
	ACAPI_Favorite_Get(&amp;amp;fav);

	ACAPI_CallUndoableCommand("place element from favorite",
		[&amp;amp;]() -&amp;gt; GSErrCode {

			API_Element elem = fav.element;

			err = ACAPI_Element_Create(&amp;amp;elem, &amp;amp;fav.memo.Get());

			if (err != NoError) {
				ACAPI_WriteReport(ErrID_To_Name(err), true);
			}

			ACAPI_DisposeElemMemoHdls(&amp;amp;fav.memo.Get());
			return NoError;
		});
	return NoError;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Oct 2021 03:20:53 GMT</pubDate>
    <dc:creator>arad</dc:creator>
    <dc:date>2021-10-23T03:20:53Z</dc:date>
    <item>
      <title>How do I get/set profile modifier?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-get-set-profile-modifier/m-p/312764#M1840</link>
      <description>&lt;P&gt;I am using Archicad 23.&lt;BR /&gt;I want to get the settings from favorites, but I can't get the values of profile modifier.&lt;BR /&gt;How can I get/set the value of all or a specific profile modifier?&lt;/P&gt;&lt;P&gt;Please, help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GSErrCode favtest() {

	GSErrCode err = NoError;

	API_Favorite fav = {};
	fav.memo.New();

	fav.name = "test";
	ACAPI_Favorite_Get(&amp;amp;fav);

	ACAPI_CallUndoableCommand("place element from favorite",
		[&amp;amp;]() -&amp;gt; GSErrCode {

			API_Element elem = fav.element;

			err = ACAPI_Element_Create(&amp;amp;elem, &amp;amp;fav.memo.Get());

			if (err != NoError) {
				ACAPI_WriteReport(ErrID_To_Name(err), true);
			}

			ACAPI_DisposeElemMemoHdls(&amp;amp;fav.memo.Get());
			return NoError;
		});
	return NoError;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 03:20:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-get-set-profile-modifier/m-p/312764#M1840</guid>
      <dc:creator>arad</dc:creator>
      <dc:date>2021-10-23T03:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set profile modifier?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-get-set-profile-modifier/m-p/312886#M1841</link>
      <description>&lt;P&gt;Hi Arad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is a bug / limitation. I came across this same issue years ago in v22, and it is still not working in v24.. Profile modifiers in favourites are not set when using the API..&lt;/P&gt;&lt;P&gt;I ended up just setting the modifiers manually using "ACAPI_Element_SetProperty"&lt;/P&gt;&lt;P&gt;The Property_Test example is a good place to start if you go down that route.&lt;/P&gt;&lt;P&gt;Hope this Helps..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 00:03:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-get-set-profile-modifier/m-p/312886#M1841</guid>
      <dc:creator>Ben Cohen</dc:creator>
      <dc:date>2021-10-25T00:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get/set profile modifier?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-get-set-profile-modifier/m-p/312907#M1842</link>
      <description>&lt;P&gt;Hi, Ben.&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I see.&lt;BR /&gt;I will try with your method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope we can use it soon.&lt;BR /&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 03:21:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-do-I-get-set-profile-modifier/m-p/312907#M1842</guid>
      <dc:creator>arad</dc:creator>
      <dc:date>2021-10-25T03:21:41Z</dc:date>
    </item>
  </channel>
</rss>

