<?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: how to  create  curtainWall  accessory? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273105#M3539</link>
    <description>&lt;BLOCKQUOTE&gt;vanxis wrote:&lt;BR /&gt;
I don't know how I need to enter parameters in memo if I want to create a accessory  or a  juction.
&lt;/BLOCKQUOTE&gt;

Sorry if I was not clear enough.&lt;BR /&gt;
You can add &lt;B&gt;only new frames&lt;/B&gt; to an existing curtain wall via API.&lt;BR /&gt;
Currently there is no way to create new accessories or junctions using the API.</description>
    <pubDate>Thu, 10 Jan 2019 15:20:27 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2019-01-10T15:20:27Z</dc:date>
    <item>
      <title>how to  create  curtainWall  accessory?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273102#M3536</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;
&lt;PRE&gt;void		Do_CurtainWall_createAccessory(void)
{
	API_Element element, mask;
	API_LibPart         libPart;
	API_Guid		guid, guid1,guid2;
	API_ElemTypeID	typeID;
	GSErrCode err;


	BNZeroMemory(&amp;amp;element, sizeof(API_Element));

	if (!ClickAnElem("Click a Curtain Wall to Modify", API_CurtainWallFrameID, nullptr, &amp;amp;typeID, &amp;amp;guid)) {
		WriteReport_Alert("No curtain wall was clicked");
		return;
	}
	element.header.guid = guid;
	element.header.typeID = typeID;
	err = ACAPI_Element_Get(&amp;amp;element);
	guid2=element.cwFrame.symbolID;
	guid1 = element.cwFrame.owner;

	////return index///
	BNZeroMemory(&amp;amp;libPart, sizeof(libPart));
	GS::snuprintf(libPart.docu_UName, sizeof(libPart.docu_UName) / sizeof(GS::uchar_t), L("D-T吊件"));
	err = ACAPI_LibPart_Search(&amp;amp;libPart, false);
	if (err != NoError)
	{
		return;
	}
	int indac = libPart.index;

	BNZeroMemory(&amp;amp;element, sizeof(API_Element));
//	element.header.typeID = API_CurtainWallAccessoryID;
	element.cwAccessory.head.typeID = API_CurtainWallAccessoryID;
	err = ACAPI_Element_GetDefaults(&amp;amp;element, nullptr);
	if (err != NoError) {
		ErrorBeep("ACAPI_Element_GetDefaults", err);
		return;
	}
	element.cwAccessory.refFrame = guid;
	//element.cwAccessory.category = APICWAccC_Custom;
	element.cwAccessory.owner = guid1;
	//element.cwAccessory.hasSymbol = true;
	//element.cwAccessory.symbolID = guid2;
	//element.cwAccessory.symbolID = guid2;
	//element.cwAccessory.libInd = indac;

	err = ACAPI_Element_Create(&amp;amp;element, nullptr);

//	ACAPI_DisposeElemMemoHdls(&amp;amp;memo);

}&lt;/PRE&gt;
hello everyone！&lt;BR /&gt;I want to click a frame and put an accessory on it ，this is the code ，but when I run it ，it is returned err =-2130312312&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:46:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273102#M3536</guid>
      <dc:creator>vanxis</dc:creator>
      <dc:date>2022-10-04T14:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to  create  curtainWall  accessory?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273103#M3537</link>
      <description>Creating new curtain wall subelem (frame, panel, accessory, junction) is not available via API using the ACAPI_Element_Create or ACAPI_Element_CreateExt functions.&lt;BR /&gt;
&lt;BR /&gt;
You can add only new frames to an existing curtain wall by using the ACAPI_Element_Change on the curtain wall and passing the new frames in the cWallFrames field of the memo.</description>
      <pubDate>Thu, 27 Dec 2018 13:59:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273103#M3537</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2018-12-27T13:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to  create  curtainWall  accessory?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273104#M3538</link>
      <description>&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;
Creating new curtain wall subelem (frame, panel, accessory, junction) is not available via API using the ACAPI_Element_Create or ACAPI_Element_CreateExt functions.&lt;BR /&gt;
&lt;BR /&gt;
You can add only new frames to an existing curtain wall by using the ACAPI_Element_Change on the curtain wall and passing the new frames in the cWallFrames field of the memo.
&lt;/BLOCKQUOTE&gt;

Hi  Tibor！&lt;BR /&gt;
Thanks  for  your  reply  ！&lt;BR /&gt;
I tested it in the way you said yesterday, but I didn't  find the right parameter input, I don't know how I need to enter parameters in memo if I want to create a accessory  or a  juction  . I   have  read   the   “element_test”  example，but   there  is  not  any  information   about  them. can you give a simple example?</description>
      <pubDate>Sat, 29 Dec 2018 01:38:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273104#M3538</guid>
      <dc:creator>vanxis</dc:creator>
      <dc:date>2018-12-29T01:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to  create  curtainWall  accessory?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273105#M3539</link>
      <description>&lt;BLOCKQUOTE&gt;vanxis wrote:&lt;BR /&gt;
I don't know how I need to enter parameters in memo if I want to create a accessory  or a  juction.
&lt;/BLOCKQUOTE&gt;

Sorry if I was not clear enough.&lt;BR /&gt;
You can add &lt;B&gt;only new frames&lt;/B&gt; to an existing curtain wall via API.&lt;BR /&gt;
Currently there is no way to create new accessories or junctions using the API.</description>
      <pubDate>Thu, 10 Jan 2019 15:20:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273105#M3539</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2019-01-10T15:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to  create  curtainWall  accessory?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273106#M3540</link>
      <description>&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;vanxis wrote:&lt;BR /&gt;
I don't know how I need to enter parameters in memo if I want to create a accessory  or a  juction.
&lt;/BLOCKQUOTE&gt;

Sorry if I was not clear enough.&lt;BR /&gt;
You can add &lt;B&gt;only new frames&lt;/B&gt; to an existing curtain wall via API.&lt;BR /&gt;
Currently there is no way to create new accessories or junctions using the API.
&lt;/BLOCKQUOTE&gt;

I'm sorry to hear that. I can only find another way.  thanks ！</description>
      <pubDate>Fri, 11 Jan 2019 01:45:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-create-curtainWall-accessory/m-p/273106#M3540</guid>
      <dc:creator>vanxis</dc:creator>
      <dc:date>2019-01-11T01:45:56Z</dc:date>
    </item>
  </channel>
</rss>

