Message 1 of 1
Save command
Not applicable
05-19-2009
04:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Is there somebody how can help me.
Below is part of code for open file into autocad, with autocad dialog.
I need this for save...
I don not want to send comand to command line for save.
This is code for open file, with custom dialog...
Dim prompt As New Autodesk.AutoCAD.EditorInput.PromptOpenFileOptions("XXX")
Dim pr As PromptFileNameResult
Dim dm As DocumentCollection = ApplicationServices.Application.DocumentManager
Dim ed As Editor = dm.MdiActiveDocument.Editor
prompt.Filter = "Drawing (*.dwg)|*.dwg"
pr = ed.GetFileNameForOpen(prompt)
If pr.Status = PromptStatus.OK Then
dm.Open(pr.StringResult, False)
end if
Best regards...
Danijel Ivankovic
Is there somebody how can help me.
Below is part of code for open file into autocad, with autocad dialog.
I need this for save...
I don not want to send comand to command line for save.
This is code for open file, with custom dialog...
Dim prompt As New Autodesk.AutoCAD.EditorInput.PromptOpenFileOptions("XXX")
Dim pr As PromptFileNameResult
Dim dm As DocumentCollection = ApplicationServices.Application.DocumentManager
Dim ed As Editor = dm.MdiActiveDocument.Editor
prompt.Filter = "Drawing (*.dwg)|*.dwg"
pr = ed.GetFileNameForOpen(prompt)
If pr.Status = PromptStatus.OK Then
dm.Open(pr.StringResult, False)
end if
Best regards...
Danijel Ivankovic