Jump to content

Search the Community

Showing results for tags 'document'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Categories

  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. 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.
×
×
  • Create New...