Archicad 28 C++ API
Loading...
Searching...
No Matches
API_GridType Struct Reference

The grid parameters. More...

#include <APIdefs_Database.h>

Public Attributes

double spaceMainX
 The main grid's horizontal spacing in meters.
 
double spaceMainY
 The main grid's vertical spacing in meters.
 
short nLineMainX
 The number of horizontal lines in the main grid.
 
short nLineMainY
 The number of vertical lines in the main grid.
 
bool gridSwitch
 true if grid is visible
 
double spaceAuxX
 The horizontal spacing of the auxiliary grid in meters.
 
double spaceAuxY
 The vertical spacing of the auxiliary grid in meters.
 
short nLineAuxX
 The number of horizontal auxiliary grid lines.
 
short nLineAuxY
 The number of vertical auxiliary grid lines.
 
unsigned char gridMode
 Gravity to the grid; 0 : none, 1 : grid, 2 : snap.
 
double snapOffsX
 The snap grid's horizontal offset in meters.
 
double snapOffsY
 The snap grid's vertical offset in meters.
 
double snapStepX
 The snap grid's horizontal spacing in meters.
 
double snapStepY
 The snap grid's vertical offset in meters.
 
short status
 status of the grid
 
double gridAngle
 rotation angle of the grid, relative to horizontal
 
double gridOffsX
 X offset of the grid.
 
double gridOffsY
 Y offset of the grid.
 
double gridOffsZ
 Z offset of the grid.
 
API_RGBAColor backColor
 background color. Transparency is effective only in the Model window.
 
API_RGBAColor gridColor
 color of main grid lines. Transparency is effective only in the Model window.
 

Detailed Description

The grid parameters.

Remarks
Each database window may have different grid setting parameters. To get the actual settings associated to a database use the ACAPI_Window_GetGridSettings function; to change the parameters refer to the ACAPI_Window_ChangeGridSettings function.