Beispiel #1
0
        private void BuildDocExtentOptions()
        {
            Document document = AfaDocData.ActiveDocData.Document;

            this.DocExtentOptions = new Dictionary <string, Extent>();
            this.DefaultExtent    = new Extent(0.0, 0.0, 100.0, 100.0);
            this.DefaultExtent.SetWKTFrom(AfaDocData.ActiveDocData.DocPRJ.WKT);
            if (DocUtil.HasLimits(AfaDocData.ActiveDocData.Document))
            {
                this.DocExtentOptions.Add(AfaStrings.DrawingLimits, DocUtil.GetLimitExtent(document));
            }
            Extent dwgExtent = DocUtil.GetDwgExtent(document);

            if (dwgExtent != null)
            {
                this.DocExtentOptions.Add(AfaStrings.DrawingExtents, DocUtil.GetDwgExtent(document));
            }
            Extent viewExtent = DocUtil.GetViewExtent(document);

            this.DocExtentOptions.Add(AfaStrings.CurrentView, viewExtent);
            this.DocExtentOptions.Add(AfaStrings.SelectCorners, this.DefaultExtent);
        }