cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

Font handling with the API

julienK
Advocate

Hi,

 

I Can't figure out how to use fonts with the API.

I have a dialog with a font popup,  then try to use the selected font to create a text element.

 

element.text.font is of type short, but I can't figure out how to retreive a short value from the fontpopup in the dialog.

 

I looked at the  Element_test, DG_Test  in the API exemple, but everywhere the font is hardcoded or use ACAPI_Element_GetDefaults.

 

Any help appreciated.

0 REPLIES 0