Hide Table of Contents
SOLIDWORKS Electrical API 2025.0.0
Electrical API
EwAPI.idl
Go to the documentation of this file.
1#pragma once
2
3#if (__midl >= 501)
4midl_pragma warning(disable:2111) /* Disable warning MIDL2111 regarding identifier lengths exceeding 31 chars. */
5#endif
6
7// EwAPI.idl : IDL source for EwAPI
8//
9
10// This file will be processed by the MIDL tool to
11// produce the type library (EwAPI.tlb) and marshalling code.
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";
34
35
36/************************************************************************/
37/* INTERFACES */
38/************************************************************************/
39
45[
46 object,
47 uuid(5FC8EA1F-028E-4C83-84D0-033DDBE69F33),
48 dual,
49 nonextensible,
50 pointer_default(unique)
51]
52interface IEwArchiveEnvironmentX : IDispatch
53{
63 EwErrorCode setArchivePath (BSTR strArchivePath);
64
65
73 BSTR getArchivePath (EwErrorCode * errorCode);
74
75
84
85
94
95
104
105
114
115
124 EwErrorCode setDate (DATE archiveDate);
125
126
135 DATE getDate (EwErrorCode* errorCode);
136
137
149
150
151
162 EwErrorCode setLibraries (VARIANT vLibrariesArray);
163
164
173 VARIANT getLibraries (EwErrorCode* errorCode);
174
175
184 VARIANT_BOOL getArchiveProject (EwErrorCode* errorCode);
185
186
196 EwErrorCode setArchiveProject (VARIANT_BOOL bArchiveProject);
197
198
208
209};
210
215[
216 object,
217 uuid(F29DB845-91B8-4469-B828-46A8D0396BA3),
218 dual,
219 oleautomation,
220 nonextensible,
221 helpstring("IEwEnvironmentX Interface"),
222 pointer_default(unique)
223]
224interface IEwEnvironmentX : IDispatch {
225
232 EwErrorCode setWorkingFolder (BSTR strFolderPath);
233
234
247 EwErrorCode create (BSTR strFolderPath, VARIANT_BOOL bAutoConnect);
248
249
259
260
264 void disconnect ();
265
266
276
277
278
288
289
290
304 EwErrorCode archive (BSTR strArchivePath, VARIANT_BOOL bDelete);
305
306
321 EwErrorCode unarchive (BSTR strArchivePath, BSTR strOutputFolderPath);
322
323
324
333
334
335
345
346
347
358
359
360
366
367
368
378
379
380
390
391
397
398
403 BSTR getWorkingFolder (EwErrorCode* errorCode);
404
405
409 VARIANT_BOOL getCopy3DParts (EwErrorCode* errorCode);
410
411
417
418
419
429 BSTR getFolderPath (EwEnvironmentFolderPathValue eEnvironmentFolderPathValue, EwErrorCode* errorCode);
430
431
441
442
446 BSTR getVersion ();
447
448
459 EwErrorCode unarchiveEnvironment (BSTR* strArchivePath);
460
461
469 EwErrorCode setHostname (BSTR strHostname);
470
471
479 BSTR getHostname (EwErrorCode* errorCode);
480
481
489 EwErrorCode setUserID (BSTR strUserID);
490
491
499 BSTR getUserID (EwErrorCode* errorCode);
500
501
509 EwErrorCode setPassword (BSTR strPassword);
510
511
519 BSTR getPassword (EwErrorCode* errorCode);
520
521
531
532
542
543
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
579
580
591
592
603 BSTR getXMLConfigFolder (EwXMLConfigFolderType eXMLConfigFolderType, EwErrorCode* errorCode);
604
605
606
607
617 BSTR getLogFilePath (EwErrorCode* errorCode);
618
619
620
631
632
644 BSTR getCircuitTypeFromKeyCode (const BSTR strKeyCode, EwErrorCode* errorCode);
645
646
647
657 IEwCircuitTypeManagerX getEwCircuitTypeManagerX (EwErrorCode* errorCode);
658
659};
660
661
666[
667 object,
668 uuid(7D65CD4F-DBB9-4C7F-A36D-C493FCBCEA0B),
669 dual,
670 oleautomation,
671 nonextensible,
672 helpstring("IEwApplicationSettingsX Interface"),
673 pointer_default(unique)
674]
675interface IEwApplicationSettingsX : IDispatch {
676
684 VARIANT getLanguageArray (EwErrorCode* errorCode);
685
686
696 VARIANT getValue (EwApplicationSettingsValue eApplicationSettingsValues, EwErrorCode* errorCode);
697
698
709 EwErrorCode setValue (EwApplicationSettingsValue eApplicationSettingsValues, VARIANT vValue);
710
711
721
722
723
724
725
726
727
728
729};
730
735[
736 object,
737 uuid(83A173A9-B84B-4BA3-9A44-8F8C9E11CEC3),
738 dual,
739 oleautomation,
740 nonextensible,
741 helpstring("IEwApplicationX Interface"),
742 pointer_default(unique)
743]
744interface IEwApplicationX : IDispatch {
745
757 EwErrorCode runCommand (BSTR strCommand);
758
759
769
770
776
777
788
789
799
800
810
811
821
822
832
833
845
846
857
858
868
869
879
880
894 EwErrorCode importFile (BSTR strFileToImport, BSTR strOutputPath);
895
896
897
898
906
907
915
916
926
927
937
938
939
949
950
959 EwErrorCode loadRespan (BSTR strFilePath);
960
961
970 EwErrorCode unloadRespan (BSTR strFilePath);
971
972
976 BSTR getName ();
977
978
988
989
999
1000
1009
1010
1019
1020
1032 IEwProjectX openProjectFromFilePath (BSTR strFilePath, EwErrorCode* errorCode);
1033
1034
1047 VARIANT_BOOL isEwProjectOpened (long lProjectId, EwErrorCode* errorCode);
1048
1049
1050
1063 VARIANT_BOOL isEwMacroOpened (long lMacroId, EwErrorCode* errorCode);
1064
1065
1078
1079
1091
1092
1093
1104 BSTR findFile (BSTR strFileName, EwErrorCode* errorCode);
1105
1106
1111
1112
1123
1124
1125
1126
1140 BSTR getFolderPath (EwApplicationFolderPathValue eApplicationFolderPathValue , EwErrorCode* errorCode);
1141
1151
1152
1163
1164
1177
1178
1188
1189
1202
1203
1213
1214
1226
1227
1238
1239
1240
1241
1242
1252
1253
1264
1265
1277
1278
1290
1291
1292
1293
1294
1306
1307
1319
1320
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1354 IEwESX3DExperienceX getEwESX3DExperienceX (EwErrorCode* errorCode);
1355
1356
1357
1358
1370 IDispatch getSWCEFComApplication (EwErrorCode* errorCode);
1371
1372};
1373
1378[
1379 object,
1380 uuid(0F5E85DA-88EF-4A63-83AF-6B11A048CD79),
1381 dual,
1382 oleautomation,
1383 nonextensible,
1384 helpstring("IEwAPIX Interface"),
1385 pointer_default(unique),
1386 hidden
1387]
1388interface IEwAPIX : IDispatch {
1389
1390
1391
1392
1393
1394
1395
1406
1407
1408
1422
1423
1440 EwErrorCode initializeInBackgroundWithUserRight (ULONGLONG mainHwnd, BSTR strUserLogin , BSTR strUserPassword);
1441
1442
1443
1444
1445
1446
1447
1448};
1449
1454[
1455 object,
1456 uuid(899CE40B-CBBC-4018-A65C-D20836ECD11C),
1457 dual,
1458 nonextensible,
1459 pointer_default(unique)
1460]
1461interface IEwAddIn : IDispatch
1462{
1468 VARIANT_BOOL connectToEwAPI (LPDISPATCH ewInteropFactory);
1469
1470
1475 VARIANT_BOOL disconnectFromEwApi ();
1476
1477
1478
1479};
1480
1486[
1487 object,
1488 uuid(6c56f4f9-3277-4cbc-8227-f7e7df9f9bdc),
1489 dual,
1490 nonextensible,
1491 pointer_default(unique)
1492]
1493interface IEwAddinInternalX : IDispatch
1494{
1495};
1496
1501[
1502 object,
1503 uuid(A8F9E04C-539F-4A1B-A38B-8219C7234C90),
1504 dual,
1505 helpstring("IInteropFactoryX Interface"),
1506 nonextensible,
1507 pointer_default(unique)
1508]
1509interface IInteropFactoryX : IDispatch
1510{
1522
1523
1532
1533
1534
1535};
1536
1541[
1542 object,
1543 uuid(DE35BA2A-0566-40D3-AF1D-AD79D1133B09),
1544 dual,
1545 helpstring("IEwInteropFactoryX Interface"),
1546 nonextensible,
1547 pointer_default(unique)
1548]
1550{
1551}
1552
1553
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 an EwMenuManagerX object.
Definition: EwApplicationMenu.idl:522
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.


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   SOLIDWORKS Electrical API: idl_converted/EwAPI.idl Source File
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2025 SP2

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.