UTMGRID — UTM Grid
Draws the labelled coordinate grid, north arrow and scale bar in a layout viewport.
- Command:
UTMGRID· Global name:_UTMGRID· Alias:CUADRICULAUTM - Ribbon: Topography › Terrain data
Draws in a layout viewport the coordinate grid (UTM or another projected system) with the coordinates labelled along the frame, the north arrow and the scale bar, as on survey plans. They are all ordinary paper space entities (lines, texts, polylines and solids), clipped to the viewport frame and following the scale and twist of its view.
Usage
- Switch to a layout with viewports (not inside a viewport).
- Enter UTMGRID or click UTM Grid in the Terrain data panel of the Topography tab.
Select viewports or [Update] <all in the layout>:
- Select the viewports or press Enter for all of them in the layout.
Enter to draw or [Interval/Lines/Crosses/Height/North/Scalebar] <interval …, …, height …, north …, scale bar …>:
- Change any options and press Enter to draw.
Options
- Interval: line spacing in ground metres (0: automatic, a round value giving about 6 lines along the long side of the viewport).
Grid interval in metres (0 = automatic):
- Lines / Crosses: lines across the viewport, or crosses at the intersections with ticks on the frame.
- Height: label height on paper (0: 2.5 mm, or 0.1 in when the sheet is in inches).
Text height on paper (0 = automatic):
- North: draws the north arrow or not.
- Scalebar: draws the scale bar and the numeric scale or not.
- Update (at the first prompt): redraws every grid of the layout with its options, e.g. after panning, zooming or twisting a viewport. Grids of deleted viewports are deleted.
What it draws
- Grid on layer CUADRICULA_UTM and labels (E … and N …, with the decimal separator of the language) on CUADRICULA_UTM_TEXTO, outside the frame and parallel to each line; labels that would fall on a corner are skipped.
- North on layer NORTE, top right inside the viewport: the arrow points to grid north. If the drawing has a coordinate system (GEOGRAPHICLOCATION), the grid convergence is labelled and, above 0.05°, a line marks true north (TN).
- Scale bar on layer ESCALA_GRAFICA, bottom left: four segments of a round length (in metres) and the numeric scale (Scale 1:N) from the viewport scale.
Notes
- In a georeferenced drawing the coordinates are those of the drawing coordinate system (with its reference point, rotation and scale); otherwise the drawing coordinates. A geographic system (degrees) does not work: choose a projected one.
- Running it again on a viewport that already has a grid replaces it. The entities carry
LINCE_CUADUTMXDATA with the viewport and the options. - Plan views only. Viewports with a non-rectangular boundary are clipped to their rectangle.
- AutoCAD 2027 audits the DWG 2018 and 2000 files without errors, and their lines, taken from paper to model, fall on the grid.