Search the Community
Showing results for tags 'map 2014'.
-
.Net Document.CloseAndDiscard() throws error AutoCAD Map 3D 2014
Geomap_Chris posted a topic in .NET, ObjectARX & VBA
This was working in Map 3D 2013... Basically, what I want to do is: open a dxf file copy it's database to a new dwg file close the dxf I modified the code a little bit to try and make it work with Map 2014, but without success. Here is my code now: // Open dxf DocumentDocument doc = AcadUtil.DocumentManager.Open(dxfFileName, false); // Lock Document so nothing interferes using (DocumentLock docLock = doc.LockDocument()) { [indent]// Save drawing as DWG file using (Transaction tr = doc.Database.TransactionManager.StartTransaction()) { [/indent] [indent][indent]doc.Database.SaveAs(fileName + ".dwg", DwgVersion.Newest); tr.Commit(); [/indent] } [/indent]} // Set document active so we can close it if (Application.DocumentManager.MdiActiveDocument != doc) { [indent]Application.DocumentManager.MdiActiveDocument = doc; [/indent] } // Dispose db doc.Database.Dispose(); // Close document doc.CloseAndDiscard(); Code throws error on doc.CloseAndDiscard(); FatalExecutionEngineError was detected... I have tryed multiple different things, and now I don't know what to do to make this work. I read about system variable FIBERWORLD... It is set to 1. What am I doing wrong?? Thanks for your help. -
I am migrating from Autocad Map 2009 in windows XP (32 bits), to Map 2014 64bits, in Windows 7 64 bits My question is if is possible to use visual basic 6.0 activex with Map 2014 64bits And if it is possible, what to do to get the interface to it. I have from history a "dll Visual Basic 6.0 Activex Com module", which I use to connect from visual lisp, through vla-GetInterfaceObject" call. It works fine in Autocad Map 2009 with XP I recompile it using the correct libraries from Map 2014, and registered with regsvr32 (just in case, I also registered with the regsvr32 that is in windows/SysWow64/regsvr32) But I received an "Automation Error. Problem in loading application" error message, when doing: (vla-GetInterfaceObject (vlax-get-acad-object) "marVBasic.marVbUtils") Being marVBasic the name of the visual basic proyect, and marVbUtils the class. (This works fine in Map 2009) Thks
-
- visual basic 6.0
- map 2014
-
(and 3 more)
Tagged with: