C3D-0518 · Curved CHRISTMAS AVE label h20 following road 812 [C3D-0519] done
Erase TEST-X; place per-character CHRISTMAS AVE (100 R/W) at h20 along the frontage arc on V-ROAD-TEXT with SetDatabaseDefaults.
C# payload
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForWrite);
// erase TEST-X
Handle th=new Handle(Convert.ToInt64("22B83",16)); ObjectId tid;
if(Db.TryGetObjectId(th,out tid)&&!tid.IsNull){ var te=Tx.GetObject(tid,OpenMode.ForWrite) as Autodesk.AutoCAD.DatabaseServices.Entity; if(te!=null&&!te.IsErased){ te.Erase(); Log("erased TEST-X"); } }
int n=0;
System.Action<string,double,double,double> addc=(ch,x,y,rot)=>{ var t=new DBText(); t.SetDatabaseDefaults(); t.TextString=ch; t.Height=20.0; t.Rotation=rot; t.Position=new Point3d(x,y,0); t.Layer="V-ROAD-TEXT"; ms.AppendEntity(t); Tx.AddNewlyCreatedDBObject(t,true); n++; };
addc("C",2433938.318800,1429314.390800,1.305692);
addc("H",2433942.192700,1429328.881900,1.313462);
addc("R",2433945.953900,1429343.402700,1.321232);
addc("I",2433949.602100,1429357.952200,1.329003);
addc("S",2433953.137100,1429372.529700,1.336773);
addc("T",2433956.558800,1429387.134200,1.344544);
addc("M",2433959.866900,1429401.764800,1.352314);
addc("A",2433963.061200,1429416.420700,1.360085);
addc("S",2433966.141500,1429431.101000,1.367855);
addc("A",2433971.959400,1429460.531100,1.383396);
addc("V",2433974.696700,1429475.279200,1.391167);
addc("E",2433977.319400,1429490.048100,1.398937);
addc("(",2433982.219900,1429519.644900,1.414478);
addc("1",2433984.497600,1429534.470900,1.422248);
addc("0",2433986.659900,1429549.314200,1.430019);
addc("0",2433988.706900,1429564.173800,1.437789);
addc("'",2433990.638300,1429579.048900,1.44556);
addc("R",2433994.154200,1429608.841900,1.461101);
addc("/",2433995.738400,1429623.757900,1.468871);
addc("W",2433997.206600,1429638.685900,1.476642);
addc(")",2433998.558800,1429653.624800,1.484412);
Log("placed "+n+" curved chars h20 on V-ROAD-TEXT");
Ed.Regen();
Result
Log
erased TEST-X placed 21 curved chars h20 on V-ROAD-TEXT
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.