C3D-0551 · Read soil PDF underlay placement + clip (read-only) error
Underlay 157DC position/scale/rotation/transform, clip boundary, extents, draw order index.
C# payload
string F(double d){ return d.ToString("F6"); }
ObjectId uid; Db.TryGetObjectId(new Handle(Convert.ToInt64("157DC",16)),out uid);
var u=(PdfReference)Tx.GetObject(uid,OpenMode.ForRead);
var d=(PdfDefinition)Tx.GetObject(u.DefinitionId,OpenMode.ForRead);
Log("pos="+F(u.Position.X)+","+F(u.Position.Y)+" scale="+F(u.ScaleFactors.X)+","+F(u.ScaleFactors.Y)+" rot="+F(u.Rotation)+" normal="+u.Normal);
Log("def file="+d.SourceFileName+" active="+d.ActiveFileName+" item="+d.ItemName+" units="+d.UnitsName+"?");
var m=u.Transform; var a=m.ToArray(); Log("transform="+string.Join(",",System.Array.ConvertAll(a,x=>x.ToString("R"))));
Log("clipInverted="+u.ClipInverted+" isClipped="+u.IsClipped);
var cb=u.GetClipBoundary(); var sb=new System.Text.StringBuilder(); foreach(Point2d p in cb) sb.Append(F(p.X)+","+F(p.Y)+" "); Log("clip(n="+cb.Count+") "+sb);
var x=u.GeometricExtents; Log("ext "+F(x.MinPoint.X)+","+F(x.MinPoint.Y)+" -> "+F(x.MaxPoint.X)+","+F(x.MaxPoint.Y));
// draw order neighbours
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForRead);
var dot=(DrawOrderTable)Tx.GetObject(ms.DrawOrderTableId,OpenMode.ForRead);
var full=dot.GetFullDrawOrder(0); int idx=-1; for(int i=0;i<full.Count;i++) if(full[i]==uid) idx=i; Log("draworder index "+idx+" of "+full.Count);
Log("INSUNITS="+Db.Insunits);
Result
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.