← Inbox

C3DO-0789 · 261101 ALTA redline: curb/drive linework west of the W line (read-only) [C3D-ALTAREAD3] done

Read-only: every visible curve 1.5-45 ft outside the Roswell Rd line, as station/offset samples, to locate the two curb cuts.

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

C# payload

string F(double v)=>v.ToString("0.#");
var a=new Point2d(2232335.826,1420451.371); var b=new Point2d(2232331.615,1420625.39); var t=(b-a)/(b-a).Length;
var bt=(BlockTable)Tx.GetObject(Db.BlockTableId,OpenMode.ForRead);
var ms=(BlockTableRecord)Tx.GetObject(bt[BlockTableRecord.ModelSpace],OpenMode.ForRead);
foreach(ObjectId id in ms){ var en=Tx.GetObject(id,OpenMode.ForRead) as Curve; if(en==null) continue; var lr=(LayerTableRecord)Tx.GetObject(en.LayerId,OpenMode.ForRead); if(lr.IsFrozen||lr.IsOff) continue;
 if(en is Ray||en is Xline) continue; double L; try{ L=en.GetDistanceAtParameter(en.EndParam);}catch{continue;} if(L<=0||L>5000) continue; int n=Math.Max(2,(int)(L/2)); var s=new List<string>(); bool hit=false;
 for(int i=0;i<=n;i++){ Point3d p; try{ p=en.GetPointAtDist(L*i/n);}catch{continue;} var v=new Vector2d(p.X-a.X,p.Y-a.Y); double st=v.DotProduct(t); double d=-(t.X*v.Y-t.Y*v.X); if(st>-30&&st<210&&d<-1.5&&d>-45) hit=true; if(i%Math.Max(1,n/12)==0||i==n) s.Add(F(st)+"/"+F(d)); }
 if(hit) Log(en.GetType().Name+" "+en.Handle+" L="+en.Layer+" len "+F(L)+" | "+string.Join(" ",s)); }

Result

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

Log

Polyline 2142D L=SS-V-ROAD-CURB len 23.3 | -9.4/-11.9 -7.3/-11.9 -5.2/-12 -3.1/-12 -0.9/-12 1.2/-12 3.3/-12.1 5.4/-12.1 7.5/-12.1 9.6/-12.1 11.8/-12.2 13.9/-12.2
Polyline 2142E L=SS-V-ROAD-CURB len 20.2 | 13.9/-12.2 15.9/-12.1 17.8/-11.5 19.4/-10.3 20.6/-8.7 21.2/-6.8 21.3/-4.7 20.7/-2.8 19.6/-1.1 18/0.1 16/0.3
Polyline 2142F L=SS-V-ROAD-CURB len 21.4 | 51.8/-12.1 49.8/-11.6 48/-10.5 46.7/-8.8 46/-6.8 46.1/-4.6 46.9/-2.7 48.3/-1.1 50.2/-0.1 52.3/0.2 54.4/0.1
Polyline 21430 L=SS-V-ROAD-CURB len 130.8 | 51.8/-12.1 61.7/-14.3 71.5/-16.6 81.3/-18.9 91.1/-21.2 100.8/-23.5 110.6/-25.9 120.6/-26.4 130.7/-26.5 140.8/-26.6 150.8/-26.7 160.9/-26.8 171/-27 181/-27.1
Polyline 21431 L=SS-V-ROAD-CURB len 97.9 | 54.4/0.1 62.6/0.1 70.8/0 78.9/-0 87.1/-0.1 95.2/-0.2 103.4/-0.2 111.6/-0.3 119.7/-0.4 127.9/-0.4 136/-0.8 144.2/-1.3 152.3/-1.8
Polyline 214AC L=SS-V-WALK len 136.2 | 45.9/-5.2 55.7/-7.5 65.4/-9.9 75.1/-12.3 84.9/-14.6 94.6/-17 104.3/-19.3 114.1/-21.4 124.1/-21.5 134.1/-21.6 144.1/-21.6 154.1/-21.7 164.1/-21.2 174.1/-20.4 180.1/-20.1
Polyline 214BB L=SS-V-ROAD-CURB len 130.9 | 51.7/-12.6 61.6/-14.8 71.4/-17.1 81.2/-19.4 91/-21.7 100.8/-24 110.6/-26.4 120.6/-26.9 130.7/-27 140.7/-27.1 150.8/-27.2 160.9/-27.3 171/-27.5 181/-27.6
Polyline 214BC L=SS-V-ROAD-CURB len 22.9 | 51.8/-12.6 49.8/-12.2 48/-11.1 46.6/-9.6 45.7/-7.7 45.5/-5.6 45.9/-3.6 46.9/-1.8 48.4/-0.4 50.3/0.5 52.4/0.7 54.5/0.6
Polyline 214BE L=SS-V-ROAD-CURB len 23.3 | -9.4/-12.4 -7.3/-12.4 -5.2/-12.5 -3.1/-12.5 -0.9/-12.5 1.2/-12.5 3.3/-12.6 5.4/-12.6 7.5/-12.6 9.6/-12.6 11.8/-12.7 13.9/-12.7
Polyline 214BF L=SS-V-ROAD-CURB len 30.2 | 13.8/-12.7 15.8/-12.7 17.8/-12.1 19.4/-11 20.7/-9.4 21.6/-7.6 21.8/-5.6 21.6/-3.6 20.7/-1.8 19.4/-0.3 17.7/0.6 15.7/0.8 13.7/0.8 11.6/0.7 9.6/0.7 7.6/0.7
Polyline 214C0 L=SS-V-ROAD-CURB len 131.3 | 51.4/-14 61.2/-16.3 71.1/-18.5 80.9/-20.9 90.7/-23.2 100.6/-25.5 110.4/-27.9 120.4/-28.4 130.5/-28.5 140.6/-28.6 150.7/-28.7 160.8/-28.8 170.9/-29 181/-29.1
Polyline 214C2 L=SS-V-ROAD-CURB len 33.7 | 13.6/-14.2 15.7/-14.2 17.8/-13.7 19.6/-12.7 21.2/-11.3 22.4/-9.6 23.1/-7.6 23.3/-5.5 23.1/-3.5 22.3/-1.5 21.1/0.2 19.5/1.6 17.5/2.1 15.4/2.2 13.3/2.2 11.2/2.1 9.1/2.1
Polyline 214C3 L=SS-V-ROAD-CURB len 23.3 | -9.4/-13.9 -7.3/-13.9 -5.2/-14 -3.1/-14 -1/-14 1.2/-14 3.3/-14.1 5.4/-14.1 7.5/-14.1 9.6/-14.1 11.7/-14.2 13.9/-14.2
Polyline 214C4 L=SS-V-ROAD-CURB len 27.6 | 51.7/-14.1 49.7/-13.7 47.7/-12.8 46.1/-11.4 44.9/-9.7 44.2/-7.7 44/-5.6 44.3/-3.5 45.2/-1.6 46.6/0 48.3/1.3 50.2/2 52.4/2.2 54.5/2.1
Line 219B8 L=V-STRC-WALL len 4.6 | 152.3/2.8 152.3/0.5 152.3/-1.8
Polyline 219C3 L=SS-V-WALK len 107.2 | 75.1/-17.4 83/-19.3 90.9/-21.2 98.7/-23 106.6/-24.9 114.5/-26.4 122.6/-26.5 130.7/-26.5 138.8/-26.6 146.9/-26.7 155/-26.7 163/-26.1 171/-24.7 179.1/-24.1 181.1/-24

Notes

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

No notes yet.