← Inbox

C3DO-0747 · 261101 point group style names (read-only) [C3D-LEGREAD3] done

Read-only: point and label style name per point group.

Script file
C3DO-0747.cs
Target
261101 - 5491 Roswell Rd NE R2.dwg · model space
Author
claude
Approved
yes · read-only
Timeout
60s

C# payload

var cd=CivilDoc;
foreach(ObjectId id in cd.PointGroups){ var g=(Autodesk.Civil.DatabaseServices.PointGroup)Tx.GetObject(id,OpenMode.ForRead);
 string s="-",l="-";
 try{ var sid=g.PointStyleId; s=sid.IsNull?"<none>":((Autodesk.Civil.DatabaseServices.Styles.StyleBase)Tx.GetObject(sid,OpenMode.ForRead)).Name; }catch(Exception ex){ s="ERR "+ex.Message; }
 try{ var lid=g.PointLabelStyleId; l=lid.IsNull?"<none>":((Autodesk.Civil.DatabaseServices.Styles.StyleBase)Tx.GetObject(lid,OpenMode.ForRead)).Name; }catch(Exception ex){ l="ERR "+ex.Message; }
 Log("PG "+g.Name+" n="+g.PointsCount+" style="+s+" label="+l); }

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\261101 - Project\261101 - 5491 Roswell Rd NE R2.dwg
Message
Executed C3DO-0747 (0 entities touched).
Entities
—
Duration
364 ms
Civil 3D
25.0.0.0

Log

PG UTIL n=8 style=Test Pit label=Description Only
PG POB n=1 style=Drill Hole label=Northing and Easting
PG IPF NS n=6 style=Iron Pin label=Description Only [IPF]
PG PP n=2 style=Utility Pole label=<none>
PG MH n=2 style=Storm Sewer Manhole label=<none>
PG FF n=2 style=Basic label=Elevation and Description
PG GAS n=1 style=Gas METER label=<none>
PG No Display n=237 style=<none> label=<none>
PG Copy of TBC n=29 style=Test Pit label=Description Only
PG FH n=0 style=Hydrant (existing) label=<none>
PG WM n=0 style=Water Valve label=<none>
PG BUILDING n=18 style=Basic label=Description Only
PG NORTHING_EASTING n=0 style=Iron Pin [LARGE] label=Northing and Easting
PG FENCE n=10 style=Basic label=Point#-Elevation-Description
PG Display [SPECIFIC] n=64 style=Basic label=Description Only
PG TOPO n=186 style=Basic label=Point#-Elevation-Description
PG WALL ELEV n=11 style=Sign (single pole) label=Elevation and Description
PG TREES n=0 style=Tree label=Description Only
PG TBC n=40 style=Test Pit label=<none>
PG _All Points n=237 style=Basic label=Point#-Elevation-Description

Notes

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

No notes yet.