Hide Table of Contents
SOLIDWORKS Electrical API 2025.0.0
Electrical API
EwProjectExportObjects.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";
9
10import "EwObjectBaseObjects.idl";
11
16[
17 object,
18 uuid(9AF0A2A1-FF19-47F8-9EC7-BFD20499CF6E),
19 dual,
20 oleautomation,
21 nonextensible,
22 helpstring("IEwProjectPrintConfigX Interface"),
23 pointer_default(unique)
24]
26{
27
37 BSTR getPrinterName (EwErrorCode* errorCode);
38
39
49 EwErrorCode setPrinterName (BSTR strPrinterName);
50
51
61 BSTR getPaperFormat (EwErrorCode* errorCode);
62
63
73 EwErrorCode setPaperFormat (BSTR strPaperFormat);
74
75
85 BSTR getPaperSource (EwErrorCode* errorCode);
86
87
97 EwErrorCode setPaperSource (BSTR strPaperSource);
98
99
112
113
126
127
136 VARIANT_BOOL getPrintWithSymmetry (EwErrorCode* errorCode);
137
138
147 EwErrorCode setPrintWithSymmetry (VARIANT_BOOL bPrintWithSymmetry);
148
149
158 VARIANT_BOOL getInversePrintOrder (EwErrorCode* errorCode);
159
160
169 EwErrorCode setInversePrintOrder (VARIANT_BOOL bInversePrintOrder);
170
171
181
182
192 EwErrorCode setPrintCopiesNumber (int nCopiesNumbery);
193
194
203 VARIANT_BOOL getPrintCollate (EwErrorCode* errorCode);
204
205
214 EwErrorCode setPrintCollate (VARIANT_BOOL bPrintCollate);
215
216
225 VARIANT_BOOL getPrintUsingStyleSheet (EwErrorCode* errorCode);
226
227
236 EwErrorCode setPrintUsingStyleSheet (VARIANT_BOOL bPrintUsingStyleSheet);
237
238
248
249
259 EwErrorCode setPrintStyleSheetName (BSTR strPrintStyleSheetName);
260
261
262
263
273
274
284 EwErrorCode setPrintPaperScaleUnit (double dPrintPaperScaleUnit);
285
286
296
297
307 EwErrorCode setPrintdrawingScaleUnit (double dPrintdrawingScaleUnit);
308
309
310
311
312
313
314
315
316
317
326 VARIANT_BOOL getPrintAllProjectFiles (EwErrorCode* errorCode);
327
328
337 EwErrorCode setPrintAllProjectFiles (VARIANT_BOOL bPrintAllProjectFiles);
338
339
340
351
352
353
366 EwErrorCode setPrintSelectionFiles (VARIANT vFolioArray);
367
368
380
381
392
393
403 EwErrorCode setPrintConfigName (BSTR strPrintConfigName);
404
405
416 VARIANT_BOOL getGenerateAutomatedDrawings (EwErrorCode* errorCode);
417
418
429 EwErrorCode setGenerateAutomatedDrawings (VARIANT_BOOL bGenerateAutomatedDrawings);
430
431
444
445
458
459
471
472
484
485
486
487
488
489
490
491
492
493
494};
495
500[
501 object,
502 uuid(151AECB0-06B4-4090-9229-B2F4F01FE360),
503 dual,
504 oleautomation,
505 nonextensible,
506 helpstring("IEwProjectPrintConfigManagerX Interface"),
507 pointer_default(unique)
508]
509interface IEwProjectPrintConfigManagerX : IDispatch{
510
518 LONG getCount (EwErrorCode* errorCode);
519
520
529
530
541
542
553
554
565
566
575
576
584 VARIANT getPrinterNamesArray (EwErrorCode* errorCode);
585
586
594 VARIANT getSheetStylesArray (EwErrorCode* errorCode);
595
596
604 VARIANT getScaleValuesArray (EwErrorCode* errorCode);
605
606
615 VARIANT getPrinterPaperFormatsArray (BSTR strPrinterName, EwErrorCode* errorCode);
616
617
626 VARIANT getPrinterPaperSourcesArray (BSTR strPrinterName, EwErrorCode* errorCode);
627
636
637
638};
639
640
645[
646 object,
647 uuid(910619A2-421C-4F95-A196-F8685C628BD9),
648 dual,
649 oleautomation,
650 nonextensible,
651 helpstring("IEwProjectExportDWGFilesX Interface"),
652 pointer_default(unique)
653]
654interface IEwProjectExportDWGFilesX : IDispatch{
655
665 EwErrorCode setExportDirectory (BSTR strExportDirectory);
666
667
668
669
680 EwErrorCode setStrFileNameFormula (BSTR strFileNameFormula);
681
682
696
697
698
711
712
723 VARIANT_BOOL getGenerateAutomatedDrawings (EwErrorCode* errorCode);
724
725
736 EwErrorCode setGenerateAutomatedDrawings (VARIANT_BOOL bGenerateAutomatedDrawings);
737
738
748
749};
750
751
756[
757 object,
758 uuid(415A3B4B-F774-41DD-8495-83BE794AB6A7),
759 dual,
760 nonextensible,
761 helpstring("IEwProjectExportPDMX Interface"),
762 pointer_default(unique)
763]
764interface IEwProjectExportPDMX : IDispatch{
765
774 EwErrorCode setPDMConfigFilePath (BSTR strPDMConfigFilePath);
775
776
785
786
795
796
805 EwErrorCode setOutputFolderPath (BSTR strOutputFolderPath);
806
807
816
817
818};
819
824[
825 object,
826 uuid(5C9D486B-EE01-4C6E-8585-68E392CA4A16),
827 dual,
828 nonextensible,
829 helpstring("IEwProjectReportX Interface"),
830 pointer_default(unique)
831]
833{
834
844
845
846
856 LONG getOrderNo (EwErrorCode* errorCode);
857
858
859
868 EwErrorCode setOrderNo (LONG lOrderNo);
869
870
871
880 BSTR getFilter (EwErrorCode* errorCode);
881
882
883
893 EwErrorCode setFilter (BSTR strFilter);
894
895
896
906
907
908
917 EwErrorCode setReportFileName (BSTR strReportFileName);
918
919
920};
921
926[
927 object,
928 uuid(9795C977-F5E4-4FA5-B527-A28E6D58C1BA),
929 dual,
930 nonextensible,
931 helpstring("IEwProjectReportManagerX Interface"),
932 pointer_default(unique)
933]
934interface IEwProjectReportManagerX : IDispatch
935{
936
943 LONG getCount (EwErrorCode* errorCode);
944
945
954
955
964 IEwProjectReportX at (int iIndex, EwErrorCode* errorCode);
965
966
967
977 IEwProjectReportX find (BSTR strFileName, BSTR strFilterName, EwErrorCode* errorCode);
978
979
990
991};
992
997[
998 object,
999 uuid(877D3846-16D9-4730-9FFB-1A396B873DE1),
1000 dual,
1001 nonextensible,
1002 pointer_default(unique)
1003]
1004interface IEwProjectExportReportX : IDispatch
1005{
1006
1014 VARIANT_BOOL getAddCreatedFileToProject (EwErrorCode* errorCode);
1015
1016
1024 EwErrorCode setAddCreatedFileToProject (VARIANT_BOOL bAddCreatedFileToProject);
1025
1026
1034 BSTR getTargetFolder (EwErrorCode* errorCode);
1035
1036
1045 EwErrorCode setTargetFolder (BSTR strFolderPath);
1046
1047
1056
1057
1067 EwErrorCode setBookOrFolderId (long lBookOrFolderId);
1068
1069
1077 VARIANT_BOOL getExportAllReports (EwErrorCode* errorCode);
1078
1079
1087 EwErrorCode setExportAllReports (VARIANT_BOOL bExportAllReports);
1088
1089
1097 VARIANT_BOOL getOpenFile (EwErrorCode* errorCode);
1098
1099
1107 EwErrorCode setOpenFile (VARIANT_BOOL bOpenFile);
1108
1109
1119
1120
1132 EwErrorCode setEwProjectReportIDArray (VARIANT vProjectReportIDArray);
1133
1134
1148
1149
1158 VARIANT_BOOL getIncludeColumnHeader (EwErrorCode* errorCode);
1159
1160
1169 EwErrorCode setIncludeColumnHeader (VARIANT_BOOL bIncludeColumnHeader);
1170
1171
1181
1182
1192
1193
1203
1204
1214
1215
1227
1228
1239
1240
1254
1255
1264 VARIANT_BOOL getOneSheetByBreak (EwErrorCode* errorCode);
1265
1266
1275 EwErrorCode setOneSheetByBreak (VARIANT_BOOL bOneSheetByBreak);
1276
1277
1291
1292
1303
1304
1317
1318
1327
1328};
1329
1330
1335[
1336 object,
1337 uuid(E070B6E8-63CC-4C26-B96D-A048122CC774),
1338 dual,
1339 nonextensible,
1340 pointer_default(unique)
1341]
1342interface IEwProjectGenerateTSDrawingX : IDispatch
1343{
1344
1355 long getDestinationBookOrFolderID (long lEwProjectComponentID, EwErrorCode* errorCode);
1356
1357
1370 EwErrorCode setDestinationBookOrFolderID (long lEwProjectComponentID, long lEwBookOrFolderID);
1371
1372
1381
1382
1392
1393
1403
1404
1405};
1406
1407
1412[
1413 object,
1414 uuid(3efe1ef7-fc16-45e1-817b-b13428fba5ba),
1415 dual,
1416 helpstring("Use this interface to manage the Excel Automation inside the project."),
1417 nonextensible,
1418 pointer_default(unique)
1419]
1420interface IEwProjectExcelAutomationX : IDispatch
1421{
1431 EwErrorCode setExcelFilePath (BSTR strExcelFilePath);
1432
1433
1443
1444
1454 EwErrorCode setGenerateLog (VARIANT_BOOL bGenerateLog);
1455
1456
1466 VARIANT_BOOL getGenerateLog (EwErrorCode* errorCode);
1467
1468
1479 EwErrorCode setLogFilePath (BSTR strLogFilePath);
1480
1481
1490 BSTR getLogFilePath (EwErrorCode* errorCode);
1491
1492
1493
1503 VARIANT getEwResumeRowXArray (EwErrorCode* errorCode);
1504
1505
1517
1518};
1519
1524[
1525 object,
1526 uuid(36ba15fb-8d9f-4a70-9d22-c7274b2ef60f),
1527 dual,
1528 helpstring("Use this interface to export in PDF the current project files."),
1529 nonextensible,
1530 pointer_default(unique)
1531]
1532interface IEwProjectExportPDFX : IDispatch
1533{
1545
1546
1558
1559
1569
1570
1580 EwErrorCode setExportToPDFFileName (BSTR strExportToPDFFilePath);
1581
1582
1593
1594
1604 EwErrorCode setExportToPDFBookmarkAndHyperlink (VARIANT_BOOL bExportToPDFBookmarkAndHyperlink);
1605
1606
1616 VARIANT_BOOL getExportOnePDFFileByBook (EwErrorCode* errorCode);
1617
1618
1628 EwErrorCode setExportOnePDFFileByBook (VARIANT_BOOL bExportOnePDFFileByBook);
1629
1630
1644
1645
1659
1660
1670 VARIANT_BOOL getPlotWithSymmetry (EwErrorCode* errorCode);
1671
1672
1682 EwErrorCode setPlotWithSymmetry (VARIANT_BOOL bPlotWithSymmetry);
1683
1684
1696
1697
1709
1710
1719 double getPaperScaleUnit (EwErrorCode* errorCode);
1720
1721
1731 EwErrorCode setPaperScaleUnit (double dPaperScaleUnit);
1732
1733
1743
1744
1754 EwErrorCode setDrawingScaleUnit (double dDrawingScaleUnit);
1755
1756
1766 VARIANT_BOOL getAllProjectFiles (EwErrorCode* errorCode);
1767
1768
1778 EwErrorCode setAllProjectFiles (VARIANT_BOOL bAllProjectFiles);
1779
1780
1790 VARIANT getSelectionFiles (EwErrorCode* errorCode);
1791
1792
1805 EwErrorCode setSelectionFiles (VARIANT aFolioArray);
1806
1807
1818
1819
1829 EwErrorCode setGenerateAutomatedDrawings (VARIANT_BOOL bGenerateAutomatedDrawings);
1830
1831
1841
1842
1854 VARIANT_BOOL getIncludeDataFile (EwErrorCode * errorCode);
1855
1856
1868 EwErrorCode setIncludeDataFile (VARIANT_BOOL bIncludeDataFile);
1869
1870
1882
1883
1894 EwErrorCode setUseTrueTypeFontAsGeometry (VARIANT_BOOL bExportPdfTTFAsGeometry);
1895
1896
1897
1908 VARIANT_BOOL getUseSHXFontAsGeometry (EwErrorCode* errorCode);
1909
1910
1921 EwErrorCode setUseSHXFontAsGeometry (VARIANT_BOOL bExportPdfSHXAsGeometry);
1922
1923
1935
1936
1949
1950
1960 VARIANT_BOOL getUsingStyleSheet (EwErrorCode* errorCode);
1961
1962
1972 EwErrorCode setUsingStyleSheet (VARIANT_BOOL bUsingStyleSheet);
1973
1974
1985
1986
1997 EwErrorCode setStyleSheetName (BSTR strStyleSheetName);
1998
1999
2011
2012
2022 EwErrorCode setUseCustomBitmapResolution (VARIANT_BOOL bCustomBitmapResolution);
2023
2024
2036
2037
2048 EwErrorCode setCustomBitmapResolution (long lBitmapResolution);
2049
2050
2061
2062
2063
2064
2065};
EwTextIdentifer
Text identifier options.
Definition: EnumDefinition.idl:216
EwTextSeparator
Text separator options.
Definition: EnumDefinition.idl:228
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:24
EwPDFPaperFormat
All standard PDF paper format types.
Definition: EwEnumeration.idl:1094
EwDwgFileExport
All possible export DWG file type for a project.
Definition: EwEnumeration.idl:508
EwTSDrawingOption
Define behavior when updating terminal strip drawings.
Definition: EwEnumeration.idl:809
EwProjectDataExportType
All data export configuration.
Definition: EwEnumeration.idl:518
EwStandardScaleType
All standard print drawing scale type.
Definition: EwEnumeration.idl:1046
EwFileExtension
All file types extension.
Definition: EwEnumeration.idl:575
EwPageOrientation
All Page orientation.
Definition: EwEnumeration.idl:534
EwPlotArea
All plot area type.
Definition: EwEnumeration.idl:1153
This interface is a generic interface for standard object methods.
Definition: EwObjectBaseObjects.idl:97
Use this interface to manage the Excel Automation inside the project.
Definition: EwProjectExportObjects.idl:1421
EwErrorCode doExcelAutomation()
Start the Excel Automation.
EwErrorCode setLogFilePath(BSTR strLogFilePath)
Specify the Log file path.
EwErrorCode setExcelFilePath(BSTR strExcelFilePath)
Specify the full path to the Excel file for automation.
BSTR getExcelFilePath(EwErrorCode *errorCode)
Return the full path to the Excel file for automation.
EwErrorCode setGenerateLog(VARIANT_BOOL bGenerateLog)
Specify if a log file is generated.
VARIANT getEwResumeRowXArray(EwErrorCode *errorCode)
Return an array of EwResumeRowX that contains all Log from the last excel automation launch.
BSTR getLogFilePath(EwErrorCode *errorCode)
Return The log file path for Excel automation.
VARIANT_BOOL getGenerateLog(EwErrorCode *errorCode)
Return True if a log is generated.
Use this interface to manage export DWG files inside a project.
Definition: EwProjectExportObjects.idl:654
EwErrorCode setExportDwgSelectionFiles(VARIANT aFolioArray)
Set the files to export with the files ID specify in the input array.
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...
EwErrorCode setExportDirectory(BSTR strExportDirectory)
Update the export directory path.
EwErrorCode setStrFileNameFormula(BSTR strFileNameFormula)
Update the formula for naming dwg file.
EwErrorCode exportDwg(EwDwgFileExport eExportType)
Export previously selected files.
BSTR getExportDirectory(EwErrorCode *errorCode)
Return the export directory path.
Use this interface to export file in PDF inside a project.
Definition: EwProjectExportObjects.idl:1533
BSTR getExportToPDFFileName(EwErrorCode *errorCode)
Get the export to PDF file path.
EwErrorCode setUseSHXFontAsGeometry(VARIANT_BOOL bExportPdfSHXAsGeometry)
Option used to export SHX text as geometry.
EwErrorCode setEwPageOrientation(EwPageOrientation ewPageOrientation)
Update the page orientation.
EwErrorCode setGenerateAutomatedDrawings(VARIANT_BOOL bGenerateAutomatedDrawings)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
EwStandardScaleType getStandardScaleType(EwErrorCode *errorCode)
Get the scale type EwStandardScaleType enumeration value for export PDF file.
EwErrorCode exportPDF()
Export PDF files inside this project.
EwErrorCode setPaperFormat(EwPDFPaperFormat ePDFPaperFormat)
Update the paper format with a new name.
EwErrorCode setEwPlotArea(EwPlotArea ePlotArea)
Set the plot area in print configuration.
VARIANT_BOOL getUsingStyleSheet(EwErrorCode *errorCode)
Return true to use style sheet.
VARIANT_BOOL getUseSHXFontAsGeometry(EwErrorCode *errorCode)
Return true to export SHX text as geometry.
double getPaperScaleUnit(EwErrorCode *errorCode)
Get the paper scale unit for the scale type, or a custom paper scale type.
EwErrorCode setUsingStyleSheet(VARIANT_BOOL bUsingStyleSheet)
Update with true to use style sheet.
EwPlotArea getEwPlotArea(EwErrorCode *errorCode)
Get the plot area.
long getCustomBitmapResolution(EwErrorCode *errorCode)
Get the bitmap resolution in the pdf exported.
EwErrorCode setUseTrueTypeFontAsGeometry(VARIANT_BOOL bExportPdfTTFAsGeometry)
Option used to export TTF text as geometry.
VARIANT_BOOL getExportToPDFBookmarkAndHyperlink(EwErrorCode *errorCode)
Return true to export PDF bookmark and hyperlink.
EwErrorCode setDrawingScaleUnit(double dDrawingScaleUnit)
Update the drawing scale unit for custom drawing scale type.
double getDrawingScaleUnit(EwErrorCode *errorCode)
Get the drawing scale unit for the the scale type, or a custom drawing scale type.
VARIANT_BOOL getAllProjectFiles(EwErrorCode *errorCode)
Return true to export all project files.
EwErrorCode setStyleSheetName(BSTR strStyleSheetName)
Update the style sheet name with a new name.
EwErrorCode setPlotWithSymmetry(VARIANT_BOOL bPlotWithSymmetry)
Update the export PDF file with symmetry.
VARIANT_BOOL getIncludeDataFile(EwErrorCode *errorCode)
Return true to include data files.
EwPageOrientation getEwPageOrientation(EwErrorCode *errorCode)
Return the page orientation to the PDF file export.
EwErrorCode setSelectionFiles(VARIANT aFolioArray)
Set the files to export with the files ID specify in the input array.
VARIANT_BOOL getUseTrueTypeFontAsGeometry(EwErrorCode *errorCode)
Return true to export TTF text as geometry.
EwErrorCode setStandardScaleType(EwStandardScaleType eEwStandardScaleType)
Update the Scale Type with an EwStandardScaleType enumeration value.
BSTR getStyleSheetName(EwErrorCode *errorCode)
Get the style sheet name of the export.
EwErrorCode setExportToPDFBookmarkAndHyperlink(VARIANT_BOOL bExportToPDFBookmarkAndHyperlink)
Update with true to export PDF bookmark and hyperlink.
EwErrorCode setExportOnePDFFileByBook(VARIANT_BOOL bExportOnePDFFileByBook)
Update with true to export one PDF file by book.
EwErrorCode setExportToPDFFileName(BSTR strExportToPDFFilePath)
Set the export to PDF file path.
EwErrorCode setAllProjectFiles(VARIANT_BOOL bAllProjectFiles)
Update with true to export all project files.
EwErrorCode setUseCustomBitmapResolution(VARIANT_BOOL bCustomBitmapResolution)
Set to true to use custom bitmap resolution in PDF to export.
EwErrorCode setCustomBitmapResolution(long lBitmapResolution)
Set the bitmap resolution in the pdf exported.
EwErrorCode setPaperScaleUnit(double dPaperScaleUnit)
Update the paper scale unit for custom paper scale type.
EwErrorCode initializeFromPrintProjectConfiguration()
Initialize the export PDF from the print project configuration "<PDF>".
VARIANT getSelectionFiles(EwErrorCode *errorCode)
Return the files to export in an array This parameter is used if "all project files" option is set to...
EwPDFPaperFormat getPaperFormat(EwErrorCode *errorCode)
Get the enum EwPDFPaperFormat paper format of the PDF export files.
EwErrorCode setIncludeDataFile(VARIANT_BOOL bIncludeDataFile)
Option used to include data files.
VARIANT_BOOL getPlotWithSymmetry(EwErrorCode *errorCode)
Return true to export PDF file with symmetry, false for standard export.
VARIANT_BOOL getUseCustomBitmapResolution(EwErrorCode *errorCode)
Indicate if custom bitmap resolution is use in PDF to export.
VARIANT_BOOL getExportOnePDFFileByBook(EwErrorCode *errorCode)
Return true to export one PDF file by book.
VARIANT_BOOL getGenerateAutomatedDrawings(EwErrorCode *errorCode)
Return the option to update all generated files like Terminal strips or Reports which have been added...
Use this interface to manage the command "Export to PDM".
Definition: EwProjectExportObjects.idl:764
EwErrorCode exportToPDM()
Run the command "Export to PDM" using the default configuration file or the one defined in setPDMConf...
EwErrorCode setOutputFolderPath(BSTR strOutputFolderPath)
Set the output folder path where all files will be exported.
EwErrorCode setPDMConfigFilePath(BSTR strPDMConfigFilePath)
Update the PDM config file.
BSTR getOutputFolderPath(EwErrorCode *errorCode)
Return the output folder path where all files will be exported.
BSTR getPDMConfigFilePath(EwErrorCode *errorCode)
Return the PDM config file name.
Use this interface to manage the export reports used inside the project.
Definition: EwProjectExportObjects.idl:1005
EwProjectDataExportType getEwProjectDataExportType(EwErrorCode *errorCode)
Return the type of report to export.
EwErrorCode doGenerateDrawings()
Generate project report drawings.
VARIANT getEwProjectReportIDArray(EwErrorCode *errorCode)
Return array of ID of EwProjectReport objects.
LONG getBookOrFolderId(EwErrorCode *errorCode)
Return the selected book id or folder id.
EwErrorCode setExportAllReports(VARIANT_BOOL bExportAllReports)
Set this flag to true to export all reports of the project.
EwErrorCode setBookOrFolderId(long lBookOrFolderId)
Set the id of the destination folder or book where the reports will be exported.
VARIANT_BOOL getExportAllReports(EwErrorCode *errorCode)
Indicate if all reports of the project must be exported.
BSTR getTargetFolder(EwErrorCode *errorCode)
Return the exported target folder path.
EwErrorCode doExcelExport()
Export reports in Excel type.
EwErrorCode setOneSheetByBreak(VARIANT_BOOL bOneSheetByBreak)
Set this flag to true to export one sheet by break.
VARIANT_BOOL getOneSheetByBreak(EwErrorCode *errorCode)
Indicate if the export will create one sheet by break.
EwErrorCode setIncludeColumnHeader(VARIANT_BOOL bIncludeColumnHeader)
Set this flag to true if you want column header exported on the first row.
VARIANT_BOOL getAddCreatedFileToProject(EwErrorCode *errorCode)
Indicates if exported files will be added to the project.
EwErrorCode setTargetFolder(BSTR strFolderPath)
Update the exported target folder path.
EwTextSeparator getEwTextSeparator(EwErrorCode *errorCode)
Return the text separator for text export ofreports.
EwFileExtension getEwFileExtension(EwErrorCode *errorCode)
Return the type of the report file extension.
EwErrorCode doXMLExport()
Export reports in XML type.
EwErrorCode setEwTextIdentifer(EwTextIdentifer eTextIdentifier)
Update the text identifier for text export of reports.
EwErrorCode setEwFileExtension(EwFileExtension eFileExtension)
Update the report type file extension.
EwErrorCode setEwProjectReportIDArray(VARIANT vProjectReportIDArray)
Set array of ID of EwProjectReport objects.
EwErrorCode doTxtExport()
Export reports in Txt type.
VARIANT_BOOL getIncludeColumnHeader(EwErrorCode *errorCode)
Indicate if column header is exported on the first row.
EwErrorCode setAddCreatedFileToProject(VARIANT_BOOL bAddCreatedFileToProject)
Set this value to true to add exported files to the project.
EwErrorCode setEwProjectDataExportType(EwProjectDataExportType eProjectDataExportType)
Update the type of report to export.
EwErrorCode setEwTextSeparator(EwTextSeparator eTextSeparator)
Update the text separator for text export of reports.
VARIANT_BOOL getOpenFile(EwErrorCode *errorCode)
Indicate if reports will be opened after the export.
EwTextIdentifer getEwTextIdentifer(EwErrorCode *errorCode)
Return the text identifier for text export of reports.
EwErrorCode setOpenFile(VARIANT_BOOL bOpenFile)
Set this flag to true if you want to open the reports after the export.
Use this interface to manage the generation of terminal strip drawing inside the project.
Definition: EwProjectExportObjects.idl:1343
EwTSDrawingOption getDrawingOption(EwErrorCode *errorCode)
Get the drawing option.
EwErrorCode setDestinationBookOrFolderID(long lEwProjectComponentID, long lEwBookOrFolderID)
Specify the destination book or folder when generating terminal strip drawings.
EwErrorCode setDrawingOption(EwTSDrawingOption eTSDrawingOption)
Define the behavior when a terminal strip is already drawn and destination folder has changed.
EwErrorCode generate()
Go through all the terminal strips of the project and generate terminal strip drawings if terminal st...
long getDestinationBookOrFolderID(long lEwProjectComponentID, EwErrorCode *errorCode)
Indicates the destination book associated to a component ID.
Use this interface to manage a print configuration manager inside a project.
Definition: EwProjectExportObjects.idl:509
IEwProjectPrintConfigX findProjectPrintConfigByName(BSTR strPrintConfigName, EwErrorCode *errorCode)
Get the print configuration from name, for associated project.
IEwProjectPrintConfigX duplicateEwProjectPrintConfig(LONG lID, EwErrorCode *errorCode)
Create an IEwProjectPrintConfigX object with an existant IEwProjectPrintConfigX object from the assoc...
VARIANT getPrinterPaperSourcesArray(BSTR strPrinterName, EwErrorCode *errorCode)
Return the array of string of paper sources.
IEwProjectPrintConfigX newEwProjectPrintConfig(EwErrorCode *errorCode)
Create an IEwProjectPrintConfigX object from the associated project.
VARIANT getPrinterNamesArray(EwErrorCode *errorCode)
Return the array of string of printers name.
VARIANT getProjectPrintConfigArray(EwErrorCode *errorCode)
Return the array of IEwProjectPrintConfigX of given type for associated project.
VARIANT getPrinterPaperFormatsArray(BSTR strPrinterName, EwErrorCode *errorCode)
Return the array of string of paper formats.
VARIANT getPdfExportPaperFormatsArray(EwErrorCode *errorCode)
Return the array of string of paper formats for the PDF export.
VARIANT getSheetStylesArray(EwErrorCode *errorCode)
Return an array of string of all available plot style tables.
VARIANT getScaleValuesArray(EwErrorCode *errorCode)
Return the array of string of scale values.
LONG getCount(EwErrorCode *errorCode)
Return the number of print configuration of associated project.
IEwProjectPrintConfigX findProjectPrintConfigByID(LONG lID, EwErrorCode *errorCode)
Get the print configuration from ID, for associated project.
Use this interface to manage a print configuration inside a project.
Definition: EwProjectExportObjects.idl:26
EwErrorCode setPrintWithSymmetry(VARIANT_BOOL bPrintWithSymmetry)
Update the print with symmetry.
VARIANT_BOOL getGenerateAutomatedDrawings(EwErrorCode *errorCode)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
EwErrorCode setPrintCopiesNumber(int nCopiesNumbery)
Update the number of copies to print.
double getPrintPaperScaleUnit(EwErrorCode *errorCode)
Get the paper scale unit for the scale type, or a custom paper scale type.
EwStandardScaleType getPrintStandardScaleType(EwErrorCode *errorCode)
Get the scale type EwStandardScaleType enumeration value of the config print.
EwErrorCode setGenerateAutomatedDrawings(VARIANT_BOOL bGenerateAutomatedDrawings)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
EwErrorCode setPrintPaperScaleUnit(double dPrintPaperScaleUnit)
Update the paper scale unit for custom paper scale type.
EwErrorCode setPrintConfigName(BSTR strPrintConfigName)
Update the config name with a new unique name.
EwErrorCode print()
Print project.
VARIANT_BOOL getPrintUsingStyleSheet(EwErrorCode *errorCode)
Return true to print using style sheet.
VARIANT_BOOL getPrintWithSymmetry(EwErrorCode *errorCode)
Return true to print with symmetry, false for standard print.
BSTR getPrintStyleSheetName(EwErrorCode *errorCode)
Get the style sheet name of the config print.
EwErrorCode setPrintSelectionFiles(VARIANT vFolioArray)
Set the files to print with the files ID specify in the input array.
double getPrintDrawingScaleUnit(EwErrorCode *errorCode)
Get the drawing scale unit for the the scale type, or a custom drawing scale type.
VARIANT_BOOL getPrintAllProjectFiles(EwErrorCode *errorCode)
Return true to print all project files.
EwPageOrientation getEwPageOrientation(EwErrorCode *errorCode)
Return the page orientation of the config print.
BSTR getPrintConfigName(EwErrorCode *errorCode)
Get the config name of the config print.
VARIANT getPrintSelectionFiles(EwErrorCode *errorCode)
Return the files to print in an array This parameter is used if "all project files" option is set to ...
EwErrorCode setInversePrintOrder(VARIANT_BOOL bInversePrintOrder)
Update the inverse print order.
EwErrorCode setPrintStyleSheetName(BSTR strPrintStyleSheetName)
Update the style sheet name with a new name.
EwErrorCode setPrinterName(BSTR strPrinterName)
Update the printer name with a new name.
EwErrorCode setPrintAllProjectFiles(VARIANT_BOOL bPrintAllProjectFiles)
Update with true to print all project files.
EwErrorCode setEwPageOrientation(EwPageOrientation ePageOrientation)
Update the page orientation.
BSTR getPaperFormat(EwErrorCode *errorCode)
Get the paper format of the config print.
EwErrorCode setPrintCollate(VARIANT_BOOL bPrintCollate)
Update with true to print collate, or with false for standard print or numbers of copies is 1.
int getPrintCopiesNumber(EwErrorCode *errorCode)
Return the number of copies to print.
EwPlotArea getEwPlotArea(EwErrorCode *errorCode)
Get the plot area in print configuration.
VARIANT_BOOL getInversePrintOrder(EwErrorCode *errorCode)
Return true to print from last page, false to print from first page.
BSTR getPrinterName(EwErrorCode *errorCode)
Get the printer name of the config print.
EwErrorCode setEwPlotArea(EwPlotArea ePlotArea)
Set the plot area in print configuration.
EwErrorCode setPrintStandardScaleType(EwStandardScaleType eStandardScaleType)
Update the Scale Type with an EwStandardScaleType enumeration value.
BSTR getPaperSource(EwErrorCode *errorCode)
Get the paper source of the config print.
EwErrorCode setPaperFormat(BSTR strPaperFormat)
Update the paper format with a new name.
VARIANT_BOOL getPrintCollate(EwErrorCode *errorCode)
Return true to print collate, false for standard print or numbers of copies is 1.
EwErrorCode setPaperSource(BSTR strPaperSource)
Update the paper source.
EwErrorCode setPrintUsingStyleSheet(VARIANT_BOOL bPrintUsingStyleSheet)
Update with true to print using style sheet.
EwErrorCode setPrintdrawingScaleUnit(double dPrintdrawingScaleUnit)
Update the drawing scale unit for custom drawing scale type.
Use this interface to manage for reports used inside the project.
Definition: EwProjectExportObjects.idl:935
IEwProjectReportX find(BSTR strFileName, BSTR strFilterName, EwErrorCode *errorCode)
Find a report from his file name and a filter name.
IEwProjectReportX at(int iIndex, EwErrorCode *errorCode)
Return an IEwProjectReportX object from the associated project.
IEwProjectReportX findProjectPrintReportByID(LONG lID, EwErrorCode *errorCode)
Find a report from his ID.
LONG getCount(EwErrorCode *errorCode)
Return the number of reports of associated project.
IEwProjectReportX newEwProjectReport(EwErrorCode *errorCode)
Create an IEwProjectReportX object from the associated project.
Use this interface to manage the report used inside the project.
Definition: EwProjectExportObjects.idl:833
BSTR getFilter(EwErrorCode *errorCode)
Return the filter name of the report used inside the project.
EwErrorCode setFilter(BSTR strFilter)
Update the filter name of the report used inside the project.
EwErrorCode setReportFileName(BSTR strReportFileName)
Update the ReportFileName name of the report used inside the project.
EwProjectDataExportType getEwProjectDataExportType(EwErrorCode *errorCode)
Return the type of the report used inside the project.
EwErrorCode setOrderNo(LONG lOrderNo)
Update the Order No of thereport used inside the project.
BSTR getReportFileName(EwErrorCode *errorCode)
Return the Report FileName of the report used inside the project.
LONG getOrderNo(EwErrorCode *errorCode)
Return the Order No of the report used inside the 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/EwProjectExportObjects.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.