C1 - Grid Reference
C1 - Grid Reference
Script Family
Series C - Plan Production
Purpose
Generates coordinate grid references for selected viewports in a drawing layout.
When to Use
Use C1 during layout production when a standard plan or other viewport requires coordinate grid references.
Inputs
- Target layout.
- Viewport identification point.
- Grid Reference Style: Grid Cross or Grid Line.
- Grid Interval, with 0 indicating automatic calculation.
- Optional note for lower-left sheet corner coordinate.
- Optional Model Space viewport boundary plotting.
Outputs
- Grid reference elements in the layout.
- Optional lower-left sheet corner note.
- Optional viewport boundary polyline in Model Space.
Workflow Summary
- Open the target layout in Civil 3D.
- Identify the viewport using a point inside it.
- Choose Grid Cross or Grid Line style.
- Define the grid interval or keep 0 for automatic interval selection.
- Configure optional outputs.
- Run the script to generate the grid reference.
Related HAPI Concepts
Related File Formats
None directly.
Reverse-Engineering Notes
When reverse-engineering this Dynamo graph, identify:
- How the selected viewport is detected from a point.
- How clipped and rotated viewport boundaries are handled.
- How the automatic grid interval is calculated.
- How the grid is regenerated or retained when an existing grid exists.
- How layout-space and model-space elements are separated.
Source Basis
- Primary source:
HAPI User Manual.pdf, Section 2.5.1. - This note is a manual-facing script overview, not a PythonNet3 implementation specification.
Open Questions
- Confirm exact grid interval calculation rules from the current script if needed for code migration.