Community
I'm able to import some shp files without any trouble...but for some reason, autocad is keeping the files open after the import, and I want to delete them. I've tried disposing and/or setting vars to nothing, but can't seem to get them released without closing Autocad completely. Anyone have any tips?
They have to be removed from the attached drawing set. You can check for .DWK files (lock).
Something like this.
if (prjModel.DrawingSet.AllDrawingsCount > 0) while (prjModel.DrawingSet.AllDrawingsCount > 0) prjModel.DrawingSet.DetachDrawing(0);
I see. You could try posting in the Map 3D Developer forum. Dcoumentation seems to be a bit scarce.
http://forums.autodesk.com/t5/autocad-map-3d-developer/bd-p/84