<?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 Rectangle Column? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/API-How-to-create-Rectangle-Column/m-p/358079#M1175</link>
    <description>&lt;P&gt;Hi Bernd&lt;/P&gt;&lt;P&gt;Thank you so much!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;SPAN&gt;it works!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 00:10:09 GMT</pubDate>
    <dc:creator>Yeojin</dc:creator>
    <dc:date>2022-10-06T00:10:09Z</dc:date>
    <item>
      <title>API: How to create Rectangle Column?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/API-How-to-create-Rectangle-Column/m-p/357919#M1173</link>
      <description>&lt;P&gt;Hi Everyone.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I practice to create Add-On that create rectangle columns but its doesn't work to control core width / height and structure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already try this post solution but it's not working to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.Graphisoft.com/t5/Developer-forum/AC24-how-to-change-rectangle-columns-section-width-and-height/m-p/305729/thread-id/8575" target="_self"&gt;https://community.Graphisoft.com/t5/Developer-forum/AC24-how-to-change-rectangle-columns-section-width-and-height/m-p/305729/thread-id/8575&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to write a column that modified the parameters I marked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 675px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30402i1554EB317879A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.png" style="width: 675px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30403i40AE0A53F4FFBBDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic2.png" alt="pic2.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;How can I modify the code?&amp;nbsp;&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="cpp"&gt;column.column.origoPos.x = data.begX;		
column.column.origoPos.y = data.begY;		

column.column.relativeTopStory = 0;

column.columnSegment.assemblySegmentData.circleBased = 0;	//rectangular(=false)
column.columnSegment.assemblySegmentData.isWidthAndHeightLinked = 0; // false
column.columnSegment.assemblySegmentData.nominalWidth = data.height;	//Nominal width of segment.
column.columnSegment.assemblySegmentData.nominalHeight = data.level;	//Normal height of segment.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 03:23:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/API-How-to-create-Rectangle-Column/m-p/357919#M1173</guid>
      <dc:creator>Yeojin</dc:creator>
      <dc:date>2022-10-06T03:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Rectangle Column?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/API-How-to-create-Rectangle-Column/m-p/358034#M1174</link>
      <description>&lt;P&gt;Hi Yeojin,&lt;BR /&gt;&lt;BR /&gt;There a few details wrong in the code you provided. Here's an example on how I would fix it:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;columnElement.column.origoPos.x = data.begX;		
columnElement.column.origoPos.y = data.begY;		

columnElement.column.bottomOffset = 2; // this is the column base level in meters relative to it's floor

columnMemo.columnSegments[0].assemblySegmentData.circleBased = 0;	//rectangular(=false)
columnMemo.columnSegments[0].assemblySegmentData.isWidthAndHeightLinked = 0; // false
columnMemo.columnSegments[0].assemblySegmentData.nominalWidth = data.height;	//Nominal width of segment.
columnMemo.columnSegments[0].assemblySegmentData.nominalHeight = data.level;	//Normal height of segment.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;It's important to differentiate between the element and the element memo! Also you have to specify the width/weight for a specific column Segment. In the code above i used columnSegments[0]. You would have to adjust the code if the column has more than one segment.&lt;BR /&gt;&lt;BR /&gt;`columnElement.column.bottomOffset` corresponds to the lower marks in your first picture.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 12:32:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/API-How-to-create-Rectangle-Column/m-p/358034#M1174</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2022-10-05T12:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Rectangle Column?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/API-How-to-create-Rectangle-Column/m-p/358079#M1175</link>
      <description>&lt;P&gt;Hi Bernd&lt;/P&gt;&lt;P&gt;Thank you so much!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;SPAN&gt;it works!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 00:10:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/API-How-to-create-Rectangle-Column/m-p/358079#M1175</guid>
      <dc:creator>Yeojin</dc:creator>
      <dc:date>2022-10-06T00:10:09Z</dc:date>
    </item>
  </channel>
</rss>

