Streamline your workflows and master BIM coordination! Program starts April 28!

Archicad C++ API
About Archicad add-on development using the C++ API.

Get profile wall's nominal height

PetteriHeiskari
Contributor

Hello all, so I need to get this nominal height of a profile wall - any ideas?

PetteriHeiskari_0-1743687207909.png

 

Total height is reported in wall.height

 

Cheers and good coding!

 

Petteri / ArchiFrame-coder

3 REPLIES 3
Matteods
Enthusiast

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.

Matteods_0-1744671223859.png

Greetings,

Matteo.

 

Thank you Matteo!

 

My problem is how to get this nominal height value from Archicad C/C++ API.

 

Cheers!

 

Petteri

Oleg
Expert

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();

 

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!