<?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: Issue with Column Rotation in Code in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Issue-with-Column-Rotation-in-Code/m-p/603225#M9348</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The axisRotationAngle should works in latest version (AC27.2.0). If you still meet the problem please try the following code (I just added two lines as first):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="cpp"&gt;    element.header.type = API_ColumnID;
    GSErrCode err = ACAPI_Element_GetDefaults (&amp;amp;element, &amp;amp;memo);

    element.column.head.floorInd = short(storey);

    element.column.origoPos = beg;
    element.column.coreAnchor = 6;

    element.column.relativeTopStory = 0;
    element.column.height = height;
    element.column.bottomOffset = baseOffset;
    element.column.isSlanted = true;
    memo.columnSegments[0].assemblySegmentData.isWidthAndHeightLinked = false;
    memo.columnSegments[0].assemblySegmentData.nominalWidth = width;
    memo.columnSegments[0].assemblySegmentData.nominalHeight = breadth;
    element.column.axisRotationAngle = 0.785398;

    err = ACAPI_Element_Create(&amp;amp;element, &amp;amp;memo);&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 11 May 2024 03:22:26 GMT</pubDate>
    <dc:creator>Hiromichi Shinkawa</dc:creator>
    <dc:date>2024-05-11T03:22:26Z</dc:date>
    <item>
      <title>Issue with Column Rotation in Code</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Issue-with-Column-Rotation-in-Code/m-p/595697#M9261</link>
      <description>&lt;P&gt;Hi team&lt;BR /&gt;&lt;BR /&gt;I am reaching out regarding an issue I encountered while attempting to rotate a column by its own axis using code.&lt;/P&gt;
&lt;P&gt;I have utilized the following code snippet:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;	element.column.head.floorInd = short(storey);

	element.column.origoPos = beg;
	element.column.coreAnchor = 6;

	element.column.relativeTopStory = 0;
	element.column.height = height;
	element.column.bottomOffset = baseOffset;
	element.column.isSlanted = true;
	memo.columnSegments[0].assemblySegmentData.isWidthAndHeightLinked = false;
	memo.columnSegments[0].assemblySegmentData.nominalWidth = width;
	memo.columnSegments[0].assemblySegmentData.nominalHeight = breadth;
	element.column.axisRotationAngle = 0.785398;

	err = ACAPI_Element_Create(&amp;amp;element, &amp;amp;memo);&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;Despite setting the axisRotationAngle to 0.785398 (which corresponds to 45 degrees), I am not observing any rotation of the column upon rendering.&lt;/P&gt;
&lt;P&gt;However, I can achieve the desired rotation angle through the user interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sijocherian_0-1710918785195.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/57693iDB19D0D963C46562/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sijocherian_0-1710918785195.png" alt="sijocherian_0-1710918785195.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sijocherian_1-1710918830138.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/57694iAB43C137A06AE770/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sijocherian_1-1710918830138.png" alt="sijocherian_1-1710918830138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please advise if there is anything I might be missing or if there is an alternative approach to achieve the desired rotation angle programmatically?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much for your assistance&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:59:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Issue-with-Column-Rotation-in-Code/m-p/595697#M9261</guid>
      <dc:creator>sijocherian</dc:creator>
      <dc:date>2024-09-16T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Column Rotation in Code</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Issue-with-Column-Rotation-in-Code/m-p/603225#M9348</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The axisRotationAngle should works in latest version (AC27.2.0). If you still meet the problem please try the following code (I just added two lines as first):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="cpp"&gt;    element.header.type = API_ColumnID;
    GSErrCode err = ACAPI_Element_GetDefaults (&amp;amp;element, &amp;amp;memo);

    element.column.head.floorInd = short(storey);

    element.column.origoPos = beg;
    element.column.coreAnchor = 6;

    element.column.relativeTopStory = 0;
    element.column.height = height;
    element.column.bottomOffset = baseOffset;
    element.column.isSlanted = true;
    memo.columnSegments[0].assemblySegmentData.isWidthAndHeightLinked = false;
    memo.columnSegments[0].assemblySegmentData.nominalWidth = width;
    memo.columnSegments[0].assemblySegmentData.nominalHeight = breadth;
    element.column.axisRotationAngle = 0.785398;

    err = ACAPI_Element_Create(&amp;amp;element, &amp;amp;memo);&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 May 2024 03:22:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Issue-with-Column-Rotation-in-Code/m-p/603225#M9348</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2024-05-11T03:22:26Z</dc:date>
    </item>
  </channel>
</rss>

