BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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
Learn and get certified!

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!