cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

Stairs rendered with incorrect number of steps

roni
Booster

Hi,
I was trying to render a stair with custom parameters, which include fields like

totalHeight, 

riserHeight

treadDepth

stepNum

treadNum

treadDepthLocked = true

rules.riserHeightMaxValue (same as riserHeight)

rules.treadDepthMaxValue (same as treadDepth)

rules.ruleMaxValue (2*riserHeight + treadDepth)


After rendering the steps using ACAPI_Element_Create, stepNum, riserHeight and treadDepth will be different.
Now I found a quick fix for this by using edit element function ACAPI_Element_Change.
I will edit stepNum, riserHeight and treadDepth fields and call ACAPI_Element_Change, this time it will render exactly how I expect.
Is there any way where I can have create stair in the first go itself?
Also want to know more about this behaviour. 

0 REPLIES 0

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!