.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autocad Map file still in use after import

5 REPLIES 5
Reply
Message 1 of 6
andrew_demerchant
375 Views, 5 Replies

Autocad Map file still in use after import

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?

 

5 REPLIES 5
Message 2 of 6

They have to be removed from the attached drawing set.  You can check for .DWK files (lock). 

Message 3 of 6
fieldguy
in reply to: fieldguy

Something like this.

 

if (prjModel.DrawingSet.AllDrawingsCount > 0)
                        while (prjModel.DrawingSet.AllDrawingsCount > 0)
                            prjModel.DrawingSet.DetachDrawing(0);

 

Message 4 of 6

Thanks for the reply, but these shp files are imported, not attached...There are being brought in using an Autodesk.Gis.Map.HostMapApplicationServices.Application.Importer
Message 5 of 6

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

Message 6 of 6

That's putting it lightly! Thanks - I'll try the Map 3D forum.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost