SOLVED!
Structural Display List and Scale List
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-03-30
01:15 PM
- last edited on
‎2021-09-14
09:50 AM
by
Noemi Balogh
‎2021-03-30
01:15 PM
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.
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.
Solved! Go to Solution.
Labels:
- Labels:
-
Add-On (C++)
1 ACCEPTED SOLUTION
Accepted Solutions
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-03-30 06:18 PM
‎2021-03-30
06:18 PM
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.
1 REPLY 1
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-03-30 06:18 PM
‎2021-03-30
06:18 PM
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.