C3D-0640 · Read U1 points + label styles (read-only) [C3D-RDU1] done
Points 7777/7778 and existing storm label properties.
C# payload
foreach(var hs in new[]{"307DC","307E0","30830","30831","30832","4AF47","3082B"}){ ObjectId id; Db.TryGetObjectId(new Handle(Convert.ToInt64(hs,16)),out id); var e=Tx.GetObject(id,OpenMode.ForRead);
var m=e as MText; if(m!=null){ var st=(TextStyleTableRecord)Tx.GetObject(m.TextStyleId,OpenMode.ForRead); Log(hs+" MT h="+m.TextHeight+" rot="+(m.Rotation*180/Math.PI).ToString("F3")+" att="+m.Attachment+" w="+m.Width+" style="+st.Name+" col="+m.Color+" loc="+m.Location.X.ToString("F2")+","+m.Location.Y.ToString("F2")+","+m.Location.Z.ToString("F2")+" bg="+m.BackgroundFill+" contents="+m.Contents); }
var l=e as Line; if(l!=null) Log(hs+" LINE "+l.StartPoint+" -> "+l.EndPoint+" ang="+(l.Angle*180/Math.PI).ToString("F3")); }
var cps=CivilDoc.CogoPoints; foreach(ObjectId id in cps){ var p=(Autodesk.Civil.DatabaseServices.CogoPoint)Tx.GetObject(id,OpenMode.ForRead); if(p.PointNumber==7777||p.PointNumber==7778||p.PointNumber==680) Log("PT "+p.PointNumber+" "+p.Easting.ToString("F2")+","+p.Northing.ToString("F2")+" z="+p.Elevation.ToString("F2")+" "+p.RawDescription+" layer="+p.Layer); }
Result
Log
307DC MT h=3 rot=0.000 att=BottomLeft w=0 style=SIMPLEX col=BYLAYER loc=2296551.89,1279965.89,0.00 bg=False contents=DI-RISER A1\PRIM 727.31\PINV 717.20\P2' ROUND 307E0 MT h=3 rot=0.000 att=BottomLeft w=0 style=SIMPLEX col=BYLAYER loc=2296624.93,1280028.29,0.00 bg=False contents=DI-RISER B1\PRIM 727.67\PINV 724.90 (6" HDPE)\PINV 722.37 (24" CMP)\PBOT 716.57 (18" CONC) 30830 MT h=3 rot=270.076 att=MiddleCenter w=0 style=SIMPLEX col=BYLAYER loc=2296579.98,1280115.02,0.00 bg=False contents=122.60' - 18" ALTyp2 30831 MT h=3 rot=270.076 att=MiddleCenter w=0 style=SIMPLEX col=BYLAYER loc=2296573.98,1280115.01,0.00 bg=False contents=1.21% 30832 MT h=3 rot=276.268 att=MiddleCenter w=0 style=SIMPLEX col=BYLAYER loc=2296584.62,1280012.36,0.00 bg=False contents=83.87' - 18" ALTyp2 4AF47 LINE (2296601.184,1280016.335,725.32) -> (2296618.4213,1280009.7287,724.9) ang=339.030 3082B LINE (2296681.174,1280015.2259,0) -> (2296618.4213,1280009.7287,0) ang=185.006 PT 7777 2296601.52,1280016.76 z=725.32 DI INV CURB layer=0 PT 7778 2296601.18,1280016.33 z=726.80 DI U1 layer=0
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.