Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

[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

Solution
poco2013
Advisor

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 25

View solution in original post

1 REPLY 1

Solution
poco2013
Advisor

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 25

View solution in original post

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!