개정판 1a130d01
Fix Zoom Extents
Change-Id: I5267c7f0a2b30145a5974083161488fc44ac5418
DTI_PID/OdReadExMgd/OdReadExMgd.cs | ||
---|---|---|
4153 | 4153 |
} |
4154 | 4154 |
public void prepareDump(Database pDb) |
4155 | 4155 |
{ |
4156 |
bool isError = false; |
|
4156 | 4157 |
// Purge Object(Layer X, Linetype X) |
4157 | 4158 |
ObjectIdCollection oids = new ObjectIdCollection(); |
4158 | 4159 |
using (Transaction tr = pDb.TransactionManager.StartOpenCloseTransaction()) |
... | ... | |
4177 | 4178 |
} |
4178 | 4179 |
catch (System.Exception ex) |
4179 | 4180 |
{ |
4181 |
isError = true; |
|
4180 | 4182 |
} |
4181 | 4183 |
|
4182 | 4184 |
tr.Commit(); |
4183 | 4185 |
} |
4186 |
if (!isError) |
|
4187 |
{ |
|
4188 |
pDb.UpdateExt(false); |
|
4189 |
pDb.UpdateExt(true); |
|
4190 |
} |
|
4184 | 4191 |
|
4185 | 4192 |
// Viewport Ucs |
4186 | 4193 |
using (ViewportTable pTable = (ViewportTable)pDb.ViewportTableId.Open(OpenMode.ForRead)) |
... | ... | |
4212 | 4219 |
} |
4213 | 4220 |
} |
4214 | 4221 |
|
4222 |
isError = false; |
|
4215 | 4223 |
bool isOK = false; |
4216 | 4224 |
Extents3d extents = new Extents3d(pDb.Extmin, pDb.Extmax); |
4217 | 4225 |
// SEC Title box Move & Erase |
... | ... | |
4270 | 4278 |
} |
4271 | 4279 |
catch (System.Exception ex) |
4272 | 4280 |
{ |
4281 |
isError = true; |
|
4273 | 4282 |
} |
4274 | 4283 |
} |
4275 | 4284 |
} |
4276 | 4285 |
} |
4286 |
|
|
4287 |
//if (!isError) |
|
4288 |
{ |
|
4289 |
pDb.Extmin = extents.MinPoint; |
|
4290 |
pDb.Extmax = extents.MaxPoint; |
|
4291 |
} |
|
4277 | 4292 |
} |
4278 | 4293 |
} |
4279 |
pDb.UpdateExt(false); |
|
4280 |
pDb.UpdateExt(true); |
|
4281 |
if (isOK) |
|
4282 |
{ |
|
4283 |
pDb.Extmin = extents.MinPoint; |
|
4284 |
pDb.Extmax = extents.MaxPoint; |
|
4285 |
} |
|
4286 | 4294 |
} |
4287 | 4295 |
public void dumpHeader(Database pDb, int indent, XmlNode node) |
4288 | 4296 |
{ |
내보내기 Unified diff