← Inbox

C3D-0528 · Move top-left OLE frame up with its group (22 sheets) [C3D-0529] done

Move the top-left OLE frame + line (23880/23881 on 22X17 (2), 238AA/238AB on COVER (22)) up 6in to stay in the top-left corner.

Script file
C3D-0528.cs
Target
260714 - 285 Huckaby Rd 22x17.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload


int n=0;
foreach(string hs in new[]{"23880","23881","238AA","238AB"}){ var h=new Handle(Convert.ToInt64(hs,16)); ObjectId id; if(!Db.TryGetObjectId(h,out id)||id.IsNull) continue; var e=(Autodesk.AutoCAD.DatabaseServices.Entity)Tx.GetObject(id,OpenMode.ForWrite); e.TransformBy(Matrix3d.Displacement(new Vector3d(0,6,0))); var x=e.GeometricExtents; Log(hs+" "+e.GetType().Name+" now "+x.MinPoint.X.ToString("F2")+","+x.MinPoint.Y.ToString("F2")+" -> "+x.MaxPoint.X.ToString("F2")+","+x.MaxPoint.Y.ToString("F2")); n++; }
Log("moved "+n);
Ed.Regen();

Result

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

Log

23880 Line now -0.03,14.49 -> 2.50,14.49
23881 Ole2Frame now -0.03,14.49 -> 2.50,17.02
238AA Line now -0.03,14.49 -> 2.50,14.49
238AB Ole2Frame now -0.03,14.49 -> 2.50,17.02
moved 4

Notes

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

No notes yet.