.NET

Reply
Contributor
simonkx
Posts: 20
Registered: ‎12-29-2005
Message 1 of 4 (227 Views)

Question about SaveFileDialog

227 Views, 3 Replies
03-11-2006 09:26 PM
Hi,
I want to invoke the savefiledialog to save a dwg-file,and my code is like this:

Autodesk.AutoCAD.Windows.SaveFileDialog sfd = new Autodesk.AutoCAD.Windows.SaveFileDialog("File save as","Drawing1.dwg","dwg","saving file",Autodesk.AutoCAD.Windows..SaveFileDialog.SaveFileDialogFlags.DefaultIsFolder);
sfd.ShowDialog();

But I found nothing where the file had been saved.Is there anything wrong with the code?Are there some examples about the savefiledialog with C#?

Thanks for your help!
Contributor
simonkx
Posts: 20
Registered: ‎12-29-2005
Message 2 of 4 (227 Views)

Re: Question about SaveFileDialog

03-12-2006 03:31 AM in reply to: simonkx
I have changed the code like this:
Autodesk.AutoCAD.Windows.SaveFileDialog sfd = new Autodesk.AutoCAD.Windows.SaveFileDialog("File save as","Drawing1.dwg","dwg","saving file",Autodesk.AutoCAD.Windows.SaveFileDialog.SaveFileDialogFlags.DefaultIsFol der);

if( sfd.ShowDialog() == DialogResult.OK)
db.Saveas(sfd.filename,DwgVersion.Current);

but it's still wrong.

someone could show me any examples of C#?
Thanks
Contributor
simonkx
Posts: 20
Registered: ‎12-29-2005
Message 3 of 4 (227 Views)

Re: Question about SaveFileDialog

03-12-2006 05:19 AM in reply to: simonkx
The problem has been resolved!
Active Contributor
ampplee
Posts: 33
Registered: ‎04-06-2006
Message 4 of 4 (227 Views)

Re: Question about SaveFileDialog

03-21-2008 01:55 PM in reply to: simonkx
Could you clue me in on your resolution?
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.