Hide Table of Contents
SOLIDWORKS Electrical API 2025.0.0
Electrical API
EwApplicationObjects.idl
Go to the documentation of this file.
1#pragma once
2
3#if (__midl >= 501)
4 midl_pragma warning(disable:2111) /* Disable warning MIDL2111 regarding identifier lengths exceeding 31 chars. */
5#endif
6
7import "oaidl.idl";
8import "ocidl.idl";
9import "EnumDefinition.idl";
10
11import "EwProjectObjects.idl";
12import "EwProjectLocationObjects.idl";
13import "EwApplicationRibbon.idl";
14import "EwApplicationMenu.idl";
15
20[
21 object,
22 uuid(5C625F66-F2A2-493A-A4A1-D4FC0ED1A83A),
23 dual,
24 nonextensible,
25 pointer_default(unique)
26]
35
36
40 DOUBLE getSpacing ();
41
42
46 BSTR getFaceName ();
47
48
53 void set3DID (BSTR strName);
54
55};
56
61[
62 object,
63 uuid(3E730B19-746D-4F31-866E-F0DA4F7AA15F),
64 dual,
65 nonextensible,
66 pointer_default(unique)
67]
73 void setEwProjectID (LONG lProjectID);
74
75
80 void addManufacturerPartID (LONG lID);
81
82
92 VARIANT show (EwErrorCode* errorCode);
93
94};
95
100[
101 object,
102 uuid(23E21DBC-1E5C-4B07-B83D-F2B6F8F3669C),
103 dual,
104 nonextensible,
105 pointer_default(unique)
106]
107interface IEwRightsManagerX : IDispatch
108{
121 VARIANT_BOOL canEditFile (LONG lEwProjectFileID, LONG lEwProjectID, VARIANT_BOOL bShowError, EwErrorCode* errorCode);
122
123
128 VARIANT_BOOL askForUserLogin ();
129
130
135 VARIANT_BOOL resetPassword ();
136
137
142 VARIANT_BOOL askForNewPassword ();
143
144
149 VARIANT_BOOL editCurrenUserAccount ();
150
151
156 VARIANT_BOOL manageUserRight ();
157
158
164 VARIANT_BOOL enableUserRight (VARIANT_BOOL bEnable);
165
166
171
172
178
179
185
186
191
192
193};
194
199[
200 object,
201 uuid(AFF14714-3DF5-47B2-B100-E8F7C9FF77D5),
202 dual,
203 nonextensible,
204 pointer_default(unique)
205]
206interface IEwDialogSummaryX : IDispatch{
214 LONG addItem (BSTR strName, BSTR strDescription, EwErrorLogType eErrorLogType);
215
216
221 void show (BSTR strTitle);
222
223
227 void removeAllItems (void);
228
229
233 void removeItem (LONG lIndex);
234
235};
236
241[
242 object,
243 uuid(54106D74-D582-4AE0-8BAD-291F79FFBB67),
244 dual,
245 nonextensible,
246 pointer_default(unique)
247]
253 void setEwProjectID (LONG lProjectID);
254
255
260 void setEwProjectLocationID (LONG lLocationID);
261
262
267 void setAllowMultiSelection (VARIANT_BOOL bMultiSelection);
268
269
279 VARIANT show (EwErrorCode* errorCode);
280
281};
282
287[
288 object,
289 uuid(FDA5FD96-5436-4185-B3D2-1F7087F6E9D0),
290 dual,
291 nonextensible,
292 pointer_default(unique)
293]
294interface IEwDialogTaskX : IDispatch{
299 void setInstructions (BSTR strInstructions);
300
301
306 void setContent (BSTR strContent);
307
308
318
319
326 void addButton (BSTR strText, LONG nButtonID);
327
328
339 LONG show (EwErrorCode* errorCode);
340
341
348 void setCheck (BSTR strText, VARIANT_BOOL bChecked);
349
350
356 VARIANT_BOOL getCheckState ();
357
358
359};
360
365[
366 object,
367 uuid(E74A2E22-97D2-4A9B-9C59-332E7A29278D),
368 dual,
369 nonextensible,
370 pointer_default(unique)
371]
372interface IEwDialogLocationSelectorX : IDispatch{
377 void setEwProjectID (LONG lProjectID);
378
379
384 void setEwProjectLocationID (LONG lLocationID);
385
386
391 void setEwProjectBundleID (LONG lBundleID);
392
393
398 void setAllowNoSelection (VARIANT_BOOL bAllowNoSelection);
399
400
407 void setFileType3d (EwFileType eFileType);
408
409
422
423};
424
429[
430 object,
431 uuid(87DB5F2F-318A-4FEF-8424-BAA88150F552),
432 dual,
433 nonextensible,
434 pointer_default(unique)
435]
436interface IEwResumeRowX : IDispatch
437{
445 BSTR getName (EwErrorCode* errorCode);
446
447
448
457 EwErrorCode setName (BSTR strName);
458
459
460
468 BSTR getDescription (EwErrorCode* errorCode);
469
470
478 EwErrorCode setDescription (BSTR strDescription);
479
480
481
490
491
500
501
502
510 unsigned long getBackgroundColor (EwErrorCode* errorCode);
511
512
520 EwErrorCode setBackgroundColor (unsigned long ulBackgroungColor);
521
522
523};
524
525
530[
531 object,
532 uuid(CD369693-D8A4-44D7-9345-F2DA9DC9038A),
533 dual,
534 nonextensible,
535 pointer_default(unique)
536]
537interface IEwDialogResumeX : IDispatch
538{
546 EwErrorCode setTitleName (BSTR strTitle);
547
548
557 EwErrorCode setIconID (LONG lIconID);
558
559
569
570
581
582
590
591};
592
593
598[
599 object,
600 uuid(5D98A0F2-C36E-4CB0-B26C-A3F0CC2FCA89),
601 dual,
602 nonextensible,
603 pointer_default(unique)
604]
605interface IEwDialogProgressX : IDispatch {
610 void show (BOOL bShow);
611
612
618 void setCancelEnable (BOOL bEnable);
619
620
625 void setCancelText (BSTR strMsg);
626
627
633 void setStop (BOOL bStop);
634
635
641 BOOL getStop ();
642
643
650 void setSnake (BOOL bSnake);
651
652
657 void setMessage (BSTR strMsg);
658
659
665 void setRange (INT lower, INT upper);
666
667
672 void setStep (INT nStep);
673
674
680 BOOL setPos (INT nPos);
681
682
687 BOOL stepIt ();
688
689
693 void showSecond (BOOL bShow);
694
695
702 void setSecondSnake (BOOL bSnake);
703
704
709 void setSecondMessage (BSTR strMsg);
710
711
717 void setSecondRange (INT lower, INT upper);
718
719
724 void setSecondStep (INT nStep);
725
726
732 BOOL setSecondPos (INT nPos);
733
734
740
741
752 EwErrorCode setTitle (BSTR strTitle);
753
754
764 BSTR getTitle (EwErrorCode* errorCode);
765
766
767}
768
773[
774 object,
775 uuid(D51DC048-995E-4D1C-A84C-5BDED57F4308),
776 dual,
777 nonextensible,
778 helpstring("Context of command containing specific data to process."),
779 pointer_default(unique)
780]
781interface IEwCommandContextX : IDispatch
782{
783
784};
785
786
792[
793 object,
794 uuid(8BD2B37C-3C68-4546-BA43-5EC0CA5F4DD1),
795 dual,
796 nonextensible,
797 helpstring("Object for creating a command to be executed in the application."),
798 pointer_default(unique)
799]
800interface IEwCommandX : IDispatch
801{
810 BSTR getName (EwErrorCode* errorCode);
811
812
820 BSTR getDescription (EwErrorCode* errorCode);
821
822
830 int getFlags (EwErrorCode* errorCode);
831
832
841
842};
843
848[
849 object,
850 uuid(6F9CAAB0-F7B9-4E62-BC62-AA5D70E5248E),
851 dual,
852 nonextensible,
853 helpstring("Use this manager to add or remove custom commands."),
854 pointer_default(unique)
855]
856interface IEwCommandManagerX : IDispatch
857{
868
869
878 EwErrorCode removeCommand (BSTR strCommandName);
879
880
890 VARIANT getParameterList (EwErrorCode* errorCode);
891
892};
893
898[
899 object,
900 uuid(915B6AA1-9AA5-4DAE-A527-781F7A9D070B),
901 dual,
902 oleautomation,
903 nonextensible,
904 helpstring("Use this to manage an excel sheet."),
905 pointer_default(unique)
906]
907interface IEwXLSSheetX : IDispatch
908{
915 BSTR readString (LONG lRow, LONG lCol);
916
917
924 void writeString (LONG lRow, LONG lColumn, BSTR strValue);
925
926
931 LONG firstRow ();
932
933
938 LONG lastRow ();
939
940
945 LONG firstColumn ();
946
947
952 LONG lastColumn ();
953
954
961
962
969
970
977
978
985
986
998 DOUBLE columnWidth (LONG lColumn, EwErrorCode* errorCode);
999
1000
1012 DOUBLE rowHeight (LONG lRow, EwErrorCode* errorCode);
1013
1014
1025 LONG columnWidthInPixels (LONG lColumn, EwErrorCode* errorCode);
1026
1027
1038 LONG rowHeightInPixels (LONG lRow, EwErrorCode* errorCode);
1039
1040
1052 BSTR font (LONG lRow, LONG lColumn, EwErrorCode* errorCode);
1053
1054
1066 VARIANT_BOOL isBold (LONG lRow, LONG lColumn, EwErrorCode* errorCode);
1067
1068
1080 VARIANT_BOOL isItalic (LONG lRow, LONG lColumn, EwErrorCode* errorCode);
1081
1082
1094 VARIANT_BOOL isUnderline (LONG lRow, LONG lColumn, EwErrorCode* errorCode);
1095
1096
1108 LONG textHeight (LONG lRow, LONG lColumn, EwErrorCode* errorCode);
1109
1110
1111};
1112
1113
1118[
1119 object,
1120 uuid(2002AF29-2692-438D-8508-B8731B15F985),
1121 dual,
1122 nonextensible,
1123 pointer_default(unique)
1124]
1125interface IEwXLSBookX : IDispatch {
1134
1142 EwErrorCode load (BSTR strFilePath);
1143
1144
1152 EwErrorCode save (BSTR strFilePath);
1153
1154
1158 LONG sheetCount ();
1159
1160
1170 IEwXLSSheetX getSheetAt (LONG lIndex, EwErrorCode* errorCode);
1171
1172
1184 IEwXLSSheetX createSheet (BSTR strSheetName, EwErrorCode* errorCode);
1185
1186};
1187
1192[
1193 object,
1194 uuid(105f0b35-f9ce-4b66-9f46-b74ae80dec02),
1195 dual,
1196 nonextensible,
1197 pointer_default(unique)
1198]
1199interface IEwDialogProjectManagerX : IDispatch
1200{
1201
1210
1211
1220
1221
1232
1233
1242 VARIANT getSelectedProjectID (EwErrorCode* errorCode);
1243
1244};
1245
1250[
1251 object,
1252 uuid(53485f5d-0404-47d0-800c-30d8bde102bd),
1253 dual,
1254 nonextensible,
1255 helpstring("IEwManagerDialogX Interface"),
1256 pointer_default(unique)
1257]
1258interface IEwManagerDialogX : IDispatch
1259{
1268
1269
1278
1279
1289
1290
1299 VARIANT getSelectedItemID (EwErrorCode* errorCode);
1300
1301
1311
1312
1323 int insertColumn (const BSTR strColName, EwErrorCode* errorCode);
1324
1325
1335 void insertIconOverlay (long long nHandle, EwErrorCode* errorCode);
1336
1337
1347
1348
1349
1360
1361
1362
1363};
1364
1369[
1370 object,
1371 uuid(2aa41d79-0540-4147-ae81-5b9dcd1128eb),
1372 dual,
1373 nonextensible,
1374 helpstring("IEwSelectorDialogX Interface"),
1375 pointer_default(unique)
1376]
1377interface IEwSelectorDialogX : IDispatch
1378{
1387
1388
1397
1398
1408
1409
1418 VARIANT getSelectedItemID (EwErrorCode* errorCode);
1419
1420
1430
1431
1441 int insertColumn (const BSTR strColName, EwErrorCode* errorCode);
1442
1443
1452 void insertIconOverlay (long long nHandle, EwErrorCode* errorCode);
1453
1454
1463
1464
1474
1475
1486
1487
1488
1489
1490
1491};
1492
1497[
1498 object,
1499 uuid(13B798C0-9B4F-48AB-8856-E2813B57357B),
1500 dual,
1501 nonextensible,
1502 helpstring("IEwNotificationDialogX Interface"),
1503 pointer_default(unique)
1504]
1505interface IEwNotificationDialogX : IDispatch
1506{
1515 BSTR getMessage (EwErrorCode* errorCode);
1516
1517
1526 EwErrorCode setMessage (BSTR strMessage);
1527
1528
1538
1539
1549 EwErrorCode setMessageType (EwNotificationMessageType eNotificationDialogMessageType);
1550
1551
1560 BSTR getTitle (EwErrorCode* errorCode);
1561
1562
1571 EwErrorCode setTitle (BSTR strTitle);
1572
1573
1581 int getXPosition (EwErrorCode* errorCode);
1582
1583
1591 EwErrorCode setXPosition (int iXCoordinate);
1592
1593
1601 int getYPosition (EwErrorCode* errorCode);
1602
1603
1611 EwErrorCode setYPosition (int iYCoordinate);
1612
1613
1621 VARIANT_BOOL isHyperlinkSupported (EwErrorCode* errorCode);
1622
1623
1631 EwErrorCode setHyperlinkSupport (VARIANT_BOOL bShowHyperlink);
1632
1633
1642
1643
1652 EwErrorCode setShowDelayTime (int nShowDelayTime);
1653
1654
1662
1663
1671
1672
1680 VARIANT_BOOL isStackNotificationEnabled (EwErrorCode* errorCode);
1681
1682
1690 EwErrorCode setStackNotification (VARIANT_BOOL bStackNotification);
1691
1692};
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:24
EwIconIndex
Default icons.
Definition: EnumDefinition.idl:205
EwErrorLogType
All possible items type for the summary dialog.
Definition: EwEnumeration.idl:360
EwFileType
File types used in a project.
Definition: EwEnumeration.idl:407
EwNotificationMessageType
Enumeration of the Message type in notification dialog Type of message, to change icon (and later col...
Definition: EwEnumeration.idl:1421
EwDialogSelectorType
All the Selector Dialogs.
Definition: EwEnumeration.idl:1306
EwXLSFileType
Different types of Excel file.
Definition: EwEnumeration.idl:587
Context of command containing specific data to process.
Definition: EwApplicationObjects.idl:782
Use this manager to add or remove custom commands.
Definition: EwApplicationObjects.idl:857
EwErrorCode removeCommand(BSTR strCommandName)
Remove a command.
EwErrorCode addCommand(IEwCommandX *iCommand)
Add an object derived from IEwCommandX.
VARIANT getParameterList(EwErrorCode *errorCode)
Return the list of parameters of the last command executed.
Object for creating a command to be executed in the application.
Definition: EwApplicationObjects.idl:801
BSTR getDescription(EwErrorCode *errorCode)
Return a sentence to fully describe the command.
BSTR getName(EwErrorCode *errorCode)
Return the name of the command.
EwErrorCode execute(IEwCommandContextX *iCommandContextX)
Method called when command is executed.
int getFlags(EwErrorCode *errorCode)
Combination of flags to define some specific behavior for a command.
Use this interface to manage the align parameters from the user interface.
Definition: EwApplicationObjects.idl:27
EwErrorCode show()
Displays the dialog.
void set3DID(BSTR strName)
set the id of 3d Application
Use this interface to display a location selector dialog.
Definition: EwApplicationObjects.idl:372
void setEwProjectLocationID(LONG lLocationID)
Sets the location where selected locations are inserted.
void setAllowNoSelection(VARIANT_BOOL bAllowNoSelection)
Set the possibility to return OK with no location selected.
void setEwProjectBundleID(LONG lBundleID)
Set the ID of current bundle.
void setFileType3d(EwFileType eFileType)
Set file type for 3d layout insertion.
IEwProjectLocationX show(EwErrorCode *errorCode)
Displays the dialog.
void setEwProjectID(LONG lProjectID)
Sets the project from where the dialog will take the locations.
Use this interface to display the order of manufacturer parts dialog.
Definition: EwApplicationObjects.idl:68
void setEwProjectID(LONG lProjectID)
Sets the project from where the dialog will take the manufacturer parts.
VARIANT show(EwErrorCode *errorCode)
Displays the dialog.
void addManufacturerPartID(LONG lID)
Add a manufacturer part ID to the list that will be ordered.
Use this interface to display a dialog that allows the user to select build of materials.
Definition: EwApplicationObjects.idl:248
VARIANT show(EwErrorCode *errorCode)
Displays the dialog.
void setEwProjectID(LONG lProjectID)
Sets the project from where the dialog will take the manufacturer parts.
void setEwProjectLocationID(LONG lLocationID)
Sets the location where the reference parts are inserted.
void setAllowMultiSelection(VARIANT_BOOL bMultiSelection)
Sets the possibility to do a multi selection in the manufacturer parts list.
Use this interface to display a progress dialog.
Definition: EwApplicationObjects.idl:605
void setCancelText(BSTR strMsg)
Set cancel button text.
BSTR getTitle(EwErrorCode *errorCode)
Get the title of progress dialog.
BOOL getStop()
Get stop flag.
BOOL setSecondPos(INT nPos)
Set progress position for second progress bar.
void setSecondMessage(BSTR strMsg)
Set message string displayed above the progress indicator for second progress bar.
BOOL setPos(INT nPos)
Set progress position.
BOOL stepIt()
Step the progress.
BOOL stepItSecond()
Step the progress for second progress bar.
EwErrorCode setTitle(BSTR strTitle)
Set the title of progress dialog.
void setSnake(BOOL bSnake)
Set snake mode.
void setStop(BOOL bStop)
Set stop flag.
void setMessage(BSTR strMsg)
Set message string displayed above the progress indicator.
void setSecondStep(INT nStep)
Set progress step for second progress bar.
void setSecondRange(INT lower, INT upper)
Set progress range for second progress bar.
void setRange(INT lower, INT upper)
Set progress range.
void show(BOOL bShow)
Show / hide the dialog.
void setSecondSnake(BOOL bSnake)
Set snake mode for second progress bar.
void setStep(INT nStep)
Set progress step.
void showSecond(BOOL bShow)
Show / hide second progress bar 0 = true , 1 = false.
void setCancelEnable(BOOL bEnable)
Show / Hide cancel button.
Use this interface to the Project Manager Dialog.
Definition: EwApplicationObjects.idl:1200
EwErrorCode close()
Close the current Project manager dialog.
VARIANT getSelectedProjectID(EwErrorCode *errorCode)
Return an array of project ID selected in the Project manager dialog.
EwErrorCode show()
Display the Project manager dialog.
IEwRibbonX getEwRibbon(EwErrorCode *errorCode)
return an IEwRibbonX interface to EwRibbonX object.
Use this interface to display a resume dialog.
Definition: EwApplicationObjects.idl:538
EwErrorCode addEwResumeRow(IEwResumeRowX *iResumeRow)
Add a resume to display.
IEwResumeRowX newEwResumeRow(EwErrorCode *errorCode)
Create a new EwResumeRow object.
EwErrorCode setTitleName(BSTR strTitle)
Set the title of the resume dialog.
EwErrorCode show()
Displays the resume dialog.
EwErrorCode setIconID(LONG lIconID)
Set the Icon for the resume dialog.
Use this interface to display a summary dialog.
Definition: EwApplicationObjects.idl:206
void removeItem(LONG lIndex)
Remove the item at the target index.
LONG addItem(BSTR strName, BSTR strDescription, EwErrorLogType eErrorLogType)
Add a new item to the dialog.
void show(BSTR strTitle)
Displays the dialog.
void removeAllItems(void)
Remove all the inserted items.
Use this interface to display a task dialog.
Definition: EwApplicationObjects.idl:294
void setCheck(BSTR strText, VARIANT_BOOL bChecked)
Add (set) check button at the dialog bottom.
EwErrorCode setMainIcon(EwIconIndex iIconIndex)
Set the main icon.
LONG show(EwErrorCode *errorCode)
Display the dialog Warning at least one button must be added.
void addButton(BSTR strText, LONG nButtonID)
Call this member function to add a user defined button to the task dialog's command area.
void setContent(BSTR strContent)
Set the content.
void setInstructions(BSTR strInstructions)
Set the main instructions.
VARIANT_BOOL getCheckState()
Get check button state.
Use this interface to manage the Library/Configuration manager dialogs.
Definition: EwApplicationObjects.idl:1259
void insertIconOverlay(long long nHandle, EwErrorCode *errorCode)
Insert an icon overlay to the first column if the list control of the manager.
EwErrorCode redrawList()
Redraw list control of the manager.
VARIANT getSelectedItemID(EwErrorCode *errorCode)
Return an array of Item ID selected in the manager dialog.
EwErrorCode show()
Display the current manager dialog.
IEwMenuManagerX getEwMenuManager(EwErrorCode *errorCode)
Return an IEwMenuManagerX interface on the current manager dialog.
int insertColumn(const BSTR strColName, EwErrorCode *errorCode)
insert a column into the list control of the manager
EwErrorCode close()
Close the current current manager dialog.
IEwRibbonX getEwRibbon(EwErrorCode *errorCode)
Return an IEwRibbonX interface on the current manager dialog.
EwErrorCode setSelectedItemID(VARIANT vArray)
Set an array of Item ID to select line in the manager dialog.
Use this interface to manage an EwMenuManagerX object.
Definition: EwApplicationMenu.idl:522
Use this interface to manage notification dialog.
Definition: EwApplicationObjects.idl:1506
EwErrorCode setTitle(BSTR strTitle)
Set a new Title for the Notification Dialog.
int getXPosition(EwErrorCode *errorCode)
Get the horizontal position in screen coordinates of the Notification Dialog.
int getShowDelayTime(EwErrorCode *errorCode)
Get the time in milliseconds after which the dialog will auto close.
EwErrorCode setMessage(BSTR strMessage)
Set a new Message for the Notification Dialog.
EwErrorCode close()
Close the notification dialog.
EwErrorCode setMessageType(EwNotificationMessageType eNotificationDialogMessageType)
Set an EwNotificationMessageType enum value, an enumeration Message Type of the Notification Dialog.
EwNotificationMessageType getMessageType(EwErrorCode *errorCode)
Get an EwNotificationMessageType enum value, an enumeration Message Type of the Notification Dialog.
EwErrorCode setXPosition(int iXCoordinate)
Set the horizontal position in screen coordinates of the Notification Dialog.
EwErrorCode setStackNotification(VARIANT_BOOL bStackNotification)
Set to enable stack notifications.
BSTR getTitle(EwErrorCode *errorCode)
Return the Title of the Notification Dialog.
EwErrorCode show()
Display a message in a bubble at a specific point.
VARIANT_BOOL isStackNotificationEnabled(EwErrorCode *errorCode)
Determine if stack notification is enabled.
EwErrorCode setHyperlinkSupport(VARIANT_BOOL bShowHyperlink)
Set to enable hyperlink support for a text item.
EwErrorCode setYPosition(int iYCoordinate)
Set the vertical position in screen coordinates of the top of the menu on the screen.
int getYPosition(EwErrorCode *errorCode)
Get the vertical position in screen coordinates of the top of the menu on the screen.
BSTR getMessage(EwErrorCode *errorCode)
Return the Message of the Notification Dialog.
VARIANT_BOOL isHyperlinkSupported(EwErrorCode *errorCode)
Determine if hyperlink support is enabled.
EwErrorCode setShowDelayTime(int nShowDelayTime)
Set the time in milliseconds after which the dialog will auto close.
Use this interface to manage the location inside a project.
Definition: EwProjectLocationObjects.idl:27
Use this interface to specify a resume row for the resume dialog.
Definition: EwApplicationObjects.idl:437
BSTR getDescription(EwErrorCode *errorCode)
Get the description of a row for the resume dialog.
unsigned long getBackgroundColor(EwErrorCode *errorCode)
Get the background color of a row for the resume dialog.
EwErrorCode setName(BSTR strName)
Set the name of a row for the resume dialog.
EwErrorCode setBackgroundColor(unsigned long ulBackgroungColor)
Set the background color of a row.
EwErrorCode setLogType(EwErrorLogType eErrorLogType)
Set the log type of a row for the resume dialog.
EwErrorLogType getLogType(EwErrorCode *errorCode)
Get the log type of a row for the resume dialog.
EwErrorCode setDescription(BSTR strDescription)
Set the description of a row for the resume dialog.
BSTR getName(EwErrorCode *errorCode)
Get the name of a row for the resume dialog.
Use this interface to manage the Ribbon Bar.
Definition: EwApplicationRibbon.idl:1248
Use this interface to manage the application rights.
Definition: EwApplicationObjects.idl:108
VARIANT_BOOL manageUserRight()
Open user right managment dialog.
void updateProtectionType(void)
Check if password/user login protection is enabled.
VARIANT_BOOL resetPassword()
Remove the password needed to use the application.
VARIANT_BOOL enableUserRight(VARIANT_BOOL bEnable)
Enable/disable user right, checking if current authorization are ok.
VARIANT_BOOL canEditFile(LONG lEwProjectFileID, LONG lEwProjectID, VARIANT_BOOL bShowError, EwErrorCode *errorCode)
Check if the current user can edit the target IEwProjectFileX.
void initUserRightFeatureDescription(void)
Initialize description of the user right feature.
VARIANT_BOOL askForNewPassword()
Prompt user to enter a new password to protect interface.
VARIANT_BOOL editCurrenUserAccount()
Edit properties of current user account.
VARIANT_BOOL askForUserLogin()
Depending on protection type, ask for user to login if necessary.
BSTR getCurrentUserDescription()
get description of current user
VARIANT_BOOL isAuthorizedToAccessLibraryManager()
Use this interface to manage Selector dialogs.
Definition: EwApplicationObjects.idl:1378
IEwMenuManagerX getEwMenuManager(EwErrorCode *errorCode)
Return an IEwMenuManagerX interface on the current selector dialog.
EwDialogSelectorType getEwDialogSelectorType(EwErrorCode *errorCode)
Return EwDialogSelectorType enumeration type from the current selector dialog.
EwErrorCode setSelectedItemID(VARIANT vArray)
Set an array of Item ID or string GUID to select line in the selector dialog.
VARIANT getSelectedItemID(EwErrorCode *errorCode)
Return an array of Item ID or string GUID selected in the selector dialog.
EwErrorCode show()
Display the current selector dialog.
EwErrorCode redrawList()
Redraw list control of the selector.
void insertIconOverlay(long long nHandle, EwErrorCode *errorCode)
Insert an icon overlay to the first column if the list control of the selector.
IEwRibbonX getEwRibbon(EwErrorCode *errorCode)
Return an IEwRibbonX interface on the current selector dialog.
EwErrorCode close()
Close the current current selector dialog.
int insertColumn(const BSTR strColName, EwErrorCode *errorCode)
Insert a column into the list control of the selector.
Use this interface to manage a XLS file.
Definition: EwApplicationObjects.idl:1125
EwErrorCode load(BSTR strFilePath)
load XLS or XLSX File
EwErrorCode create(EwXLSFileType eXLSFileType)
Create an xls or xlsx file.
EwErrorCode save(BSTR strFilePath)
Save the file previously loaded or created.
LONG sheetCount()
IEwXLSSheetX getSheetAt(LONG lIndex, EwErrorCode *errorCode)
get the sheet at index passed as parameter
IEwXLSSheetX createSheet(BSTR strSheetName, EwErrorCode *errorCode)
Create the sheet with the name passed as a parameter.
Use this to manage an excel sheet.
Definition: EwApplicationObjects.idl:908
BSTR font(LONG lRow, LONG lColumn, EwErrorCode *errorCode)
Get the font used in a cell.
LONG columnWidthInPixels(LONG lColumn, EwErrorCode *errorCode)
Get the width of the column.
LONG firstFilledRow()
Get the first row filled in the sheet.
LONG lastColumn()
Get the last column in sheet.
VARIANT_BOOL isBold(LONG lRow, LONG lColumn, EwErrorCode *errorCode)
Return true if the bold is used in the cell.
LONG firstRow()
Get the first row in sheet.
BSTR readString(LONG lRow, LONG lCol)
Return a string with the value of cell.
LONG firstFilledColumn()
Get the first column filled in sheet.
LONG lastFilledRow()
Get the last row filled in the sheet.
VARIANT_BOOL isItalic(LONG lRow, LONG lColumn, EwErrorCode *errorCode)
Return true if italic is used in the cell.
LONG textHeight(LONG lRow, LONG lColumn, EwErrorCode *errorCode)
Get the height of text in cell.
VARIANT_BOOL isUnderline(LONG lRow, LONG lColumn, EwErrorCode *errorCode)
Return true if underline is used in the cell.
LONG lastFilledColumn()
Get the last row filled in the sheet.
DOUBLE rowHeight(LONG lRow, EwErrorCode *errorCode)
Get the height of a row.
LONG rowHeightInPixels(LONG lRow, EwErrorCode *errorCode)
Get the height of the row.
void writeString(LONG lRow, LONG lColumn, BSTR strValue)
Write the string in the indicated cell.
LONG lastRow()
Get the last row in sheet.
LONG firstColumn()
Get the first column in sheet.
DOUBLE columnWidth(LONG lColumn, EwErrorCode *errorCode)
Get the width of a column.


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/EwApplicationObjects.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.