Hide Table of Contents
SOLIDWORKS Electrical API 2025.0.0
Electrical API
EwProjectObjects.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
7import "oaidl.idl";
8import "ocidl.idl";
9
10import "EnumDefinition.idl";
11import "EwProjectRoutingObjects.idl";
12import "EwProjectComponentObjects.idl";
13import "EwProjectManufacturerPartObjects.idl";
14import "EwProjectLocationObjects.idl";
15import "EwProjectFunctionObjects.idl";
16import "EwProjectWireObjects.idl";
17import "EwProjectCableObjects.idl";
18import "EwProjectEntity3DObjects.idl";
19import "EwProjectHarnessObjects.idl";
20import "EwProjectExportObjects.idl";
21import "EwProjectProcessObjects.idl";
22import "EwProjectInputOutputObjects.idl";
23import "EwProjectFileConfigurationObjects.idl";
24
25
26/************************************************************************/
27/* In his file, all PROJECT object */
28/************************************************************************/
29
30
31/************************************************************************/
32/* ENUMERATION */
33/************************************************************************/
34
35/************************************************************************/
36/* INTERFACES */
37/************************************************************************/
38
40
45[
46 object,
47 uuid(61E3B88F-DFC7-426A-A58C-429402376A7F),
48 dual,
49 oleautomation,
50 nonextensible,
51 helpstring("IEwProjectSymbolPointX Interface"),
52 pointer_default(unique)
53]
55{
64 long getSymbolID (EwErrorCode* errorCode);
65
66
75 long getMeshID (EwErrorCode* errorCode);
76
77
86 long getCircuitNumber (EwErrorCode* errorCode);
87
88
97 long getTerminalNumber (EwErrorCode* errorCode);
98
99
108 long getPointNumber (EwErrorCode* errorCode);
109
110
120
121
130 double getPointAngle (EwErrorCode* errorCode);
131
132
145
146};
147
152[
153 object,
154 uuid(F75B556C-A521-422F-A8F1-C22BC9D68DA7),
155 dual,
156 oleautomation,
157 nonextensible,
158 helpstring("IEwProjectSymbolCircuitX Interface"),
159 pointer_default(unique)
160]
162{
171 long getSymbolID (EwErrorCode* errorCode);
172
173
182 long getCircuitNumber (EwErrorCode* errorCode);
183
184
193 BSTR getKeyCode (EwErrorCode* errorCode);
194
195
205
206};
207
212[
213 object,
214 uuid(B13AD024-81E0-41C8-ADCA-518E347AAAE9),
215 dual,
216 oleautomation,
217 nonextensible,
218 helpstring("IEwProjectSymbolX Interface"),
219 pointer_default(unique)
220]
222{
231 long getFileID (EwErrorCode* errorCode);
232
233
243 long getLocationID (EwErrorCode* errorCode);
244
245
246
256 long getFunctionID (EwErrorCode* errorCode);
257
258
267 BSTR getEwSymbolName (EwErrorCode* errorCode);
268
269
281 EwErrorCode setEwSymbolName (BSTR strSymbolName);
282
283
293 long getObjectID (EwErrorCode* errorCode);
294
295
306
307
317
318
328
329
339
340
350
351
361
362
371 double getXPosition (EwErrorCode* errorCode);
372
373
383 EwErrorCode setXPosition (double dXCoordinate);
384
385
394 double getYPosition (EwErrorCode* errorCode);
395
396
406 EwErrorCode setYPosition (double dYCoordinate);
407
408
418
419
428 BSTR getColumnMark (EwErrorCode* errorCode);
429
430
439 BSTR getRowMark (EwErrorCode* errorCode);
440
441
442
452 double getRotationAngle (EwErrorCode* errorCode);
453
454
466
467
478 EwErrorCode setYScale (double dYScale);
479
480
489 double getYScale (EwErrorCode* errorCode);
490
491
500 double getXScale (EwErrorCode* errorCode);
501
502
513 EwErrorCode setXScale (double dXScale);
514
515
516
517
518
519
520
521
527
528
540
541
551
552
559
560
573
574
585
586
587
599 double getWidth (EwErrorCode* errorCode);
600
601
617 EwErrorCode setWidth (double dWidth);
618
619
631 double getHeight (EwErrorCode* errorCode);
632
633
649 EwErrorCode setHeight (double dHeight);
650
651};
652
657[
658 object,
659 uuid(06DD51E2-79F7-4148-9F53-02932E9A2D44),
660 dual,
661 oleautomation,
662 nonextensible,
663 pointer_default(unique)
664]
665interface IEwProjectSymbolManagerX : IDispatch
666{
678
679
690 VARIANT getProjectSymbolsFromFileID (LONG lID, EwErrorCode* errorCode);
691
692};
693
698[
699 object,
700 uuid(353a273d-09b7-467e-bde5-fc5e9d9d49da),
701 dual,
702 oleautomation,
703 nonextensible,
704 helpstring("IEwProjectMultilingualTextFontX Interface"),
705 pointer_default(unique)
706]
708{
718 long getObjectID (EwErrorCode* errorCode);
719
720
729 BSTR getFont (EwErrorCode* errorCode);
730
731
732
741 VARIANT_BOOL isBold (EwErrorCode* errorCode);
742
743
752 EwErrorCode setBold (VARIANT_BOOL bBold);
753
754
763 VARIANT_BOOL isItalic (EwErrorCode* errorCode);
764
765
774 EwErrorCode setItalic (VARIANT_BOOL bItalic);
775
776
785 VARIANT_BOOL isUnderline (EwErrorCode* errorCode);
786
787
796 EwErrorCode setUnderline (VARIANT_BOOL bUnderline);
797
798
807 double getHeight (EwErrorCode* errorCode);
808
809
819 EwErrorCode setHeight (double dHeight);
820
821
831
832
842 EwErrorCode setProjectConfigurationFontUsed (VARIANT_BOOL bUseConfigurationFont);
843
844
845};
846
851[
852 object,
853 uuid(887a7b94-ad63-44c0-ac60-089ba873ceca),
854 dual,
855 oleautomation,
856 nonextensible,
857 helpstring("IEwProjectMultilingualTextX Interface"),
858 pointer_default(unique)
859]
861{
870 long getFileID (EwErrorCode* errorCode);
871
872
881 double getXPosition (EwErrorCode* errorCode);
882
883
892 EwErrorCode setXPosition (double dXCoordinate);
893
894
903 double getYPosition (EwErrorCode* errorCode);
904
905
914 EwErrorCode setYPosition (double dYCoordinate);
915
916
926 double getRotationAngle (EwErrorCode* errorCode);
927
928
939
940
951
952
962
963
973 BSTR getText (BSTR strLanguageCode, EwErrorCode* errorCode);
974
975
985 EwErrorCode setText (BSTR strLanguageCode, BSTR strNewText);
986
987
999
1000
1013 BSTR getDescription (BSTR strLanguage, EwErrorCode* errorCode);
1014
1015
1030 EwErrorCode setDescription (BSTR strLanguage, BSTR strDescription);
1031
1032};
1033
1038[
1039 object,
1040 uuid(dc9e2d75-82fe-4f77-a4f3-f98377e6162f),
1041 dual,
1042 oleautomation,
1043 nonextensible,
1044 pointer_default(unique)
1045]
1047{
1055 INT_PTR getCount (EwErrorCode* errorCode);
1056
1057
1066
1067
1078 IEwProjectMultilingualTextX findEwProjectMultilingualTextByID (LONG lEwProjectMultilingualTextXID, EwErrorCode* errorCode);
1079
1080
1091 VARIANT getEwProjectMultilingualTextByFileIDArray (LONG lEwProjectMultilingualTextXFileID, EwErrorCode* errorCode);
1092
1093};
1094
1099[
1100 object,
1101 uuid(4ac92b54-1043-11e5-9493-1697f925ec7b),
1102 dual,
1103 oleautomation,
1104 nonextensible,
1105 helpstring("IEwProjectFileX Interface"),
1106 pointer_default(unique)
1107]
1109{
1110
1122
1123
1133 BSTR getFilePath (EwErrorCode* errorCode);
1134
1135
1145
1146
1156
1157
1162
1163
1174 LONG getPosition (EwErrorCode* errorCode);
1175
1176
1177
1178
1190
1191
1204
1205
1222
1223
1240
1241
1242
1253 VARIANT_BOOL isOpen (EwErrorCode* errorCode);
1254
1255
1267
1268
1280
1281
1294
1295
1312 EwErrorCode setOriginalFilePath (BSTR strFilePath, VARIANT_BOOL bAsShortCut);
1313
1314
1327
1328
1339 VARIANT_BOOL isLockByMe (EwErrorCode* errorCode);
1340
1341
1352 VARIANT_BOOL isLockedByAnother (EwErrorCode* errorCode);
1353
1354
1366
1367
1368
1369
1370
1371
1372
1373
1374
1385 long getLocationID (EwErrorCode* errorCode);
1386
1387
1399 EwErrorCode setLocationID (long lID, VARIANT_BOOL bChangeInComponent);
1400
1401
1412 long getFunctionID (EwErrorCode* errorCode);
1413
1414
1427 EwErrorCode setFunctionID (long lID, VARIANT_BOOL bChangeInComponent);
1428
1429
1430
1431
1441 VARIANT_BOOL canInsertSymbol (EwErrorCode* errorCode);
1442
1443
1459
1460};
1461
1466[
1467 object,
1468 uuid(5C9A9148-129E-4FCC-AE6A-842C0F78C736),
1469 dual,
1470 nonextensible,
1471 helpstring("IEwProjectBookX Interface"),
1472 pointer_default(unique)
1473]
1475{
1486 long getLocationID (EwErrorCode* errorCode);
1487
1488
1500
1501
1512 long getFunctionID (EwErrorCode* errorCode);
1513
1514
1527
1528};
1529
1534[
1535 object,
1536 uuid(BEBE7B8F-F07A-4F7B-B931-B206E6587E76),
1537 dual,
1538 oleautomation,
1539 nonextensible,
1540 helpstring("IEwProjectFileManagerX Interface"),
1541 pointer_default(unique)
1542]
1543interface IEwProjectFileManagerX : IDispatch {
1544
1552 INT_PTR getCount (EwErrorCode* errorCode);
1553
1554
1563
1564
1574 IEwProjectFileX findEwProjectFileByID (LONG lEwProjectFileID, EwErrorCode* errorCode);
1575
1576
1588
1589
1600
1601
1613
1614};
1615
1620[
1621 object,
1622 uuid(4227D81E-E027-43CF-89C4-D877A885BBB1),
1623 dual,
1624 oleautomation,
1625 nonextensible,
1626 helpstring("IEwProjectConfigurationX Interface"),
1627 pointer_default(unique)
1628]
1630{
1631
1632 /*
1633 * Get the name of the title block associated with a cabinet layout
1634 * \return Title block name
1635 */
1637
1638
1639 /*
1640 * Get the used measuremnt type.
1641 * \param[out] errorCode EwErrorCode enum type, can be:
1642 * \li EW_UNDEFINED_ERROR if another error occurred
1643 * \li EW_INVALID_OBJECT if object is not initialized
1644 * \li EW_NO_ERROR if no error detected
1645 * \return Measurement type
1646 */
1648
1649
1650 /*
1651 * Get the current language code.
1652 * \param[out] errorCode EwErrorCode enum type, can be:
1653 * \li EW_UNDEFINED_ERROR if another error occurred
1654 * \li EW_INVALID_OBJECT if object is not initialized
1655 * \return Language code
1656 * \li EW_NO_ERROR if no error detected
1657 */
1659
1660
1661 /*
1662 * Set a project configuration value.
1663 * \param[in] eProjectConfigurationValues The project configuration property you want to apply
1664 * \param[in] vValue The value you want to apply
1665 * \return EwErrorCode enum type, can be:
1666 * \li EW_UNDEFINED_ERROR if another error occurred
1667 * \li EW_INVALID_OBJECT if object is not initialized
1668 * \li EW_NO_ERROR if no error detected
1669 */
1670 EwErrorCode setEwProjectConfigValue (EwProjectConfigValue eProjectConfigurationValues, VARIANT vValue);
1671
1672
1673 /*
1674 * Get a project configuration value.
1675 * \param[in] eProjectConfigurationValues The project configuration property you want to get
1676 * \param[out] errorCode EwErrorCode enum type, can be:
1677 * \li EW_UNDEFINED_ERROR if another error occurred
1678 * \li EW_INVALID_OBJECT if object is not initialized
1679 * \li EW_BAD_INPUTS if the project configurations values does not exist
1680 * \li EW_NO_ERROR if no error detected
1681 * \return project configuration value
1682 */
1683 VARIANT getEwProjectConfigValue (EwProjectConfigValue eProjectConfigurationValues, EwErrorCode* errorCode);
1684
1685
1698
1699
1700
1711
1712};
1713
1718[
1719 object,
1720 uuid(F984331D-9550-492C-9804-C43D9A173CA1),
1721 dual,
1722 nonextensible,
1723 pointer_default(unique)
1724]
1725interface IEwProjectBookManagerX : IDispatch
1726{
1734 INT_PTR getCount (EwErrorCode* errorCode);
1735
1736
1745
1746
1756 IEwProjectBookX findEwProjectBookByID (LONG lEwProjectBookID, EwErrorCode* errorCode);
1757
1758
1767
1768};
1769
1774[
1775 object,
1776 uuid(10D11ED8-FB45-4A3E-ADF6-DC349B4ECBFF),
1777 dual,
1778 nonextensible,
1779 helpstring("IEwProjectFolder Interface"),
1780 pointer_default(unique)
1781]
1783{
1784
1794
1795
1796
1807
1808
1819
1820
1832
1833
1844
1845
1857
1858
1867 VARIANT_BOOL getDefineFirstDrawingNumber (EwErrorCode* errorCode);
1868
1869
1878 EwErrorCode setDefineFirstDrawingNumber (VARIANT_BOOL bDefineFirstDrawingNumber);
1879
1880
1889 LONG getPosition (EwErrorCode* errorCode);
1890
1891
1892};
1893
1894
1899[
1900 object,
1901 uuid(85158F93-1205-4614-ABC3-F3F19F9EDCDD),
1902 dual,
1903 nonextensible,
1904 pointer_default(unique)
1905]
1906interface IEwProjectFolderManagerX : IDispatch
1907{
1915 INT_PTR getCount (EwErrorCode* errorCode);
1916
1917
1926
1927
1937 IEwProjectFolderX findEwProjectFolderByID (LONG lEwProjectFolderID, EwErrorCode* errorCode);
1938
1939
1948
1949};
1950
1955[
1956 object,
1957 uuid(9442A4C0-D96C-4AAE-B679-C76877753635),
1958 dual,
1959 oleautomation,
1960 nonextensible,
1961 helpstring("IEwProjectX Interface"),
1962 pointer_default(unique)
1963]
1964interface IEwProjectX : IDispatch {
1965
1966
1967
1968
1974
1975
1985
1986
1996
1997
2007
2008
2017 IEwRoutingDataX getEwRoutingData (EwErrorCode* errorCode);
2018
2019
2029
2030
2040
2041
2051
2052
2053 /*
2054 * \return Get the ID of the project. -1 if the object is invalid
2055 */
2056 LONG getID ();
2057
2058
2068 EwErrorCode setName (BSTR strValue);
2069
2070
2079 BSTR getName (EwErrorCode* errorCode);
2080
2081
2091
2092
2101 BSTR getCustomerName (EwErrorCode* errorCode);
2102
2103
2113
2114
2124
2125
2135
2136
2146
2147
2157
2158
2168
2169
2179
2180
2190
2191
2201
2202
2212
2213
2223
2224
2234
2235
2245
2246
2256
2257
2267
2268
2278
2279
2280 /*
2281 * Update the object properties. If one of the properties has been modified, you must call this method to apply this modification.
2282 * Project must be opened to be able to call this method
2283 * \return EwErrorCode enum type, can be:
2284 * \li EW_UNDEFINED_ERROR default Error
2285 * \li EW_PROJECT_NOTOPENED Project not opened
2286 * \li EW_NO_ERROR if no error detected
2287 */
2289
2290
2302 EwErrorCode setUserData (LONG nUserDataNumber, BSTR strValue);
2303
2304
2315 BSTR getUserData (LONG nUserDataNumber, EwErrorCode* errorCode);
2316
2317
2331 EwErrorCode setTranslatedData (LONG nUserDataNumber, BSTR strLanguage, BSTR strValue);
2332
2333
2345 BSTR getTranslatedData (LONG nUserDataNumber, BSTR strLanguage, EwErrorCode* errorCode);
2346
2347
2357
2358
2368
2369
2379
2380
2391 VARIANT getMacroVariables (EwErrorCode* errorCode);
2392
2393
2404
2405
2414
2415
2416 /*
2417 * Remove the project. Project will be closed and mustn't be opened by someone else if you are using client and server installation.
2418 * \return EwErrorCode enum type, can be:
2419 * \li EW_UNDEFINED_ERROR if another error occurred
2420 * \li EW_INVALID_OBJECT if object is not valid
2421 * \li EW_PROJECT_NOTOPENED: project are close.
2422 * \li EW_CANNOT_REMOVE if project cannot be removed
2423 * \li EW_NO_PROJECT_OPENED_BY_SOMEONE_ELSE if project is opened on another computer by someone else
2424 * \li EW_CANNOT_DROP_DATABASE if project database cannot be dropped. This can happen if the SQL Server Database cannot be deleted because it's opened by another process.
2425 * \li EW_CANNOT_DELETE_FOLDER if project folder cannot be deleted. This can happen if you don't have rights to delete the project folder.
2426 * \li EW_DATABASE_CONNECTION_ERROR if connection to project database cannot be opened. You need to check the query log to investigate the reason.
2427 * \li EW_CANNOT_CLOSE_PROJECT if project cannot be closed
2428 * \li EW_NO_ERROR if no error detected
2429 */
2430 EwErrorCode remove ();
2431
2432
2441
2442
2451
2452
2462
2463
2473
2474
2483
2484
2492 EwErrorCode setExternID (BSTR strValue);
2493
2494
2502 BSTR getExternID (EwErrorCode* errorCode);
2503
2504
2514
2515
2526
2527
2536
2537
2548
2549
2561 BSTR getFolderPath (EwProjectFolderPathValue eProjectFolderPathValue, EwErrorCode* errorCode);
2562
2563
2574
2575
2586
2587
2598
2599
2610
2611
2622
2623
2634
2635
2646
2647
2658
2659
2668 BSTR getModifiedBy (EwErrorCode* eErrorCode);
2669
2670
2679
2680
2689
2690
2699 BSTR getCreatedBy (EwErrorCode* eErrorCode);
2700
2701
2712
2713
2725
2726
2737
2738
2749
2750
2762
2763
2764 /*
2765 * Insert new empty project.
2766 * \since 2023 SP0
2767 * \return EwErrorCode enum type, can be:
2768 * \li EW_UNDEFINED_ERROR if another error occurred
2769 * \li EW_INVALID_OBJECT if object is not valid
2770 * \li EW_OBJECT_ALREADY_INSERTED project already exists
2771 * \li EW_INSERTION_FAILED if the insertion failed
2772 * \li EW_NO_ERROR if no error detected
2773 */
2775
2776
2777 /*
2778 * Insert new project from template.
2779 * \since 2023 SP0
2780 * \param[in] strTemplateName template name of project to create
2781 * \return EwErrorCode enum type, can be:
2782 * \li EW_UNDEFINED_ERROR if another error occurred
2783 * \li EW_DOES_NOT_EXIST_ERROR if path of project template not exist
2784 * \li EW_BAD_INPUTS if project Template not exist
2785 * \li EW_INVALID_OBJECT if object is not valid
2786 * \li EW_OBJECT_ALREADY_INSERTED project already exists
2787 * \li EW_INSERTION_FAILED if the insertion failed
2788 * \li EW_NO_ERROR if no error detected
2789 */
2790 EwErrorCode insertFromTemplate (BSTR strTemplateName);
2791
2792
2793
2804
2805
2816
2817
2818
2819
2832 BSTR getDescription (BSTR strLanguage, EwErrorCode* errorCode);
2833
2834
2849 EwErrorCode setDescription (BSTR strLanguage, BSTR strDescription);
2850
2851};
2852
2857[
2858 object,
2859 uuid(9A02A344-94BB-4F95-A133-45E09A42D6C5),
2860 dual,
2861 oleautomation,
2862 nonextensible,
2863 helpstring("IEwProjectManagerX Interface"),
2864 pointer_default(unique)
2865]
2866interface IEwProjectManagerX : IDispatch {
2867
2871 LONG getCount ();
2872
2873
2883 VARIANT getEwProjectArray (EwErrorCode* errorCode);
2884
2885
2895
2896
2905 IEwProjectX findEwProjectByName (BSTR strName, EwErrorCode* errorCode);
2906
2907
2919 EwErrorCode archive (VARIANT vProjectIDArray, BSTR strFilePath, VARIANT_BOOL bWithDependencies);
2920
2921
2932 VARIANT unarchive (BSTR strFilePath, VARIANT_BOOL bWithDependencies, EwErrorCode* errorCode);
2933
2934
2946 IEwProjectX findProjectFromFilePath (BSTR strFilePath, EwErrorCode* errorCode);
2947
2948
2959
2960
2970 EwErrorCode setGenerateAutomatedDrawings (VARIANT_BOOL bGenerateAutomatedDrawings);
2971
2972
2983
2984}
EwMultilingualTextFont
Enum used to get the index of the text font used by one of the three languages defined in the project...
Definition: EnumDefinition.idl:449
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:24
EwProjectConfigValue
Values for project configuration.
Definition: EwEnumeration.idl:134
EwSymbolCrossRefType
All cross reference type of symbol.
Definition: EwEnumeration.idl:479
EwCircuitPassingType
All passing types of symbol circuit.
Definition: EwEnumeration.idl:717
EwProjectType
Enumeration of type of project.
Definition: EwEnumeration.idl:1357
EwProjectFolderPathValue
Used with getFolderPath of EwProjectX object.
Definition: EwEnumeration.idl:56
EwSymbolType
All types of symbol.
Definition: EwEnumeration.idl:450
EwAlignmentType
Enumeration of type of Alignment.
Definition: EwEnumeration.idl:1385
EwFileType
File types used in a project.
Definition: EwEnumeration.idl:407
EwPointOrientation
Flow direction of symbol connexion point type.
Definition: EwEnumeration.idl:705
EwOpenProjectMode
All possible open modes for a project.
Definition: EwEnumeration.idl:495
EwMeasurementType
All measurement type.
Definition: EwEnumeration.idl:300
This interface is the first entry point for the Object.
Definition: EwObjectBaseObjects.idl:26
This interface is a generic interface for standard object methods.
Definition: EwObjectBaseObjects.idl:97
This interface is a generic interface to define the coordinate of a 2D point.
Definition: EwUtilDefinition.idl:27
Use this interface to manage the Origin Destination automatic insertion.
Definition: EwProjectProcessObjects.idl:625
Use this interface to manage IEwProjectBookX objects.
Definition: EwProjectObjects.idl:1726
IEwProjectBookX findEwProjectBookByID(LONG lEwProjectBookID, EwErrorCode *errorCode)
Get the EwProjectBook from the book ID, for associated project.
VARIANT getEwProjectBookArray(EwErrorCode *errorCode)
Return the array of IEwProjectBook of associated project.
IEwProjectBookX newEwProjectBook(EwErrorCode *errorCode)
Create a IEwProjectBookX object from the associated project.
INT_PTR getCount(EwErrorCode *errorCode)
Return the number of books of associated project.
Use this interface to manage book inside a project.
Definition: EwProjectObjects.idl:1475
EwErrorCode setLocationID(long lID)
Set the EwProjectLocationX ID associated to the book.
long getLocationID(EwErrorCode *errorCode)
Get the ID of EwProjectLocationX associated to the book.
long getFunctionID(EwErrorCode *errorCode)
Get the ID of EwProjectFunctionX associated to the book.
EwErrorCode setFunctionID(long lID)
Set the EwProjectFunctionX ID associated to the book.
Use this interface to manage cables of a project.
Definition: EwProjectCableObjects.idl:636
Use this interface to manage the components inside a project.
Definition: EwProjectComponentObjects.idl:899
Use this interface to manage configuration of the project.
Definition: EwProjectObjects.idl:1630
IEwProjectConfigurationX duplicate(EwErrorCode *errorCode)
Duplicate the current object.
EwMeasurementType getEwMeasurementType(EwErrorCode *errorCode)
BSTR getCurrentCodeLanguage(EwErrorCode *errorCode)
EwErrorCode setEwProjectConfigValue(EwProjectConfigValue eProjectConfigurationValues, VARIANT vValue)
IEwProjectMultilingualTextFontX getEwProjectMultilingualTextFont(EwMultilingualTextFont eMultilingualTextFont, EwErrorCode *errorCode)
Return the IEwProjectMultilingualTextFontX interface object from the specified language index of the ...
VARIANT getEwProjectConfigValue(EwProjectConfigValue eProjectConfigurationValues, EwErrorCode *errorCode)
Use this interface to manage the Excel Automation inside the project.
Definition: EwProjectExportObjects.idl:1421
Use this interface to manage export DWG files inside a project.
Definition: EwProjectExportObjects.idl:654
Use this interface to export file in PDF inside a project.
Definition: EwProjectExportObjects.idl:1533
Use this interface to manage the command "Export to PDM".
Definition: EwProjectExportObjects.idl:764
Use this interface to manage the export reports used inside the project.
Definition: EwProjectExportObjects.idl:1005
Use this interface to manage the file configuration.
Definition: EwProjectFileConfigurationObjects.idl:183
Use this interface to manage EwProjectFileManagerx objects.
Definition: EwProjectObjects.idl:1543
IEwProjectFileX newProjectFile(EwErrorCode *errorCode)
Create an IEwProjectFileX in the current project.
IEwProjectFileX findEwProjectFileByID(LONG lEwProjectFileID, EwErrorCode *errorCode)
Get the EwProjectFile from the file ID, for associated project.
INT_PTR getCount(EwErrorCode *errorCode)
Return the number of files of associated project.
IEwProjectFileX findEwProjectFileFromPath(BSTR strFilePath, EwErrorCode *errorCode)
Get the EwProjectFile from a file path.
VARIANT getEwProjectFileArray(EwErrorCode *errorCode)
Return the array of IEwProjectFile of associated project.
VARIANT getEwProjectFileArrayFromFileType(EwFileType eFileType, EwErrorCode *errorCode)
Return the array of IEwProjectFileX of given type for associated project.
Use this interface to manage file inside a project.
Definition: EwProjectObjects.idl:1109
VARIANT_BOOL isLockByMe(EwErrorCode *errorCode)
Return true if the project file is lock by me.
long getLocationID(EwErrorCode *errorCode)
Get the ID of EwProjectLocationX associated to the file.
EwFileType getFileType()
EwErrorCode setFileType(EwFileType eFileType)
Set the file type of the current project file.
VARIANT_BOOL canInsertSymbol(EwErrorCode *errorCode)
Check if the current file is compatible to insert a symbol.
long getFunctionID(EwErrorCode *errorCode)
Get the ID of EwProjectFunctionX associated to the file.
EwErrorCode setLocationID(long lID, VARIANT_BOOL bChangeInComponent)
Set the EwProjectLocationX by ID associated to the file.
LONG getPosition(EwErrorCode *errorCode)
Get the position of files inside a book/folder.
EwErrorCode open()
Open the project file.
BSTR getFilePath(EwErrorCode *errorCode)
Return the file path.
EwErrorCode setEwProjectBookID(LONG lID)
Set the Book ID of this file.
IEwProjectSymbolX newEwProjectSymbolFromSymbolType(EwSymbolType eEwSymbolType, EwErrorCode *errorCode)
Create a symbol according to this file and symbol type.
IEwProjectLocationX getEwProjectLocation(EwErrorCode *errorCode)
IEwProjectLocationX associated with the file.
LONG getEwProjectBookID(EwErrorCode *errorCode)
Get the ID of the book containing this file.
VARIANT_BOOL isOpen(EwErrorCode *errorCode)
Return true if the project file is open.
IEwProjectMultilingualTextX newEwProjectMultilingualText(EwErrorCode *errorCode)
Create a multilingual text associated with this file.
EwErrorCode setFunctionID(long lID, VARIANT_BOOL bChangeInComponent)
Set the EwProjectFunctionX ID associated to the file.
EwErrorCode lock()
Lock the file so no one connected to the collaborative server can edit or delete it.
EwErrorCode setEwProjectFolderID(LONG lID)
Set the folder ID as parent for this file.
EwErrorCode close()
Close the project file.
EwErrorCode setOriginalFilePath(BSTR strFilePath, VARIANT_BOOL bAsShortCut)
Specify the path of the file to add in the project.
VARIANT_BOOL isLockedByAnother(EwErrorCode *errorCode)
Return true if the project file is lock by another.
LONG getEwProjectFolderID(EwErrorCode *errorCode)
Get the ID of the folder containing this file.
BSTR getTargetFilePath(EwErrorCode *errorCode)
Return the path to a file not only a reference to a *.lnk.
EwErrorCode unlock()
Unlock the file.
Use this interface to manage IEwProjectFolderX objects.
Definition: EwProjectObjects.idl:1907
IEwProjectFolderX newEwProjectFolder(EwErrorCode *errorCode)
Create a IEwProjectFolderX object from the associated project.
VARIANT getEwProjectFolderArray(EwErrorCode *errorCode)
Return the array of IEwProjectFolder of associated project.
INT_PTR getCount(EwErrorCode *errorCode)
Return the number of Folders of associated project.
IEwProjectFolderX findEwProjectFolderByID(LONG lEwProjectFolderID, EwErrorCode *errorCode)
Get the EwProjectFolder from the Folder ID of associated project.
Use this interface to manage folder inside a project.
Definition: EwProjectObjects.idl:1783
EwErrorCode setEwProjectBookID(LONG lID)
Update the ID of the book containing this folder.
EwErrorCode setDefineFirstDrawingNumber(VARIANT_BOOL bDefineFirstDrawingNumber)
Set this value to true to have the number of the first drawing created in this folder initialized by ...
EwErrorCode setEwProjectFolderID(LONG lID)
Update the folder ID of the parent folder.
VARIANT_BOOL getDefineFirstDrawingNumber(EwErrorCode *errorCode)
Return true if the number of the first drawing created in the folder have to be the one defined in se...
LONG getEwProjectBookID(EwErrorCode *errorCode)
Get the ID of the book containing this folder.
LONG getFirstDrawingNumber(EwErrorCode *errorCode)
Get the number of the first drawing that will be created in this folder.
LONG getEwProjectFolderID(EwErrorCode *errorCode)
Get the ID of the folder containing this folder.
LONG getPosition(EwErrorCode *errorCode)
Get the position of the folder in the book.
EwErrorCode setFirstDrawingNumber(LONG lID)
Set the number of the first drawing that will be created in this folder.
Use this interface to manage IEwProjectFunctionX objects.
Definition: EwProjectFunctionObjects.idl:56
Use this interface to manage the generation of terminal strip drawing inside the project.
Definition: EwProjectExportObjects.idl:1343
Use this interface to manage the Harness objects inside a project.
Definition: EwProjectHarnessObjects.idl:129
Use this interface to manage IEwProjectInputOutputX objects.
Definition: EwProjectInputOutputObjects.idl:266
Use this interface to manage EwProjectLineX objects Since 2024 SP1.
Definition: EwProjectWireObjects.idl:2026
Use this interface to manage the location objects inside a project.
Definition: EwProjectLocationObjects.idl:63
Use this interface to manage the location inside a project.
Definition: EwProjectLocationObjects.idl:27
Use this interface to manage IEwProjectX objects.
Definition: EwProjectObjects.idl:2866
IEwProjectX findEwProjectByID(LONG lId, EwErrorCode *errorCode)
Look for a project from an ID.
EwErrorCode setGenerateAutomatedDrawings(VARIANT_BOOL bGenerateAutomatedDrawings)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
VARIANT_BOOL getGenerateAutomatedDrawings(EwErrorCode *errorCode)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
VARIANT getEwProjectArray(EwErrorCode *errorCode)
Return the array of IEwProjectX.
IEwProjectX newEwProject(EwErrorCode *errorCode)
Create an new IEwProjectX object that correspond at electrical project.
VARIANT unarchive(BSTR strFilePath, VARIANT_BOOL bWithDependencies, EwErrorCode *errorCode)
Unarchive projects.
IEwProjectX findEwProjectByName(BSTR strName, EwErrorCode *errorCode)
Look for the first project from a name.
IEwProjectX findProjectFromFilePath(BSTR strFilePath, EwErrorCode *errorCode)
Return an IEwProjectX from a file path.
EwErrorCode archive(VARIANT vProjectIDArray, BSTR strFilePath, VARIANT_BOOL bWithDependencies)
Archive projects.
Use this interface to manage IEwProjectManufacturerPartX objects.
Definition: EwProjectManufacturerPartObjects.idl:1012
Use this interface to manage a Multilingual Text Font inside a project.
Definition: EwProjectObjects.idl:708
EwErrorCode setProjectConfigurationFontUsed(VARIANT_BOOL bUseConfigurationFont)
Set true to use font project configuration, apply only on EwProjectMultilingualText.
VARIANT_BOOL isUnderline(EwErrorCode *errorCode)
Return true if the underline is used.
VARIANT_BOOL isBold(EwErrorCode *errorCode)
Return true if the bold is used.
EwErrorCode setUnderline(VARIANT_BOOL bUnderline)
Set true to use underline.
EwErrorCode setBold(VARIANT_BOOL bBold)
Set true to use bold.
EwErrorCode setItalic(VARIANT_BOOL bItalic)
Set true to use italic.
long getObjectID(EwErrorCode *errorCode)
Return the Object ID associated with the IEwProjectMultilingualTextFontX.
EwErrorCode setHeight(double dHeight)
Set the height of the Text Font.
double getHeight(EwErrorCode *errorCode)
Return the height of the Text Font.
BSTR getFont(EwErrorCode *errorCode)
Return the font of the Text Font.
VARIANT_BOOL isProjectConfigurationFontUsed(EwErrorCode *errorCode)
Return true if the font project configuration is used.
VARIANT_BOOL isItalic(EwErrorCode *errorCode)
Return true if the italic is used.
Use this interface to manage IEwProjectMultilingualTextManagerX objects.
Definition: EwProjectObjects.idl:1047
INT_PTR getCount(EwErrorCode *errorCode)
Return the number of Multilingual Text of associated project.
VARIANT getEwProjectMultilingualTextByFileIDArray(LONG lEwProjectMultilingualTextXFileID, EwErrorCode *errorCode)
Return the array of IEwProjectMultilingualTextX from one file, for associated project.
VARIANT getEwProjectMultilingualTextArray(EwErrorCode *errorCode)
Return the array of IEwProjectMultilingualTextX of associated project.
IEwProjectMultilingualTextX findEwProjectMultilingualTextByID(LONG lEwProjectMultilingualTextXID, EwErrorCode *errorCode)
Get the IEwProjectMultilingualTextX from the ID, for associated project.
Use this interface to manage a Multilingual Text inside a project.
Definition: EwProjectObjects.idl:861
EwErrorCode setText(BSTR strLanguageCode, BSTR strNewText)
Sets the Text from the specified language code of the Multilingual Text.
EwErrorCode setYPosition(double dYCoordinate)
Sets the Y coordinate of the Multilingual Text.
IEwProjectMultilingualTextFontX getEwProjectMultilingualTextFont(EwMultilingualTextFont eMultilingualTextFont, EwErrorCode *errorCode)
Return the IEwProjectMultilingualTextFontX interface object from the specified language index of the ...
EwErrorCode setRotationAngle(double dAngle)
Set the rotation angle in degrees of the Multilingual Text.
double getXPosition(EwErrorCode *errorCode)
Return the X coordinate of the Multilingual Text.
EwErrorCode setEwAlignmentType(EwAlignmentType eAlignmentType)
Set the Alignement type of the Multilingual Text.
EwErrorCode setDescription(BSTR strLanguage, BSTR strDescription)
Set the description associated to the object.
BSTR getText(BSTR strLanguageCode, EwErrorCode *errorCode)
Return the Text from the specified language code of the Multilingual Text.
EwAlignmentType getEwAlignmentType(EwErrorCode *errorCode)
Return the EwAlignmentType enum type of the Multilingual Text.
double getRotationAngle(EwErrorCode *errorCode)
Return the rotation angle in degrees of the Multilingual Text.
double getYPosition(EwErrorCode *errorCode)
Return the Y coordinate of the Multilingual Text.
EwErrorCode setXPosition(double dXCoordinate)
Sets the X coordinate of the Multilingual Text.
long getFileID(EwErrorCode *errorCode)
Return the file ID containing the Multilingual Text.
BSTR getDescription(BSTR strLanguage, EwErrorCode *errorCode)
Get the description associated to the object.
Use this interface to manage the renumber documents.
Definition: EwProjectProcessObjects.idl:808
Use this interface to manage the renumber marks.
Definition: EwProjectProcessObjects.idl:445
Use this interface to manage the numbering or renumbering of wires.
Definition: EwProjectProcessObjects.idl:330
Use this interface to manage the optimize wire order.
Definition: EwProjectProcessObjects.idl:969
Use this interface to manage a print configuration manager inside a project.
Definition: EwProjectExportObjects.idl:509
Use this interface to manage for reports used inside the project.
Definition: EwProjectExportObjects.idl:935
Use this interface to manage snapshot manager inside a project.
Definition: EwProjectProcessObjects.idl:223
Use this interface to manage symbol circuit inside a project.
Definition: EwProjectObjects.idl:162
long getCircuitNumber(EwErrorCode *errorCode)
Get the number of the associated circuit.
long getSymbolID(EwErrorCode *errorCode)
Get the ID of the associated symbol.
EwCircuitPassingType getEwCircuitPassingType(EwErrorCode *errorCode)
Get the EwCircuitPassingType enum type of the current circuit.
BSTR getKeyCode(EwErrorCode *errorCode)
Get the KeyCode of the current circuit type.
Use this interface to manage IEwProjectSymbolManagerX objects.
Definition: EwProjectObjects.idl:666
IEwProjectSymbolX getProjectSymbolByID(LONG lID, EwErrorCode *errorCode)
return a Project Symbol by ID.
VARIANT getProjectSymbolsFromFileID(LONG lID, EwErrorCode *errorCode)
Return the array of symbols of the associated project file identifier.
Use this interface to manage connection point (on a symbol) inside a project.
Definition: EwProjectObjects.idl:55
long getMeshID(EwErrorCode *errorCode)
Get the mesh ID.
long getTerminalNumber(EwErrorCode *errorCode)
Get the number of the associated terminal.
long getCircuitNumber(EwErrorCode *errorCode)
Get the number of the associated circuit.
long getPointNumber(EwErrorCode *errorCode)
Get the number associated to the current point.
double getPointAngle(EwErrorCode *errorCode)
Get the rotation angle in degrees of the connecion point.
EwPointOrientation getEwPointOrientation(EwErrorCode *errorCode)
Get the flow direction of the connection point.
IEwPointX getPointPosition(EwErrorCode *errorCode)
Get the point positions.
long getSymbolID(EwErrorCode *errorCode)
Get the ID of the associated symbol.
Use this interface to manage symbol inside a project.
Definition: EwProjectObjects.idl:222
double getXScale(EwErrorCode *errorCode)
Return the X scale of the symbol.
EwSymbolType getEwSymbolType(EwErrorCode *errorCode)
Return the type of the symbol.
double getYPosition(EwErrorCode *errorCode)
Return the Y coordinate of the symbol.
BSTR getAssociatedMacro(EwErrorCode *errorCode)
Return the associated macro of the symbol.
IEwProjectSymbolPointX getEwProjectSymbolPointAt(LONG lPointIndex, EwErrorCode *errorCode)
Get the connection point at the specified index.
double getXPosition(EwErrorCode *errorCode)
Return the X coordinate of the symbol.
EwErrorCode setWidth(double dWidth)
Sets the width (X size) of the symbol.
double getYScale(EwErrorCode *errorCode)
Return the Y scale of the symbol.
BSTR getColumnMark(EwErrorCode *errorCode)
Return the column mark of the symbol.
EwErrorCode setObjectID(long lID)
Sets the Object associated with the symbol.
LONG getEwProjectSymbolPointCount()
Get the number of connection point in the symbol.
EwErrorCode setRotationAngle(double dAngle)
Set the rotation angle in degrees of the symbol.
VARIANT getEwProjectSymbolPointArray(EwErrorCode *errorCode)
Get the array of all the symbol's connection points.
long getFileID(EwErrorCode *errorCode)
Return the file ID containing the symbol.
double getHeight(EwErrorCode *errorCode)
Return the height (Y size) of the symbol.
long getManufacturerPartID(EwErrorCode *errorCode)
Return the ManufacturerPart ID associated with the symbol.
EwErrorCode setHeight(double dHeight)
Sets the height (Y size) of the symbol.
BSTR getRowMark(EwErrorCode *errorCode)
Return the row mark of the symbol.
EwErrorCode setYScale(double dYScale)
Sets the Y scale of the symbol.
IEwProjectSymbolCircuitX getEwProjectSymbolCircuitAt(LONG lCircuitIndex, EwErrorCode *errorCode)
Get the circuit at the specified index.
long getFunctionID(EwErrorCode *errorCode)
Return the Function ID to the symbol.
EwErrorCode setXPosition(double dXCoordinate)
Sets the X coordinate of the symbol.
VARIANT getEwProjectSymbolCircuitArray(EwErrorCode *errorCode)
Get the array of all the symbol's circuits.
EwSymbolCrossRefType getEwSymbolCrossRefType(EwErrorCode *errorCode)
Return the cross reference type of the symbol.
EwErrorCode setXScale(double dXScale)
Sets the X scale of the symbol.
EwErrorCode setEwSymbolName(BSTR strSymbolName)
Sets the symbol name of the symbol.
long getLocationID(EwErrorCode *errorCode)
Return the Location ID of the symbol.
EwMeasurementType getEwMeasurementType(EwErrorCode *errorCode)
Return the measurement type of the symbol.
BSTR getEwSymbolName(EwErrorCode *errorCode)
Return the symbol name of the symbol in the library.
LONG getEwProjectSymbolCircuitCount()
Get the number of circuits in the symbol.
double getRotationAngle(EwErrorCode *errorCode)
Return the rotation angle in degrees of the symbol.
double getWidth(EwErrorCode *errorCode)
Return the width (X size) of the symbol.
EwErrorCode setEwMeasurementType(EwMeasurementType eMeasurementType)
Set the measurement type of the symbol.
EwErrorCode setYPosition(double dYCoordinate)
Sets the Y coordinate of the symbol.
long getObjectID(EwErrorCode *errorCode)
Generic interface for an object that belongs to a project.
Definition: EwObjectBaseObjects.idl:118
Use this interface to manage the update of project data from libraries.
Definition: EwProjectProcessObjects.idl:284
Use this interface to manage IEwProjectWireX objects.
Definition: EwProjectWireObjects.idl:676
Use this interface to manage IEwProjectWireStyleX objects.
Definition: EwProjectWireObjects.idl:1559
Use this interface to manage a project.
Definition: EwProjectObjects.idl:1964
IEwProjectMultilingualTextManagerX getEwProjectMultilingualTextManager(EwErrorCode *errorCode)
Get an IEwProjectMultilingualTextManagerX to manage Project Multilingual Text of this project.
EwErrorCode setExternID(BSTR strValue)
Set the externID field in the project.
IEwProjectWireManagerX getEwProjectWireManager(EwErrorCode *errorCode)
To get the project wire manager.
IEwProjectExportReportX newEwProjectExportReport(EwErrorCode *errorCode)
Create an IEwProjectExportReportX object from the associated project.
EwErrorCode setName(BSTR strValue)
Set the name of the project.
IEwProjectSnapshotManagerX getEwProjectSnapshotManager(EwErrorCode *errorCode)
Get an IEwProjectSnapshotManagerX to manage snapshots of this project.
IEwProjectFunctionManagerX getEwProjectFunctionManager(EwErrorCode *errorCode)
Get an IEwProjectFunctionManagerX to manage Functions of this project.
IEwProjectFileManagerX getEwProjectFileManager(EwErrorCode *errorCode)
Get an IEwProjectFileManagerX to manage files of this project.
IEwProjectReportManagerX getEwProjectReportManager(EwErrorCode *errorCode)
Get an IEwProjectReportManagerX to manage reports of this project.
BSTR getCreoFolderPath(EwErrorCode *errorCode)
IEwProjectOptimizeWireOrderX newEwProjectOptimizeWireOrder(EwErrorCode *errorCode)
Create an IEwProjectOptimizeWireOrderX to optimize the wire order of this project.
EwErrorCode setUserData(LONG nUserDataNumber, BSTR strValue)
Set user data of the object Project must be opened to be able to call this method.
EwErrorCode setCustomerAddress1(BSTR strValue)
Set the customer address 1 of the project.
IEwProjectFolderManagerX getEwProjectFolderManager(EwErrorCode *errorCode)
Get an IEwProjectFolderManagerX to manage Folders of this project.
BSTR getExternID(EwErrorCode *errorCode)
Get the externID of the project.
LONG getID()
EwErrorCode insert()
BSTR getDrawingOfficeAddress3(EwErrorCode *errorCode)
Get the drawing office address 3 of the project.
IEwProjectFileConfigurationManagerX getEwProjectFileConfigurationManager(EwErrorCode *errorCode)
Get an IEwProjectFileConfigurationManagerX to manage Project Report Configuration.
IEwProjectSymbolManagerX getEwProjectSymbolManager(EwErrorCode *errorCode)
Get an IEwProjectSymbolManagerX to manage ProjectSymbolManager of this project.
IEwProjectUpdateReplaceDataX getEwProjectUpdateData(EwErrorCode *errorCode)
Get an IEwProjectUpdateReplaceDataX to manage the update or replacedata of this project.
IEwProjectNumberWiresX newEwProjectNumberWires(EwErrorCode *errorCode)
Create an IEwProjectNumberWiresX to manage the numbering or the renumbering wires of this project.
EwErrorCode setDescription(BSTR strLanguage, BSTR strDescription)
Set the description associated to the object.
EwErrorCode setDrawingOfficeAddress1(BSTR strValue)
Set the drawing office address 1 of the project.
IEwProjectExportDWGFilesX newEwProjectExportDWGFiles(EwErrorCode *errorCode)
Create an IEwProjectExportDWGFilesX object from the associated project.
IEwProjectLocationManagerX getEwProjectLocationManager(EwErrorCode *errorCode)
Get an IEwProjectLocationManagerX to manage locations of this project.
EwErrorCode setTranslatedData(LONG nUserDataNumber, BSTR strLanguage, BSTR strValue)
Set the value of a translated text Project must be opened to be able to call this method.
BSTR getCustomerAddress1(EwErrorCode *errorCode)
Get the customer address 1 of the project.
IEwProjectNumberMarksX newEwProjectNumberMarks(EwErrorCode *errorCode)
Create an IEwProjectNumberMarksX to manage the renumbering marks of this project.
BSTR getPreviewFilePath(EwErrorCode *errorCode)
Get the path of the first file of the project for the preview.
IEwProjectInputOutputManagerX getEwProjectInputOutputManager(EwErrorCode *errorCode)
Get an IEwProjectInputOutputManagerX to manage ProjectInputOutput of this project.
BSTR getCustomerName(EwErrorCode *errorCode)
Get the name of the customer of the project.
BSTR getModifiedBy(EwErrorCode *eErrorCode)
Get the last user name that modified the current object.
IEwProjectPrintConfigManagerX getEwProjectPrintConfigManager(EwErrorCode *errorCode)
Get an IEwProjectPrintConfigManagerX to manage print config of this project.
BSTR getFolderPath(EwProjectFolderPathValue eProjectFolderPathValue, EwErrorCode *errorCode)
Return folder path associated to the current project.
IEwProjectCableManagerX getEwProjectCableManager(EwErrorCode *errorCode)
To get the cable manager.
BSTR getCustomerAddress2(EwErrorCode *errorCode)
Get the customer address 2 of the project.
IEwProjectComponentManagerX getEwProjectComponentManager(EwErrorCode *errorCode)
Get an IEwProjectComponentManagerX to manage components of this project.
EwProjectType getProjectType(EwErrorCode *errorCode)
Get an EwProjectType enum type, can be EwProjectType.kProject for a project or EwProjectType....
IEwProjectLineManagerX getEwProjectLineManager(EwErrorCode *errorCode)
Get an IEwProjectLineManagerX to manage ProjectLineManager of this project.
IEwProjectExportPDFX newEwProjectExportPDF(EwErrorCode *errorCode)
Create an IEwProjectExportPDFX object from the associated project.
IEwProjectExcelAutomationX newEwProjectExcelAutomation(EwErrorCode *errorCode)
Create an IEwProjectExcelAutomationX object from the associated project.
IEwProjectGenerateTSDrawingX newEwProjectGenerateTSDrawing(EwErrorCode *errorCode)
Create an IEwProjectGenerateTSDrawingX object to draw terminal strip in a project.
EwErrorCode setContractNumber(BSTR strValue)
Set the contract number of the project.
DATE getModificationDate(EwErrorCode *errorCode)
Get the modification date of the project.
EwErrorCode close()
close the project
IEwProjectNumberDocumentsX newEwProjectNumberDocumments(EwErrorCode *errorCode)
Create an IEwProjectNumberDocumentsX to manage the renumbering document marks of this project.
IEwProjectExportPDMX newEwProjectExportPDM(EwErrorCode *errorCode)
Create an IEwProjectExportPDMX object from the associated project.
EwErrorCode setDrawingOfficeAddress3(BSTR strValue)
Set the drawing office address 3 of the project.
IEwProjectWireStyleManagerX getEwProjectWireStyleManagerX(EwErrorCode *errorCode)
Get an IEwProjectWireStyleManagerX to manage project wire style.
BSTR getUserData(LONG nUserDataNumber, EwErrorCode *errorCode)
Get user data of the object Project must be opened to be able to call this method.
EwErrorCode setDrawingOfficeAddress2(BSTR strValue)
Set the drawing office address 2 of the project.
EwErrorCode setCustomerName(BSTR strValue)
Set the name of the customer of the project.
BSTR getDescription(BSTR strLanguage, EwErrorCode *errorCode)
Get the description associated to the object.
EwErrorCode setCustomerAddress3(BSTR strValue)
Set the customer address 3 of the project.
BSTR getDrawingOfficeAddress1(EwErrorCode *errorCode)
Get the drawing office address 1 of the project.
EwErrorCode setCustomerAddress2(BSTR strValue)
Set the customer address 2 of the project.
VARIANT getMacroVariables(EwErrorCode *errorCode)
Get an array of strings of the automation variables of the project, usually a macro.
BSTR getCreatedBy(EwErrorCode *eErrorCode)
Get the user name that created the current object.
IEwProjectAutomaticArrowsX newEwProjectAutomaticArrows(EwErrorCode *errorCode)
Create an IEwProjectAutomaticArrowsX to manage the Origin Destination automatic insertion.
EwErrorCode open(EwOpenProjectMode eOpenMode)
open the project
BSTR getDrawingOfficeAddress2(EwErrorCode *errorCode)
Get the drawing office address 2 of the project.
BSTR getTranslatedData(LONG nUserDataNumber, BSTR strLanguage, EwErrorCode *errorCode)
Get the value of a translated text.
IEwProjectConfigurationX getEwProjectConfiguration(EwErrorCode *errorCode)
To get the project configuration.
BSTR getContractNumber(EwErrorCode *errorCode)
Get the contract number of the project.
EwErrorCode setDrawingOfficeName(BSTR strValue)
Set the Drawing office name of the project.
BSTR getDrawingOfficeName(EwErrorCode *errorCode)
Get the drawing office name of the project.
BSTR getName(EwErrorCode *errorCode)
Get the name of the project.
EwErrorCode insertFromTemplate(BSTR strTemplateName)
BSTR getCustomerAddress3(EwErrorCode *errorCode)
Get the customer address 3 of the project.
IEwProjectManufacturerPartManagerX getEwProjectManufacturerPartManager(EwErrorCode *errorCode)
Get an IEwProjectManufacturerPartManagerX to manage Builds of Materials of this project.
EwErrorCode update()
IEwRoutingDataX getEwRoutingData(EwErrorCode *errorCode)
To get the routing data manager.
IEwProjectBookManagerX getEwProjectBookManager(EwErrorCode *errorCode)
Get an IEwProjectBookManagerX to manage Books of this project.
IEwProjectHarnessManagerX getEwProjectHarnessManager(EwErrorCode *errorCode)
Get an IEwProjectHarnessManagerX to manage Harness of this project.


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