BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Font Index numbers

poco2013
Mentor
Wondering if there is a listing of the available Fonts in Archicad and their index number?
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Ralph Wessel
Mentor
I think you'll find the available fonts match those installed on your machine, so it will vary from on installation to another.

Consequently, I also suspect that the font indices won't necessarily be consistent either.
Ralph Wessel BArch

View solution in original post

3 REPLIES 3
Solution
Ralph Wessel
Mentor
I think you'll find the available fonts match those installed on your machine, so it will vary from on installation to another.

Consequently, I also suspect that the font indices won't necessarily be consistent either.
Ralph Wessel BArch
poco2013
Mentor
Bummer!!

Setting the font for text output requires a Font index number not a Font name.

So I guess i'll have to use the getattribute function to get the index first? - seems like a roundabout way?
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
Ralph Wessel
Mentor
It's not so bad - you can use ACAPI_Attribute_Search to look up the font by name, which gives you just the attribute header (including the index) without loading the whole attribute.
Ralph Wessel BArch
Learn and get certified!

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!