.NET

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

Question about SaveFileDialog

243 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 (243 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 (243 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 (243 Views)

Re: Question about SaveFileDialog

03-21-2008 01:55 PM in reply to: simonkx
Could you clue me in on your resolution?
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.