Reply

Create a new Open and Save Window

[ Edited ]

Hi,

 

i want to create a new Open and Save Dialog to

open or save SE Documents that stored in a SQL-Server.

How can i "disable" the original SE Dialog and replace it with my custom dialog.

 

Any Ideas

 

Posted by: Joachim Schuhböck
Post date: 12/19/2005 8:11:21 PM

2 REPLIES

RE: Create a new Open and Save Window

[ Edited ]

Private Sub p_FileEventsUI_OnFileOpenUI(ByRef Filename As String, ByRef AppendToTitle As String) Handles p_FileEventsUI.OnFileOpenUI

On Error Resume Next

Dim ofname As New System.Windows.Forms.OpenFileDialog

ofname.Filter = "Assembly documents (*.asm)" + "|" + "*.asm" + "|" + _

"Draft documents (*.dft)" + "|" + "*.dft" + "|" + _

"Part documents (*.par)" + "|" + "*.par" + "|" + _

"SheetMetal documents (*.psm)" + "|" + "*.psm" + "|" + _

"Weldment documents (*.pwd)" + "|" + "*.pwd" + "|" + _

"Pro/E Assembly documents (*.asm.*)" + "|" + "*.ams.*" + "|" + _

"EMS documents (*.ems)" + "|" + "*.ems" + "|" + _

"IGES documents (*.iges;*.igs)" + "|" + "*.iges;*.igs" + "|" + _

"Unigraphics documents (*.prt)" + "|" + "*.prt" + "|" + _

"Pro/E Part documents (*.prt.*)" + "|" + "*.prt.*" + "|" + _

"ACIS documents (*.sat)" + "|" + "*.sat" + "|" + _

"STEP documents (*.step;*.stp)" + "|" + "*.step;*.stp" + "|" + _

"Parasolid documents (*.x_b;*.x_t)" + "|" + "*.x_b;*.x_t" + "|" + _

"SDRC Package documents (*.xpk;*.plmxpk)" + "|" + "*.xpk;*.xmlxpk" + "|" + _

"XML documents (*.plmxml)" + "|" + "*.plmxml" + "|" + _

"MicroStation documents (*.dgn)" + "|" + "*.dgn" + "|" + _

"AutoCAD documents (*.dwg)" + "|" + "*.dwg" + "|" + _

"AutoCAD documents (*.dxf)" + "|" + "*.dxf" + "|" + _

"MDS documents (*.mds)" + "|" + "*.mds" + "|" + _

"All documents (*.*)" + "|" + "*.*"

ofname.InitialDirectory = "C:\"

ofname.Title = "Open File"

ofname.Multiselect = False

If ofname.ShowDialog = DialogResult.OK Then

Filename = Trim$(ofname.FileName)

Else

Filename = ""

End If

End Sub

 

Posted by: Aldo Kruger
Post date: 12/22/2005 12:36:03 PM

RE: Create a new Open and Save Window

[ Edited ]

Hi Joachim,

 

www.hitteam.de have a nice Solution and works fine. I think they can help you.

They have replaced all SolidEdge Dialog with a customer Dialog.

 

Its a nice idea.

 

 

 

 

 

 

 

Posted by: Reza Habibi
Post date: 1/1/2006 4:28:02 PM