3 weeks ago
Hello all, so I need to get this nominal height of a profile wall - any ideas?
Total height is reported in wall.height
Cheers and good coding!
Petteri / ArchiFrame-coder
a week ago
Hi ,
when you open your complex profile you have the option Nominal Height, turn it on.
Then you have an insertion point in your complex profie. The lowest edge of your complex profile should be in line with it.
Then the height of your complex profile has to match 2482,9, the nominal height option will help you.
Generally, try to think that your comlex profile is in a rectangle. The edge of this rectangle start where you have the insertion point and the height of this rectangle has to match your nominal height.
Greetings,
Matteo.
yesterday
Thank you Matteo!
My problem is how to get this nominal height value from Archicad C/C++ API.
Cheers!
Petteri
yesterday
Just an idea.
I guess, the nominal heigh is a parameter of a profile atribute.
Schematically
API_AttributeDefExt defs;
ApiClearIt(defs);
GSErrCode err = ACAPI_Attribute_GetDefExt(API_ProfileID, wall.profileAttr, &defs );
if (err != NoError || defs.profile_vectorImageItems == nullptr )
return;
Box2DData nominal_box;
ProfileVectorImageOperations::GetNominalBounds(*defs.profile_vectorImageItems, nominal_box);
double nominal_height = nominal_box.GetHeight();