System.Object
Eplan.EplApi.System.EplApplication
System.Object
Eplan.EplApi.System.EplApplication
namespace Eplan.Api.Offline { public partial class MainDialog : Form { //EPLAN application object private EplApplication m_oEplApp = new EplApplication(); //flag for detemining if initialization has been already done private bool m_bIsP8AlreadyInitialized = false; //path to EPLAN bin folder private string m_strEplanBinFolder = ""; public MainDialog(String strEplanBinFolder) { //remember oath to bin folder m_strEplanBinFolder = strEplanBinFolder; //initialize dialog components InitializeComponent(); } //Method for handling event which fires on clicking a control. private void btnStart_Click(object sender, System.EventArgs e) { EPLInit(); } //Method for handling event which fires when closing a form. private void mainDialog_Closing(object sender, System.ComponentModel.CancelEventArgs e) { EPLExit(); } //Method for initializing EPLAN private void EPLInit() { try { if (!m_bIsP8AlreadyInitialized) { if (!String.IsNullOrEmpty(m_strEplanBinFolder)) { m_oEplApp.EplanBinFolder = m_strEplanBinFolder; } m_oEplApp.Init(""); m_bIsP8AlreadyInitialized = true; } } catch (Exception) { //ToDo add an exception handling code here } } //Method for deinitialization EPLAN private void EPLExit() { try { if (m_bIsP8AlreadyInitialized) { m_oEplApp.Exit(); m_bIsP8AlreadyInitialized = false; } } catch (Exception) { //ToDo add an exception handling code here } } }; }
Name | Description | |
---|---|---|
![]() | EplApplication Constructor | Creates a new application class for EPLAN |
Name | Description | |
---|---|---|
![]() ![]() | LicenseRuntimeCheckEvent | License runtime check callback event |
Name | Description | |
---|---|---|
![]() | EplanBinFolder | Path to w3u.exe of your variant you want to start. Setting this path is necessary to specify the variant to start for your Offline application. |
![]() ![]() | InOfflineMode | When the P8 version is started offline, no P8 mainframe is available. Then this function returns true. |
![]() | License | Gets application's license variant as string. |
![]() | LicenseFile | Name of the File (inclusive path) containing the license to use or to borrow IMPORTANT: Set this path before calling Init! |
![]() | Password | Set user password |
![]() | QuietMode | Quiet mode in which EPLAN P8 has been started. |
![]() | SystemConfiguration | System configuration scheme name. |
![]() | User | Set user name |
![]() | Variant | Gets application's variant as string (Basic, Trial, Developer, etc.). |
![]() | Version | Gets version from the application. |
Name | Description | |
---|---|---|
![]() | Exit | Exits the EPLAN runtime system. |
![]() | Init | Overloaded. Initializes the EPLAN runtime system. |
![]() | InitGuiLanguage | Sets application's GUI language. Used before calling Init method. |
![]() | OpenProjectDlg | Displays the EPLAN Open project dialog and opens the selected project. |
![]() | ResetQuietMode | When a mainframe is set for API offline programs some dialogs which are normally hidden in API add-ins are shown. Calling this method will automatically hide them like in add-ins. |
![]() | SetMainFrame | Sets a new Mainframe for API offline program. API offline program will show all dialogs which are normally hidden in add-ins. It is possible to hide such dialogs using ResetQuietMode method. |
![]() | ShowApiAddInDialog | Displays the EPLAN API add-ins dialog. |
![]() | ShowPartSelectionDialog | Overloaded. Selects parts from the current parts database |
![]() | ShowSettingDlg | Displays the EPLAN settings dialog. |
![]() | ShowSystemErrorDlg | Displays the EPLAN System error messages dialog. |
EplApplication Members
Eplan.EplApi.System Namespace
UsingEplanAssemblies.html