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

Why my document object haven't got CloseAndDiscard or CloseAndSave methods

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
945 Views, 4 Replies

Why my document object haven't got CloseAndDiscard or CloseAndSave methods

Anonymous
Not applicable

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

0 Likes

Why my document object haven't got CloseAndDiscard or CloseAndSave methods

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

4 REPLIES 4
Message 2 of 5
Alfred.NESWADBA
in reply to: Anonymous

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

have you referenced the AcCoreMgd.dll?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes

Hi,

 

have you referenced the AcCoreMgd.dll?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 5
Anonymous
in reply to: Alfred.NESWADBA

Anonymous
Not applicable
Yes.I did I also import
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.ApplicationServices
Imports acApp = Autodesk.AutoCAD.ApplicationServices.Application
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Interop.Common
Imports Autodesk.AutoCAD.Geometry

0 Likes

Yes.I did I also import
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.ApplicationServices
Imports acApp = Autodesk.AutoCAD.ApplicationServices.Application
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Interop.Common
Imports Autodesk.AutoCAD.Geometry

Message 4 of 5
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Accepted solution

Add

 

Imports Autodesk.AutoCAD.ApplicationServices.DocumentExtension

 

0 Likes

Add

 

Imports Autodesk.AutoCAD.ApplicationServices.DocumentExtension

 

Message 5 of 5
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Accepted solution

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)

 

0 Likes

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.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report