← Inbox

C3DO-0711 · 261101 point styles + group draw order (read-only) done

Read-only: point style and point label style names, and the point groups in draw order with their styles.

Script file
C3DO-0711.cs
Target
261101 - 5491 Roswell Rd NE.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload


var civ=CivilDoc;
foreach(ObjectId sid in civ.Styles.PointStyles){ var st=(Autodesk.Civil.DatabaseServices.Styles.PointStyle)Tx.GetObject(sid,OpenMode.ForRead); Log("PSTYLE "+st.Name); }
foreach(ObjectId sid in civ.Styles.LabelStyles.PointLabelStyles.LabelStyles){ var st=(Autodesk.Civil.DatabaseServices.Styles.LabelStyle)Tx.GetObject(sid,OpenMode.ForRead); Log("LSTYLE "+st.Name); }
int i=0; foreach(ObjectId id in civ.PointGroups.DrawOrder){ var g=(Autodesk.Civil.DatabaseServices.PointGroup)Tx.GetObject(id,OpenMode.ForRead);
 string ps=g.PointStyleId.IsNull?"<none>":((Autodesk.Civil.DatabaseServices.Styles.PointStyle)Tx.GetObject(g.PointStyleId,OpenMode.ForRead)).Name;
 string ls=g.PointLabelStyleId.IsNull?"<none>":((Autodesk.Civil.DatabaseServices.Styles.LabelStyle)Tx.GetObject(g.PointLabelStyleId,OpenMode.ForRead)).Name;
 Log("ORDER["+(i++)+"] "+g.Name+" n="+g.PointsCount+" style="+ps+" label="+ls); }

Result

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

Log

PSTYLE Horizontal Curve Point
PSTYLE Water Shutoff
PSTYLE Benchmark
PSTYLE Gas Valve
PSTYLE Vertical Curve Point
PSTYLE Guy Pole
PSTYLE STA
PSTYLE Bound
PSTYLE Shrub - 5ft
PSTYLE Iron Pin [LARGE]
PSTYLE Catch Basin
PSTYLE Sign (single pole)
PSTYLE Storm Sewer Manhole
PSTYLE Utility Pole
PSTYLE Well
PSTYLE Tree
PSTYLE Iron Pin
PSTYLE Sanitary Sewer Manhole
PSTYLE Hydrant (proposed)
PSTYLE Gas METER
PSTYLE Basic
PSTYLE Drill Hole
PSTYLE Standard
PSTYLE Water Valve
PSTYLE Hydrant (existing)
PSTYLE Test Pit
LSTYLE Description Only [IPF]
LSTYLE Point#-Elevation-Description [HANDICAP]
LSTYLE Elevation Only
LSTYLE Elevation and Description
LSTYLE Northing and Easting
LSTYLE Point Number Only
LSTYLE Point# and Description
LSTYLE Point#-Elevation-Description
LSTYLE Description Only
ORDER[0] POB n=0 style=Drill Hole label=Northing and Easting
ORDER[1] IPF NS n=4 style=Iron Pin label=Description Only [IPF]
ORDER[2] PP n=2 style=Utility Pole label=<none>
ORDER[3] Copy of TBC n=29 style=Test Pit label=Description Only
ORDER[4] MH n=2 style=Storm Sewer Manhole label=<none>
ORDER[5] UTIL n=6 style=Test Pit label=Description Only
ORDER[6] FH n=0 style=Hydrant (existing) label=<none>
ORDER[7] WM n=0 style=Water Valve label=<none>
ORDER[8] FF n=2 style=Basic label=Elevation and Description
ORDER[9] GAS n=1 style=Gas METER label=<none>
ORDER[10] TBC n=40 style=Test Pit label=<none>
ORDER[11] BUILDING n=18 style=Basic label=Description Only
ORDER[12] No Display n=234 style=<none> label=<none>
ORDER[13] NORTHING_EASTING n=0 style=Iron Pin [LARGE] label=Northing and Easting
ORDER[14] FENCE n=10 style=Basic label=Point#-Elevation-Description
ORDER[15] Display [SPECIFIC] n=64 style=Basic label=Description Only
ORDER[16] TOPO n=184 style=Basic label=Point#-Elevation-Description
ORDER[17] WALL ELEV n=10 style=Sign (single pole) label=Elevation and Description
ORDER[18] TREES n=0 style=Tree label=Description Only
ORDER[19] _All Points n=234 style=Basic label=Point#-Elevation-Description

Notes

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

No notes yet.