← Inbox

C3D-0347 · Re-read the point groups and their assigned point/label styles [C3D-SOCHK] done

Read-only. Lists every point group with its current member count, point style and label style, plus member numbers for the small groups.

Script file
C3D-0347.cs
Target
active · model space
Author
claude
Approved
yes · auto-auth
Timeout
120s

C# payload

// Current point-display setup, as it stands right now.
var civ = Autodesk.Civil.ApplicationServices.CivilApplication.ActiveDocument;
Log("drawing: " + Db.Filename);
Log("");
foreach (ObjectId gid in civ.PointGroups) {
    var g = Tx.GetObject(gid, OpenMode.ForRead) as Autodesk.Civil.DatabaseServices.PointGroup;
    if (g == null) continue;
    uint[] nums = null;
    try { nums = g.GetPointNumbers(); } catch { }
    string ps = "(none)", ls = "(none)";
    try { if (!g.PointStyleId.IsNull) ps = ((Autodesk.Civil.DatabaseServices.Styles.PointStyle)Tx.GetObject(g.PointStyleId, OpenMode.ForRead)).Name; } catch { }
    try { if (!g.PointLabelStyleId.IsNull) ls = ((Autodesk.Civil.DatabaseServices.Styles.LabelStyle)Tx.GetObject(g.PointLabelStyleId, OpenMode.ForRead)).Name; } catch { }
    Log(string.Format("{0,-22} n={1,4}   style=\"{2}\"   label=\"{3}\"",
        g.Name, nums == null ? -1 : nums.Length, ps, ls));
    if (nums != null && nums.Length > 0 && nums.Length <= 20) {
        var s = new System.Text.StringBuilder("        ");
        foreach (var u in nums) s.Append(u).Append(" ");
        Log(s.ToString());
    }
}

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260714 - 285 Huckaby Rd, Brooks, GA 30205, USA\260714 - 285 Huckaby Rd R2 SO.dwg
Message
Executed C3D-0347 (0 entities touched).
Entities
Duration
388 ms
Civil 3D
25.0.0.0

Log

drawing: C:\Users\sanja\OneDrive\_SurveyDisco\260714 - 285 Huckaby Rd, Brooks, GA 30205, USA\260714 - 285 Huckaby Rd R2 SO.dwg

CL                     n=  11   style="Bound"   label="(none)"
        102 357 356 355 354 353 352 351 350 349 149 
CP                     n=   3   style="Iron Pin"   label="Point#-Elevation-Description"
        524 529 535 
PP                     n=   1   style="Utility Pole"   label="(none)"
        347 
POB                    n=   1   style="Drill Hole"   label="Northing and Easting"
        534 
IPF NS                 n=  13   style="Iron Pin"   label="Point#-Elevation-Description"
        364 510 406 500 520 521 522 523 525 526 527 528 531 
MH                     n=   0   style="Storm Sewer Manhole"   label="(none)"
FH                     n=   0   style="Hydrant (existing)"   label="(none)"
FF                     n=   1   style="Basic"   label="Elevation and Description"
        509 
GAS                    n=   2   style="Gas METER"   label="(none)"
        511 506 
TBC                    n=   0   style="Test Pit"   label="(none)"
No Display             n= 164   style="(none)"   label="(none)"
BUILDING               n=   9   style="Basic"   label="Description Only"
        171 166 165 162 159 151 150 147 144 
NORTHING_EASTING       n=   0   style="Iron Pin [LARGE]"   label="Northing and Easting"
FENCE                  n=  43   style="Basic"   label="Point#-Elevation-Description"
Display [SPECIFIC]     n=  73   style="Basic"   label="Description Only"
TOPO                   n= 140   style="Basic"   label="Point#-Elevation-Description"
WALL ELEV              n=   6   style="Sign (single pole)"   label="Elevation and Description"
        143 159 175 158 140 139 
TREES                  n=   0   style="Tree"   label="Description Only"
WALL                   n=  14   style="Test Pit"   label="Description Only"
        348 345 344 343 342 341 340 339 338 337 336 335 334 333 
UTIL                   n=   4   style="Test Pit"   label="Description Only"
        102 148 164 149 
WM                     n=   1   style="Water Valve"   label="(none)"
        164 
_All Points            n= 164   style="Basic"   label="Point#-Elevation-Description"

Notes

What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.

No notes yet.