개정판 57fef04d
Change non-plot layer
Change-Id: I28bc226d1f2834e8d241c8310c3487a7249b7363
DTI_PID/OdReadExMgd/OdReadExMgd.cs | ||
---|---|---|
3419 | 3419 |
|
3420 | 3420 |
using (Transaction tr = pDb.TransactionManager.StartTransaction()) |
3421 | 3421 |
{ |
3422 |
LayerTable lt = tr.GetObject(pDb.LayerTableId, OpenMode.ForRead) as LayerTable; |
|
3423 |
string layerName = "DWG-FORM"; |
|
3424 |
if (!lt.Has(layerName)) |
|
3425 |
{ |
|
3426 |
layerName = "0"; |
|
3427 |
} |
|
3422 | 3428 |
BlockTable bt = (BlockTable)tr.GetObject(pDb.BlockTableId, OpenMode.ForRead); |
3423 | 3429 |
BlockTableRecord btrModelSpace = (BlockTableRecord)tr.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForRead); |
3424 | 3430 |
|
... | ... | |
3430 | 3436 |
ent.ColorIndex = 7; |
3431 | 3437 |
if (exceptLayerList.Contains(ent.Layer)) |
3432 | 3438 |
{ |
3433 |
ent.Layer = "0";
|
|
3439 |
ent.Layer = layerName;
|
|
3434 | 3440 |
} |
3435 | 3441 |
|
3436 | 3442 |
if (ent is BlockReference) |
내보내기 Unified diff