개정판 7e1124a2
Enable unexplode block
Change-Id: If97f9ab499550a4dba69f32c9d9e9c8bbb64351c
DTI_PID/OdReadExMgd/OdReadExMgd.cs | ||
---|---|---|
411 | 411 |
dumpEntityData(pBlkRef, indent, BlockReferenceNode); |
412 | 412 |
|
413 | 413 |
DBObjectCollection objColl = new DBObjectCollection(); |
414 |
|
|
414 | 415 |
pBlkRef.Explode(objColl); |
415 | 416 |
foreach (var obj in objColl) |
416 | 417 |
{ |
... | ... | |
418 | 419 |
{ |
419 | 420 |
dumpTextData(obj as DBText, indent, BlockReferenceNode); |
420 | 421 |
} |
421 |
} |
|
422 |
}
|
|
422 | 423 |
|
423 | 424 |
/**********************************************************************/ |
424 | 425 |
/* Dump the attributes */ |
... | ... | |
3450 | 3451 |
if (pBlkEnt.GetRXClass().Name == "AcDbBlockReference") |
3451 | 3452 |
{ |
3452 | 3453 |
oidSet.Add(entid); |
3453 |
isNestedBlock = true;
|
|
3454 |
isNestedBlock = true; |
|
3454 | 3455 |
} |
3455 | 3456 |
} |
3456 | 3457 |
} |
... | ... | |
3481 | 3482 |
{ |
3482 | 3483 |
foreach (ObjectId id in pTable) |
3483 | 3484 |
{ |
3484 |
using (BlockTableRecord pBlock = (BlockTableRecord)id.Open(OpenMode.ForRead, false, true))
|
|
3485 |
using (BlockTableRecord pBlock = (BlockTableRecord)id.Open(OpenMode.ForWrite, false, true))
|
|
3485 | 3486 |
{ |
3486 | 3487 |
if (pBlock.IsLayout) continue; |
3488 |
pBlock.Explodable = true; |
|
3487 | 3489 |
if (blockNameList.Contains(pBlock.Name)) continue; |
3488 | 3490 |
|
3489 | 3491 |
foreach (ObjectId entid in pBlock) |
내보내기 Unified diff