C3D-0463 · List layouts + 22x17 block defs 260904 (read-only) done
List existing layouts and any 22x17 / title-block definitions to build the exemption plat layout.
C# payload
var lm=(DBDictionary)Tx.GetObject(Db.LayoutDictionaryId,OpenMode.ForRead);
Log("=== LAYOUTS ===");
foreach(System.Collections.DictionaryEntry de in lm){ var lay=(Layout)Tx.GetObject((ObjectId)de.Value,OpenMode.ForRead); Log(" "+de.Key+" tab#"+lay.TabOrder); }
var bt=(BlockTable)Tx.GetObject(Db.BlockTableId,OpenMode.ForRead);
Log("=== 22X17 / TITLE BLOCK DEFS ===");
foreach(ObjectId bid in bt){ var b=(BlockTableRecord)Tx.GetObject(bid,OpenMode.ForRead); var n=b.Name.ToUpper(); if(n.Contains("22X17")||n.Contains("BLOCK")||n.Contains("TB")||n.Contains("SS_")) Log(" DEF: "+b.Name+" hasAttDef="+b.HasAttributeDefinitions+" isLayout="+b.IsLayout); }
Result
Log
=== LAYOUTS === 09 tab#2 11X17 tab#1 Model tab#0 R4 tab#3 === 22X17 / TITLE BLOCK DEFS === DEF: PRESSUREPARTERRORBLOCK hasAttDef=False isLayout=False DEF: SS_BLOCK_11X17 hasAttDef=True isLayout=False
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.