.NET

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

Question about SaveFileDialog

242 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 (242 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 (242 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 (242 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!