프로젝트

일반

사용자정보

개정판 1a130d01

ID1a130d01c2da1689bffa909b6b8a9116adf62a10
상위 619e4b8e
하위 b6eabeb4

조봉훈이(가) 8달 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)