cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
PetteriHeiskari
Booster

Get profile wall's nominal height

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

1 Solution

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

 

Go to post

5 Replies 5
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.

 

PetteriHeiskari
Booster

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

 

Matteods
Enthusiast

Sorry my bad 🙂 I didn't see that there was also an API purpose 

PetteriHeiskari
Booster

Thank you very much - this works!

 

Petteri

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!