Properties |
Methods |
The background grid that makes the creation of model vertices and edges easier.
The Grid object represents the background grid that makes the creation of model vertices and edges easier. Unlike the QuickField graphic user interface, the Model, not ModelWindow, possesses the grid. You can get it by the Grid property of the Model.
You can get and set the Origin of the grid as Point and the cell size by Spacing property as Point. You can choose different values for cell size in x and y direction giving non-equal values for the X and Y property of the Point.
The grid cell size affects the vertices and edges creation process in two ways:
If the AutoSnap property of Shapes collection is True, each vertex you create automatically aligns to the nearest node of the grid.
Even if the AutoSnap mode is switched off, you can snap any point to the grid manually using the Snap method of the Grid object.
Without regard to AutoSnap mode, the grid cell size is considered as an attraction distance parameter that plays an important role when QuickField makes a decision about coinciding edges or vertices. If the distance between a newly created vertex or edge and an existing one is less than attraction distance, it will be not created or attracted to the neighboring edge. So you may need to set a desired value to the grid cell size even if you do not use the snap to grid feature.