<?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 Changing Elevation name - unwanted changes to story lines - C++ AC25 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-Elevation-name-unwanted-changes-to-story-lines-C-AC25/m-p/652138#M10121</link>
    <description>&lt;P&gt;I am new to API writing, first attempt...&lt;/P&gt;
&lt;P&gt;I am trying to change elevation marker names-but the following code the story height display inside the views as well.&lt;/P&gt;
&lt;P&gt;the story markers displayed are not controlled by the story levels setting.&lt;/P&gt;
&lt;P&gt;before running script :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_0-1738890873756.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82869i87430BC19FF86EC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="AllanP_0-1738890873756.png" alt="AllanP_0-1738890873756.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_2-1739159747329.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82954i94A9AE3B2E9D8F0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="AllanP_2-1739159747329.png" alt="AllanP_2-1739159747329.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;after running script:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_0-1739159647337.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82952iE9D67B71A9C65D7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="AllanP_0-1739159647337.png" alt="AllanP_0-1739159647337.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_1-1739159680456.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82953i1B18D2C9E599DB59/image-size/large?v=v2&amp;amp;px=999" role="button" title="AllanP_1-1739159680456.png" alt="AllanP_1-1739159680456.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	GSErrCode err = NoError;
	API_Element element, elementMask;
	GS::Array&amp;lt;API_Guid&amp;gt; elemList;
	ACAPI_Element_GetElemList(API_ElevationID, &amp;amp;elemList);
	size_t count = elemList.GetSize();
	BNZeroMemory(&amp;amp;element, sizeof(API_ElevationID));
	for (short e = 0; e &amp;lt; count; e++)
	{
		element.header.typeID = API_ElevationID;
		element.header.guid = elemList[e];
		err = ACAPI_Element_Get(&amp;amp;element);
		if (err != NoError)
		{
			break;
		}
		GS::UniString name = element.elevation.segment.cutPlName;

		if (name == "B") {
			ACAPI_ELEMENT_MASK_CLEAR(elementMask);
			ACAPI_ELEMENT_MASK_SET(elementMask, API_ElevationType, segment.cutPlName);
			GS::ucscpy(element.elevation.segment.cutPlName, L("Z"));
			if (element.header.guid != APINULLGuid) {
				err = ACAPI_Element_ChangeParameters({ element.header.guid }, &amp;amp;element, nullptr, &amp;amp;elementMask);
				if (err != NoError) {
					ErrorBeep("ACAPI_Element_ChangeParameters", err);
				}
			}
			ACAPI_ELEMENT_MASK_CLEAR(elementMask);
		}
	}
	return;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know there is something i am missing, i just don't know where to look next.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is inconsistent as to when it happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It displays markers when the setting is set to no marker.&lt;/P&gt;
&lt;P&gt;When i change to a marker, and close then open and change to no marker, then it display correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update...&lt;/P&gt;
&lt;P&gt;These files were originally made in ArchiCAD 22 and then upgraded to ArchiCAD 25.&lt;/P&gt;
&lt;P&gt;It appears that the upgrade hasn't set the .&lt;STRONG&gt;&lt;A class="el" href="https://graphisoft.github.io/archicad-api-devkit/struct_a_p_i___section_segment.html#a12be37ccab1955ac8ab63db0ac82a50a" target="_blank"&gt;shAppearance&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;value and the .&lt;STRONG&gt;shSymbolId&lt;/STRONG&gt;&amp;nbsp;value correctly for ArchiCAD 25 in the upgrade.&lt;/P&gt;
&lt;P&gt;If i set the&amp;nbsp;.&lt;STRONG&gt;&lt;A class="el" href="https://graphisoft.github.io/archicad-api-devkit/struct_a_p_i___section_segment.html#a12be37ccab1955ac8ab63db0ac82a50a" target="_blank"&gt;shAppearance&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;separately before changing other settings, then this problem doesn't happen.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Sep 2025 21:27:04 GMT</pubDate>
    <dc:creator>AllanP</dc:creator>
    <dc:date>2025-09-22T21:27:04Z</dc:date>
    <item>
      <title>Changing Elevation name - unwanted changes to story lines - C++ AC25</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-Elevation-name-unwanted-changes-to-story-lines-C-AC25/m-p/652138#M10121</link>
      <description>&lt;P&gt;I am new to API writing, first attempt...&lt;/P&gt;
&lt;P&gt;I am trying to change elevation marker names-but the following code the story height display inside the views as well.&lt;/P&gt;
&lt;P&gt;the story markers displayed are not controlled by the story levels setting.&lt;/P&gt;
&lt;P&gt;before running script :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_0-1738890873756.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82869i87430BC19FF86EC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="AllanP_0-1738890873756.png" alt="AllanP_0-1738890873756.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_2-1739159747329.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82954i94A9AE3B2E9D8F0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="AllanP_2-1739159747329.png" alt="AllanP_2-1739159747329.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;after running script:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_0-1739159647337.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82952iE9D67B71A9C65D7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="AllanP_0-1739159647337.png" alt="AllanP_0-1739159647337.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllanP_1-1739159680456.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/82953i1B18D2C9E599DB59/image-size/large?v=v2&amp;amp;px=999" role="button" title="AllanP_1-1739159680456.png" alt="AllanP_1-1739159680456.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	GSErrCode err = NoError;
	API_Element element, elementMask;
	GS::Array&amp;lt;API_Guid&amp;gt; elemList;
	ACAPI_Element_GetElemList(API_ElevationID, &amp;amp;elemList);
	size_t count = elemList.GetSize();
	BNZeroMemory(&amp;amp;element, sizeof(API_ElevationID));
	for (short e = 0; e &amp;lt; count; e++)
	{
		element.header.typeID = API_ElevationID;
		element.header.guid = elemList[e];
		err = ACAPI_Element_Get(&amp;amp;element);
		if (err != NoError)
		{
			break;
		}
		GS::UniString name = element.elevation.segment.cutPlName;

		if (name == "B") {
			ACAPI_ELEMENT_MASK_CLEAR(elementMask);
			ACAPI_ELEMENT_MASK_SET(elementMask, API_ElevationType, segment.cutPlName);
			GS::ucscpy(element.elevation.segment.cutPlName, L("Z"));
			if (element.header.guid != APINULLGuid) {
				err = ACAPI_Element_ChangeParameters({ element.header.guid }, &amp;amp;element, nullptr, &amp;amp;elementMask);
				if (err != NoError) {
					ErrorBeep("ACAPI_Element_ChangeParameters", err);
				}
			}
			ACAPI_ELEMENT_MASK_CLEAR(elementMask);
		}
	}
	return;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know there is something i am missing, i just don't know where to look next.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is inconsistent as to when it happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It displays markers when the setting is set to no marker.&lt;/P&gt;
&lt;P&gt;When i change to a marker, and close then open and change to no marker, then it display correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update...&lt;/P&gt;
&lt;P&gt;These files were originally made in ArchiCAD 22 and then upgraded to ArchiCAD 25.&lt;/P&gt;
&lt;P&gt;It appears that the upgrade hasn't set the .&lt;STRONG&gt;&lt;A class="el" href="https://graphisoft.github.io/archicad-api-devkit/struct_a_p_i___section_segment.html#a12be37ccab1955ac8ab63db0ac82a50a" target="_blank"&gt;shAppearance&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;value and the .&lt;STRONG&gt;shSymbolId&lt;/STRONG&gt;&amp;nbsp;value correctly for ArchiCAD 25 in the upgrade.&lt;/P&gt;
&lt;P&gt;If i set the&amp;nbsp;.&lt;STRONG&gt;&lt;A class="el" href="https://graphisoft.github.io/archicad-api-devkit/struct_a_p_i___section_segment.html#a12be37ccab1955ac8ab63db0ac82a50a" target="_blank"&gt;shAppearance&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;separately before changing other settings, then this problem doesn't happen.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 21:27:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-Elevation-name-unwanted-changes-to-story-lines-C-AC25/m-p/652138#M10121</guid>
      <dc:creator>AllanP</dc:creator>
      <dc:date>2025-09-22T21:27:04Z</dc:date>
    </item>
  </channel>
</rss>

