![]() ![]()
Instead of the path below, use your full path, formatted correctly IAcadDocument newThisdrawing = (dwgTempPath) NET API counterparts, so make sure this is the case for you too.Īdd a COM reference to "AutoCAD 2015 Type Library" there's one for each language package (choose axdb20enu.tlb, but I think in the end VS may select them all after it's added).Īdd a COM reference to "AcObjClassImp 1.0 Type Library", choose the one for release 20 (AcObjClassImp20.tlb)Īdd the using statement "using AutoCAD " at the top with the rest. Before the code a couple things about it: With that in mind and some minor modifications to your code, I got this to work with no problems in a Console exe. With your edit, I'm assuming this is an external exe. NewThisdrawing.Regen(AcRegenType.acActiveViewport) ĬomStr = "pasteclip" "\n" "0,0" "\n" NewThisdrawing.SaveAs(expDwgName, .SaveAsType,null) I am using Copy and Paste command like this.ĪcadApp = Marshal.GetActiveObject("AutoCAD.Application.20") as AcadApplication But it is does not work an error occurred. DATA RECOVERY Our qualified technicians provide full data recovery from failed or deleted hard drives and memory sticks for anyone in Southern Alberta.I am trying to export the drawing to save another drawing using "CopyBase" and "PasteClip" command. Autocad internal error regularization failed software#Up
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |