Hi All,
I use AutoCAD 2014, VB.net 2010. I can't see CloseAndDiscard or CloseAndSave methods under my document object. I would like to close a drawing. What can I do?
Thanks
Regards
Solved! Go to Solution.
Hi All,
I use AutoCAD 2014, VB.net 2010. I can't see CloseAndDiscard or CloseAndSave methods under my document object. I would like to close a drawing. What can I do?
Thanks
Regards
Solved! Go to Solution.
Hi,
have you referenced the AcCoreMgd.dll?
- alfred -
Hi,
have you referenced the AcCoreMgd.dll?
- alfred -
Add
Imports Autodesk.AutoCAD.ApplicationServices.DocumentExtension
Add
Imports Autodesk.AutoCAD.ApplicationServices.DocumentExtension
Below is the code to save or close drawing in ACAD 2014
Dim doc As Document = Application.DocumentManager.MdiActiveDocument
CloseAndDiscard(doc) CloseAndSave(doc, doc.Name)
Below is the code to save or close drawing in ACAD 2014
Dim doc As Document = Application.DocumentManager.MdiActiveDocument
CloseAndDiscard(doc) CloseAndSave(doc, doc.Name)
Can't find what you're looking for? Ask the community or share your knowledge.