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

Structural Display List and Scale List

Nayan
Booster
I am trying to show available Structure Display options and Scale options in Popup control. But can't find any function that return the the list of Structure Display and Scale configuration.
Though I have found "APIEnv_​GetStructureDisplayID" that returns structure display options for the current database and "APIDb_​GetDrawingScaleID" returns the drawing scale of the current database.
But I need to find the list.
Can anyone kindly help me on this?
Here are the images that I am trying to achieve.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Viktor Kovacs
Graphisoft
Graphisoft
The possible values for structure display are simply the possible values of this enum:

typedef enum {
	API_EntireStructure,
	API_CoreOnly,
	API_WithoutFinishes,
	API_StructureOnly
} API_StructureDisplay;
Scale is a bit trickier. It is stored as a single double value so there is no list of scales (it can be custom). I think this scale list is only a UI magic to make easy to set predefined scales.

View solution in original post

1 REPLY 1
Solution
Viktor Kovacs
Graphisoft
Graphisoft
The possible values for structure display are simply the possible values of this enum:

typedef enum {
	API_EntireStructure,
	API_CoreOnly,
	API_WithoutFinishes,
	API_StructureOnly
} API_StructureDisplay;
Scale is a bit trickier. It is stored as a single double value so there is no list of scales (it can be custom). I think this scale list is only a UI magic to make easy to set predefined scales.

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!