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.

Curtain Wall - Geometry and Posisioning

ReignBough
Enthusiast
I am looking for a way to get the following information about the curtain wall:

- Curtain Wall Height
- Bottom Offset to Home Story
- Nominal Thickness
- Slant Angle
- Reference Line Offset

Based on the documentation, the following could be the values that I am looking for, respectively:

- height *
- storyRelLevel (EDIT: this is actually found on planeMatrix but you need some more calculations)
- nominalWidth
- angle *
- planeOffset

* Based on the documentation, these two are for input only.

Only nominalWidth has value and everything else is 0.0.

Where and how can I get these other values?


curtainwall.png

~ReignBough~
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
4 REPLIES 4
ReignBough
Enthusiast
I temporarily use the following codes to get the height and storyRelLevel:
API_Box3D extent;
ACAPI_Database(APIDb_CalcBoundsID, &cwall.head, &extent);
double cwHt = extent.zMax - extent.zMin;
API_StoryType story;
GetStoryType(cwall.head.floorInd, &story);
double cwLv = extent.zMin - story.level;
*GetStoryType() function returns API_StoryType of a given floor index.
~ReignBough~
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Anonymous
Not applicable
Hey there, I also have been exploring some of the attributes of the curtain wall that the API provides. I was trying to figure out how to manipulate the "Bottom Offset to Home Story".

You say that it is the storyRelLevel, however whatever the value I write there there is no change in the Curtain Wall created by the addon.

Other strange behavior of the curtain wall is that whenever I create it at a story different from the story 0, it automatically changes the value of "Bottom Offset to Home Story" so that it remains physically on story 0.

Do you have any idea of how to fix this?
ReignBough
Enthusiast
Sorry if you misunderstood what my original post was, Xylios. But I said that those variable could be the values that I am looking for. But to answer your question, based on the documentation of ACAPI_Element_Change, curtain wall is not editable (v17 & v18, not sure about other versions).
~ReignBough~
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Anonymous
Not applicable
Hey, thank you for replying and sorry for the misunderstanding. =]

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!