示例#1
0
        private void method_1(string string_1)
        {
            IGxObject      obj2  = new GxCadDataset();
            IGxObject      obj3  = new GxCadDrawing();
            IDatasetName   name2 = new CadDrawingNameClass();
            IWorkspaceName name  = new WorkspaceNameClass
            {
                WorkspaceFactoryProgID = "esriDataSourcesFile.CadWorkspaceFactory",
                PathName = System.IO.Path.GetDirectoryName(string_1)
            };

            name2.Name          = System.IO.Path.GetFileName(string_1);
            name2.WorkspaceName = name;
            (obj2 as IGxDataset).DatasetName = name2;
            name2 = new CadDrawingNameClass();
            name  = new WorkspaceNameClass
            {
                WorkspaceFactoryProgID = "esriDataSourcesFile.CadWorkspaceFactory",
                PathName = System.IO.Path.GetDirectoryName(string_1)
            };
            name2.Name          = System.IO.Path.GetFileName(string_1);
            name2.WorkspaceName = name;
            (obj3 as IGxDataset).DatasetName = name2;
            obj2.Attach(this, this.igxCatalog_0);
            obj3.Attach(this, this.igxCatalog_0);
        }
示例#2
0
        private void method_1()
        {
            IGxObject      obj2  = new GxCadDrawing();
            IDatasetName   name2 = new CadDrawingNameClass();
            IWorkspaceName name  = new WorkspaceNameClass
            {
                WorkspaceFactoryProgID = "esriDataSourcesFile.CadWorkspaceFactory",
                PathName = Path.GetDirectoryName(this.string_0)
            };

            name2.Name          = Path.GetFileName(this.string_0);
            name2.WorkspaceName = name;
            (obj2 as IGxDataset).DatasetName = name2;
            obj2.Attach(this, this.igxCatalog_0);
            this.method_0("Annotation");
            this.method_0("Point");
            this.method_0("Polyline");
            this.method_0("Polygon");
            this.method_0("MultiPatch");
        }