4midl_pragma warning(disable:2111)
12import "EnumDefinition.idl";
13import "EwClassificationObjects.idl";
14import "EwCableObjects.idl";
15import "EwManufacturerPartObjects.idl";
16import "EwProjectObjects.idl";
17import "EwSymbolObjects.idl";
18import "EwTitleBlockObjects.idl";
19import "EwLibraryObjects.idl";
20import "EwTerminalObjects.idl";
21import "EwServerObjects.idl";
22import "EwApplicationObjects.idl";
23import "EwApplicationRibbon.idl";
24import "EwDialogMacroSelector.idl";
25import "EwApplicationDockingPane.idl";
26import "EwUiCommonResourceText.idl";
27import "EwDocumentObjects.idl";
28import "EwApplicationCaptionBarObjects.idl";
29import "EwApplicationMenu.idl";
30import "EwProjectFileConfigurationObjects.idl";
31import "EwESX3DExperienceObjects.idl";
32import "EwProjectFunctionObjects.idl";
33import "EwCircuitTypeObjects.idl";
47 uuid(5FC8EA1F-028E-4C83-84D0-033DDBE69F33),
50 pointer_default(unique)
217 uuid(F29DB845-91B8-4469-B828-46A8D0396BA3),
221 helpstring(
"IEwEnvironmentX Interface"),
222 pointer_default(unique)
668 uuid(7D65CD4F-DBB9-4C7F-A36D-C493FCBCEA0B),
672 helpstring(
"IEwApplicationSettingsX Interface"),
673 pointer_default(unique)
737 uuid(83A173A9-B84B-4BA3-9A44-8F8C9E11CEC3),
741 helpstring(
"IEwApplicationX Interface"),
742 pointer_default(unique)
1380 uuid(0F5E85DA-88EF-4A63-83AF-6B11A048CD79),
1384 helpstring(
"IEwAPIX Interface"),
1385 pointer_default(unique),
1456 uuid(899CE40B-CBBC-4018-A65C-D20836ECD11C),
1459 pointer_default(unique)
1488 uuid(6c56f4f9-3277-4cbc-8227-f7e7df9f9bdc),
1491 pointer_default(unique)
1503 uuid(A8F9E04C-539F-4A1B-A38B-8219C7234C90),
1505 helpstring(
"IInteropFactoryX Interface"),
1507 pointer_default(unique)
1543 uuid(DE35BA2A-0566-40D3-AF1D-AD79D1133B09),
1545 helpstring(
"IEwInteropFactoryX Interface"),
1547 pointer_default(unique)
EwApISoftType
All the selection types.
Definition: EnumDefinition.idl:327
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:24
EwEnvironmentFolderPathValue
Used with getFolderPath of EwEnvironmentX object.
Definition: EwEnumeration.idl:15
EwApplicationFolderPathValue
Used with getFolderPath of application object.
Definition: EwEnumeration.idl:71
EwApplicationSettingsValue
Values for application settings.
Definition: EwEnumeration.idl:84
EwDialogManagerType
All the Library/Configuration Manager Dialogs.
Definition: EwEnumeration.idl:1268
EwLogOutputType
Log support type for database errors.
Definition: EwEnumeration.idl:437
EwDialogSelectorType
All the Selector Dialogs.
Definition: EwEnumeration.idl:1306
EwXMLConfigFolderType
XML Config Folder.
Definition: EwEnumeration.idl:1242
EwPdmType
All Type of PDM integration.
Definition: EwEnumeration.idl:990
EwArchiveMode
Classification type.
Definition: EwEnumeration.idl:614
EwTimeStamp
Time stamps options.
Definition: EwEnumeration.idl:630
Use this interface to initilalize this API.
Definition: EwAPI.idl:1388
IEwApplicationX getEwApplication(BSTR strKey, EwErrorCode *errorCode)
Create a IEwApplicationX object from the current API.
EwErrorCode initializeInBackground(ULONGLONG mainHwnd)
Initialize this API to use the application in background.
EwErrorCode initializeInBackgroundWithUserRight(ULONGLONG mainHwnd, BSTR strUserLogin, BSTR strUserPassword)
Initialize this API to use the application in background.
Interface that allow applications to create add-ins.
Definition: EwAPI.idl:1462
VARIANT_BOOL connectToEwAPI(LPDISPATCH ewInteropFactory)
Method called to initialize add-in when add-in is loaded.
VARIANT_BOOL disconnectFromEwApi()
methode call by application to disconnected add-in return false if you don't want to unload your add-...
Interface that allow applications to create add-ins.
Definition: EwAPI.idl:1494
Use this interface to manage the application settings.
Definition: EwAPI.idl:675
VARIANT getValue(EwApplicationSettingsValue eApplicationSettingsValues, EwErrorCode *errorCode)
Get an application settings value.
EwErrorCode save()
This method will save any modification done using setValue method.
EwErrorCode setValue(EwApplicationSettingsValue eApplicationSettingsValues, VARIANT vValue)
Set an application settings value.
VARIANT getLanguageArray(EwErrorCode *errorCode)
Get an array of all languages code in application.
Use this interface to manage the application.
Definition: EwAPI.idl:744
BSTR getName()
Return the name of application.
IEwSaveDWGImageX newEwSaveDWGImage(EwErrorCode *errorCode)
Create an object to convert DWG on picture.
IEwDialogTaskX getEwDialogTask(EwErrorCode *errorCode)
To get the task dialog wrapper.
IEwRibbonX getEwRibbon(EwErrorCode *errorCode)
return an IEwRibbonX interface to EwRibbonX object.
IEwCaptionBarX getEwCaptionBar(EwErrorCode *errorCode)
Return an IEwCaptionBarX interface to manage the software Caption Bar.
EwErrorCode getSystemInformation(BSTR strPath)
Collect information on electrical application.
EwErrorCode runCommand(BSTR strCommand)
Run a command.
IEwDockingPaneManagerX getEwDockingPaneManager(EwErrorCode *errorCode)
return an IEwDockingPaneManagerX interface to EwDockingPaneManagerX object.
IEwDialogManufacturerPartOrderingX getEwDialogManufacturerPartOrdering(EwErrorCode *errorCode)
To get the manufacturer part ordering dialog wrapper.
EwErrorCode activate()
Activate the application.
IEwESX3DExperienceX getEwESX3DExperienceX(EwErrorCode *errorCode)
Get the IEwESX3DExperienceX object to manage 3DExperience platform operation.
IEwMenuManagerX getEwMenuManager(EwErrorCode *errorCode)
Get the IEwMenuManagerX object to manage all the API context menu in the application.
BSTR getApplicationVersion()
Get the application version as: 2016.1.2 Version 2016 is the major number, 1 is for minor number,...
IEwManagerDialogX getEwManagerDialogObject(EwDialogManagerType eDialogManager, EwErrorCode *errorCode)
Get the Manager dialog wrapper with the IEwManagerDialogX interface.
IEwDialogManufacturerPartSelectorX getEwDialogManufacturerPartSelector(EwErrorCode *errorCode)
To get the manufacturer part selector dialog wrapper.
IEwDialogProjectManagerX getEwDialogProjectManager(EwErrorCode *errorCode)
IEwCommandManagerX getEwCommandManager(EwErrorCode *errorCode)
Get the IEwCommandManagerX command manager interface.
IEwDialogResumeX getEwDialogResume(EwErrorCode *errorCode)
Get the resume dialog wrapper.
IEwProjectX getEwProjectCurrent(EwErrorCode *errorCode)
To get the active project.
IDispatch getSWCEFComApplication(EwErrorCode *errorCode)
Get SWCEFComApplication in a singleton way.
EwErrorCode openEwMacroID(LONG lID)
Open a macro in the application interface.
IEwDocumentManagerX getEwDocumentManager(EwErrorCode *errorCode)
Get IEwDocumentManagerX object to manage all the Document in the application.
IEwApplicationSettingsX getEwApplicationSettings(EwErrorCode *errorCode)
Get the application settings interface.
EwErrorCode closeEwProjectID(LONG lID)
Close a project already opened in the application interface.
VARIANT_BOOL isEwProjectOpened(long lProjectId, EwErrorCode *errorCode)
Return true if the project is opened in application user interface.
BSTR getWinAppName()
return 2D application name, to substitute WIN_APP_NAME in the resource strings
IEwDialogSummaryX getEwDialogSummary(EwErrorCode *errorCode)
To get the summary dialog wrapper.
IEwEnvironmentX newEwEnvironment()
Create a IEwEnvironmentX object from the current API.
IEwXLSBookX newEwXLSBook(EwErrorCode *errorCode)
To get a new XLSBookX wrapper.
IEwDialogProgressX getEwDialogProgress(EwErrorCode *errorCode)
Get the progress dialog wrapper.
IEwDialogAlignPartsParametersSelectorX getEwDialogAlignPartsParametersSelector(EwErrorCode *errorCode)
To get align parameters selector dialog wrapper.
EwPdmType getEwPdmType(EwErrorCode *errorCode)
Return current EwPdmType enum type.
EwErrorCode closeEwMacroID(LONG lID)
Close a macro already opened in the application interface.
EwErrorCode openEwProjectID(LONG lID)
Open a project in the application interface.
IEwSelectorDialogX getEwSelectorDialogObject(EwDialogSelectorType eDialogSelector, EwErrorCode *errorCode)
Get the Selector dialog wrapper with the IEwSelectorDialogX interface.
IEwProjectX openProjectFromFilePath(BSTR strFilePath, EwErrorCode *errorCode)
Open a project from the input file path.
EwErrorCode loadRespan(BSTR strFilePath)
Load a file with extention .respan containing the definition of a ribbon tab to be added to the appli...
VARIANT_BOOL isEwMacroOpened(long lMacroId, EwErrorCode *errorCode)
Return true if the macro is opened in application user interface.
IEwDialogMacroSelectorX getEwDialogMacroSelector(EwErrorCode *errorCode)
To get the macro selector dialog wrapper.
IEwDocumentX getEwDocumentCurrent(EwErrorCode *errorCode)
Get the IEwDocumentX from current document.
IEwRightsManagerX getEwRightsManager(EwErrorCode *errorCode)
To get the rights manager.
EwErrorCode importFile(BSTR strFileToImport, BSTR strOutputPath)
To import .ema, .ems files.
EwErrorCode close()
Close the application.
EwApISoftType getApplicationType(EwErrorCode *errorCode)
Return application type.
BSTR getFolderPath(EwApplicationFolderPathValue eApplicationFolderPathValue, EwErrorCode *errorCode)
Return path of utility application folder, next to binary folder.
EwErrorCode setEwPdmType(EwPdmType ePdmType)
Set type of PDM integration.
BSTR getApiDllVersion()
Get the version of the ActiveX dll loaded in memory.
BSTR findFile(BSTR strFileName, EwErrorCode *errorCode)
Find a file in application folders.
IEwDialogLocationSelectorX getEwDialogLocationSelector(EwErrorCode *errorCode)
To get the location selector dialog wrapper.
EwErrorCode unloadRespan(BSTR strFilePath)
Unload a .respan file.
IEwEnvironmentX getEwEnvironment(EwErrorCode *errorCode)
Use this interface to manage the archive environment with options.
Definition: EwAPI.idl:53
BSTR getArchivePath(EwErrorCode *errorCode)
Get the archive path combined with the timestamp and the path given by user.
EwTimeStamp getTimeStamp(EwErrorCode *errorCode)
Get the time stamp that will be added to the filename of the archive file when calling archive method...
VARIANT_BOOL getArchiveProject(EwErrorCode *errorCode)
Get option for archiving projects.
EwErrorCode setArchiveProject(VARIANT_BOOL bArchiveProject)
Set option for archiving projects.
EwErrorCode setLibraries(VARIANT vLibrariesArray)
Set libraries to archive and object associated.
VARIANT getLibraries(EwErrorCode *errorCode)
Get libraries to archive in EwArchiveMode::kArchiveModeObjectFromLibrary mode.
EwErrorCode archive()
Archive the current environment.
EwErrorCode setArchivePath(BSTR strArchivePath)
Set the path of the destination file where the archive will be done.
EwErrorCode setTimeStamp(EwTimeStamp eTimeStamp)
Set the time stamp that will be added to the filename of the archive file when calling archive method...
DATE getDate(EwErrorCode *errorCode)
Get the date for archive.
BSTR getLastArchiveError(EwErrorCode *errorCode)
Get the last archive error.
EwErrorCode setDate(DATE archiveDate)
Set the date for archive.
EwArchiveMode getArchiveMode(EwErrorCode *errorCode)
Get the Archive mode.
EwErrorCode setArchiveMode(EwArchiveMode eArchiveMode)
Set the Archive mode.
Use this interface to manage EwCableReferenceX objects.
Definition: EwCableObjects.idl:892
Use this interface to manage the caption Bar.
Definition: EwApplicationCaptionBarObjects.idl:196
Use this interface to manage EwClassificationX objects.
Definition: EwClassificationObjects.idl:439
Use this manager to add or remove custom commands.
Definition: EwApplicationObjects.idl:857
Use this interface to manage the align parameters from the user interface.
Definition: EwApplicationObjects.idl:27
Use this interface to display a location selector dialog.
Definition: EwApplicationObjects.idl:372
Use this interface to manage macro selector dialog.
Definition: EwDialogMacroSelector.idl:22
Use this interface to display the order of manufacturer parts dialog.
Definition: EwApplicationObjects.idl:68
Use this interface to display a dialog that allows the user to select build of materials.
Definition: EwApplicationObjects.idl:248
Use this interface to display a progress dialog.
Definition: EwApplicationObjects.idl:605
Use this interface to the Project Manager Dialog.
Definition: EwApplicationObjects.idl:1200
Use this interface to display a resume dialog.
Definition: EwApplicationObjects.idl:538
Use this interface to display a summary dialog.
Definition: EwApplicationObjects.idl:206
Use this interface to display a task dialog.
Definition: EwApplicationObjects.idl:294
Use this interface to manage all the docking Pane in the application.
Definition: EwApplicationDockingPane.idl:310
Use this interface to manage the documents in the application.
Definition: EwDocumentObjects.idl:128
Use this interface to manage an EwDocumentX object.
Definition: EwDocumentObjects.idl:34
Use this interface to import manufacturer parts or cable references from an EXCEL file populated from...
Definition: EwLibraryObjects.idl:212
Use this interface to manage software environment.
Definition: EwAPI.idl:224
EwErrorCode setWorkingFolder(BSTR strFolderPath)
Set the working folder of this environment.
EwErrorCode unarchiveEnvironment(BSTR *strArchivePath)
Unarchive a tewzip file without showing any dialog, using default options.
IEwClassificationManagerX getEwClassificationManager(EwErrorCode *errorCode)
Get a manager object for classifications.
BSTR getFolderPath(EwEnvironmentFolderPathValue eEnvironmentFolderPathValue, EwErrorCode *errorCode)
Return folder path associated to enumeration type EwEnvironmentFolderPathValue.
BSTR getWorkingFolder(EwErrorCode *errorCode)
Return environment folder path.
IEwSymbolManagerX getEwSymbolManager(EwErrorCode *errorCode)
get IEwSymbolManagerX of the current environment
IEwManufacturerPartManagerX getEwManufacturerPartManager(EwErrorCode *errorCode)
get IEwManufacturerPartManagerX of the current environment
IEwEXCELImportLibraryX getEwEXCELLibraryImport(EwErrorCode *errorCode)
Get an EwEXCELImportLibraryX object to import manufacturer part or cable reference from an EXCEL file...
IEwCircuitTypeManagerX getEwCircuitTypeManagerX(EwErrorCode *errorCode)
Get IEwCircuitTypeManagerX of the current environment.
EwErrorCode setHostname(BSTR strHostname)
Set the hostname to connect to database.
IEwProjectManagerX getEwProjectManager(EwErrorCode *errorCode)
get EwProjectManager of the current environment
IEwTerminalTypeManagerX getEwTerminalTypeManager(EwErrorCode *errorCode)
Get IEwTerminalTypeManagerX of the current environment.
IEwProjectManagerX getEwMacroManager(EwErrorCode *errorCode)
Get a project manager object for macros, macro manager.
BSTR getCreoTemplateFolderPath()
IEwTitleBlockManagerX getEwTitleBlockManager(EwErrorCode *errorCode)
get EwTitleBlockManager of the current environment
BSTR getLogFilePath(EwErrorCode *errorCode)
Return the path of logfile for query errors.
BSTR getUserID(EwErrorCode *errorCode)
Get the user ID to connect to database.
IEwArchiveEnvironmentX getEwArchiveEnvironment(EwErrorCode *errorCode)
Get a EwArchiveEnvironmentX object to archive the current environment;.
EwErrorCode connect()
Connect to environment previously identify by the function setWorkingFolder.
void disconnect()
Disconnect from environment previously connected to.
BSTR getCircuitTypeFromKeyCode(const BSTR strKeyCode, EwErrorCode *errorCode)
Get the circuit type description from a KeyCode.
VARIANT_BOOL getCopy3DParts(EwErrorCode *errorCode)
EwErrorCode setUserID(BSTR strUserID)
Set the user ID to connect to database.
EwErrorCode deleteWorkingDirectory()
Delete the current working directory.
EwErrorCode create(BSTR strFolderPath, VARIANT_BOOL bAutoConnect)
Create a new environment.
BSTR getCreoFolderPath(EwErrorCode *errorCode)
IEwCableReferenceManagerX getEwCableReferenceManager(EwErrorCode *errorCode)
get EwCableReferenceManager of the current environment
BSTR getSOLIDWORKSFolderPath()
Return SOLIDWORKS folder path where SOLIDWORKS files are stored.
BSTR getXMLConfigFolder(EwXMLConfigFolderType eXMLConfigFolderType, EwErrorCode *errorCode)
Return XML config folder path of configuration.
IEwLibraryManagerX getEwLibraryManager(EwErrorCode *errorCode)
get EwLibraryManager of the current environment
EwErrorCode setPassword(BSTR strPassword)
Set the password to connect to database.
EwErrorCode unarchive(BSTR strArchivePath, BSTR strOutputFolderPath)
Unarchive a tewzip archive.
EwErrorCode archive(BSTR strArchivePath, VARIANT_BOOL bDelete)
Archive the current data folder in a tewzip file.
BSTR getHostname(EwErrorCode *errorCode)
Get the hostname of database.
BSTR getPassword(EwErrorCode *errorCode)
Get the password to connect to database.
EwErrorCode setDebugInfoType(EwLogOutputType eLogOutputType)
Modify the output type to display log in You cannot remove the file output.
IEwWireTerminationTypeManagerX getEwWireTerminationTypeManager(EwErrorCode *errorCode)
Get IEwWireTerminationTypeManagerX of the current environment.
Use this interface to connect to the application.
Definition: EwAPI.idl:1550
Use this interface to manage EwLibraryX objects.
Definition: EwLibraryObjects.idl:162
Use this interface to manage the Library/Configuration manager dialogs.
Definition: EwApplicationObjects.idl:1259
Use this interface to manage IEwManufacturerPartX objects.
Definition: EwManufacturerPartObjects.idl:1292
Use this interface to manage IEwProjectX objects.
Definition: EwProjectObjects.idl:2866
Use this interface to manage a project.
Definition: EwProjectObjects.idl:1964
Use this interface to manage the Ribbon Bar.
Definition: EwApplicationRibbon.idl:1248
Use this interface to manage the application rights.
Definition: EwApplicationObjects.idl:108
This interface for export DWG to image.
Definition: EwUtilDefinition.idl:95
Use this interface to manage Selector dialogs.
Definition: EwApplicationObjects.idl:1378
Use this interface to manage EwSymbolX objects.
Definition: EwSymbolObjects.idl:1113
Use this interface to manage terminal strip Type.
Definition: EwTerminalObjects.idl:299
Use this interface to manage EwTitleBlockX objects.
Definition: EwTitleBlockObjects.idl:544
Use this interface to manage termination Type.
Definition: EwTerminalObjects.idl:122
Use this interface to manage a XLS file.
Definition: EwApplicationObjects.idl:1125
Use this interface to connect to the application.
Definition: EwAPI.idl:1510
IEwAPIX getEwAPI(EwErrorCode *errorCode)
Return an IEwAPIX object.
IEwApplicationX getEwApplication(BSTR strKey, EwErrorCode *errorCode)
Return an IEwApplicationX object connect to the application.