Message 1 of 2
What exactly does the block table record in model space contain?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
What exactly does the block table record in model space contain?
What else is there besides entity? How to judge its type?
Is there any article on this?
using (var tr = dbNow.TransactionManager.StartTransaction())
{
BlockTable bt = tr.GetObject(dbNow.BlockTableId, OpenMode.ForRead) as BlockTable;
BlockTableRecord btrSpace = tr.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForRead) as BlockTableRecord;
foreach (ObjectId id in btrSpace)
{
Entity ent = null;
try
{
ent = tr.GetObject(id, OpenMode.ForRead) as Entity;
}
catch
{
continue;
}
}