← Projects

COGO label conflict resolver

A Civil 3D plugin that finds overlapping COGO point labels and resolves them automatically — rotating labels, adding leaders, or flagging the ones it can’t fix.

Built in a previous role. Details are kept high-level; no code, drawings, or project data are shown.

Problem

In dense drawings, COGO point labels pile on top of each other and become hard or impossible to read. Fixing them meant adjusting labels by hand.

TODO: add the scale of the problem — for example how many points a typical drawing had, or how long cleanup took.

Approach

The plugin runs inside AutoCAD Civil 3D and works in four steps:

  • Choose the scope. A selection dialog runs the resolver on all points, a single point group, or a manual selection.
  • Only compare neighbors. A spatial grid index buckets labels by location, so each label is checked against nearby labels instead of every label in the drawing.
  • Detect real overlaps. Label footprints are tested with the separating axis theorem (SAT), which also handles rotated labels.
  • Resolve or flag. Each conflict is resolved by rotating the label or adding a leader. Conflicts it can’t resolve are flagged for review.
Flow diagram. The user selects points: all, a point group, or a manual selection. Labels are placed into a spatial grid index. Only labels in nearby grid cells are compared. Each pair is tested for overlap with the separating axis theorem. Overlaps are resolved by rotating the label or adding a leader; anything left is flagged for review.
Diagram description

Flow diagram. The user selects points: all, a point group, or a manual selection. Labels are placed into a spatial grid index. Only labels in nearby grid cells are compared. Each pair is tested for overlap with the separating axis theorem. Overlaps are resolved by rotating the label or adding a leader; anything left is flagged for review.

Demo

DemoTODO: optional. If you can recreate it on a sample drawing with made-up points (no client data), record a short before/after capture (16:9, e.g. 1600×900 MP4).

Results

  • TODO: add results — for example typical time saved per drawing, or the share of conflicts resolved automatically.

Stack

  • VB.NET
  • AutoCAD Civil 3D
  • .NET API
  • Computational geometry
  • Spatial indexing

Code available on request for interviews.