API Column Example

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-13
10:18 PM
- last edited on
‎2021-09-15
12:37 PM
by
Noemi Balogh
‎2020-03-13
10:18 PM
I'm looking for an c++ example to draw a single segment column from scratch. The example in Element_Test uses the function "Do_Create_Column", However this does not explain the parameters needed to fill in the associated memo structure necessary to build the column. Do_Create_Column just uses Get_Default to copy in the default column settings without explanation.
My problem is that I need to set the cross section width and depth different from the defaults and I do not know what parameters in memo need be set or if they need be stacked in the coords parameter.
if someone could supply a simple example for a 2 x 4 x 8' rectangular column or just point me in the right direction -- much appreciated. The parameters within the API_ColumnType are self explanatory . Just need to work out the Memo structure for columns??
My problem is that I need to set the cross section width and depth different from the defaults and I do not know what parameters in memo need be set or if they need be stacked in the coords parameter.
if someone could supply a simple example for a 2 x 4 x 8' rectangular column or just point me in the right direction -- much appreciated. The parameters within the API_ColumnType are self explanatory . Just need to work out the Memo structure for columns??
Gerry
Windows 11 - Visual Studio 2022; ArchiCAD 27
Windows 11 - Visual Studio 2022; ArchiCAD 27
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-09-09 05:25 AM
‎2021-09-09
05:25 AM
I have the same problem,can anybody answer?
ArchiCAD 25
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-09-10 03:09 AM
‎2021-09-10
03:09 AM
@poco2013 have you get the parameters changed by code? ACAPI_Element_ChangeParameters or ACAPI_Element_Change should be used ?
ArchiCAD 25