Got a minute? We appreciate your feedback:

Graphisoft Learn survey
Archicad C++ API
About Archicad add-on development using the C++ API.

[API] how to set "element.column.linkToSettings.homeStoryDifference"

Boling1
Contributor

Hi,guys

I can create column,but don't know how to cennect to uper story? 

 

GSErrCode err = ACAPI_Element_GetDefaults(&element, &memo);  //setting: column connect to upper story but //don't work

element.column.axisRotationAngle = 0; 

point.x = 0;

point.y = 1; 

element.column.origoPos = point;

//Use this structure during element creation. If it is true, then head.floorInd will not be taken into account, //otherwise homeStoryDifference will be filled.

element.column.linkToSettings.newCreationMode = false;  

 element.column.linkToSettings.homeStoryDifference = ?????;

element.column.head.floorInd = ???;
......

err = ACAPI_Element_Create(&element, &memo); 

 

how to set "head.floorInd" or "homeStoryDifference"

 

ArchiCAD 25
1 ACCEPTED SOLUTION
1 REPLY 1

Solution
poco2013
Mentor

To Link to upper stories:

element.column.relativeTopStory = (short)  where 0 = not linked # = stories above

column segments will be proportional to height if set as such. Also set "show on relative stories"

offsets are both in element and memo.

 

Unless your asking something else??

 

Gerry

Windows 10 - Visual Studio 2019; ArchiCAD 26

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!