Hide Table of Contents
SOLIDWORKS Electrical API  2022.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 
7 import "oaidl.idl";
8 import "ocidl.idl";
9 
10 import "EwObjectBase.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 
272  double getPrintPaperScaleUnit (EwErrorCode* errorCode);
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 
350  VARIANT getPrintSelectionFiles (EwErrorCode* errorCode);
351 
352 
353 
366  EwErrorCode setPrintSelectionFiles (VARIANT vFolioArray);
367 
368 
380 
381 
391  BSTR getPrintConfigName (EwErrorCode* errorCode);
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 
470  EwPlotArea getEwPlotArea (EwErrorCode* errorCode);
471 
472 
483  EwErrorCode setEwPlotArea (EwPlotArea ePlotArea);
484 
485 };
486 
487 
492 [
493  object,
494  uuid(151AECB0-06B4-4090-9229-B2F4F01FE360),
495  dual,
496  oleautomation,
497  nonextensible,
498  helpstring("IEwProjectPrintConfigManagerX Interface"),
499  pointer_default(unique)
500 ]
501 interface IEwProjectPrintConfigManagerX : IDispatch{
502 
510  LONG getCount (EwErrorCode* errorCode);
511 
512 
521 
522 
533 
534 
545 
546 
556  IEwProjectPrintConfigX findProjectPrintConfigByName (BSTR strPrintConfigName, EwErrorCode* errorCode);
557 
558 
567 
568 
576  VARIANT getPrinterNamesArray (EwErrorCode* errorCode);
577 
578 
586  VARIANT getSheetStylesArray (EwErrorCode* errorCode);
587 
588 
596  VARIANT getScaleValuesArray (EwErrorCode* errorCode);
597 
598 
607  VARIANT getPrinterPaperFormatsArray (BSTR strPrinterName, EwErrorCode* errorCode);
608 
609 
618  VARIANT getPrinterPaperSourcesArray (BSTR strPrinterName, EwErrorCode* errorCode);
619 
628 
629 
630 };
631 
632 
637 [
638  object,
639  uuid(910619A2-421C-4F95-A196-F8685C628BD9),
640  dual,
641  oleautomation,
642  nonextensible,
643  helpstring("IEwProjectExportDWGFilesX Interface"),
644  pointer_default(unique)
645 ]
646 interface IEwProjectExportDWGFilesX : IDispatch{
647 
657  EwErrorCode setExportDirectory (BSTR strExportDirectory);
658 
659 
660 
661 
672  EwErrorCode setStrFileNameFormula (BSTR strFileNameFormula);
673 
674 
688 
689 
690 
703 
704 
715  VARIANT_BOOL getGenerateAutomatedDrawings (EwErrorCode* errorCode);
716 
717 
728  EwErrorCode setGenerateAutomatedDrawings (VARIANT_BOOL bGenerateAutomatedDrawings);
729 
730 
739  BSTR getExportDirectory (EwErrorCode* errorCode);
740 
741 };
742 
743 
748 [
749  object,
750  uuid(415A3B4B-F774-41DD-8495-83BE794AB6A7),
751  dual,
752  nonextensible,
753  helpstring("IEwProjectExportPDMX Interface"),
754  pointer_default(unique)
755 ]
756 interface IEwProjectExportPDMX : IDispatch{
757 
766  EwErrorCode setPDMConfigFilePath (BSTR strPDMConfigFilePath);
767 
768 
777 
778 
787 
788 
797  EwErrorCode setOutputFolderPath (BSTR strOutputFolderPath);
798 
799 
807  BSTR getOutputFolderPath (EwErrorCode* errorCode);
808 
809 
810 };
811 
816 [
817  object,
818  uuid(5C9D486B-EE01-4C6E-8585-68E392CA4A16),
819  dual,
820  nonextensible,
821  helpstring("IEwProjectReportX Interface"),
822  pointer_default(unique)
823 ]
825 {
826 
836 
837 
838 
848  LONG getOrderNo (EwErrorCode* errorCode);
849 
850 
851 
860  EwErrorCode setOrderNo (LONG lOrderNo);
861 
862 
863 
872  BSTR getFilter (EwErrorCode* errorCode);
873 
874 
875 
885  EwErrorCode setFilter (BSTR strFilter);
886 
887 
888 
897  BSTR getReportFileName (EwErrorCode* errorCode);
898 
899 
900 
909  EwErrorCode setReportFileName (BSTR strReportFileName);
910 
911 
912 };
913 
918 [
919  object,
920  uuid(9795C977-F5E4-4FA5-B527-A28E6D58C1BA),
921  dual,
922  nonextensible,
923  helpstring("IEwProjectReportManagerX Interface"),
924  pointer_default(unique)
925 ]
926 interface IEwProjectReportManagerX : IDispatch
927 {
928 
935  LONG getCount (EwErrorCode* errorCode);
936 
937 
946 
947 
956  IEwProjectReportX at (int iIndex, EwErrorCode* errorCode);
957 
958 
959 
969  IEwProjectReportX find (BSTR strFileName, BSTR strFilterName, EwErrorCode* errorCode);
970 
971 
982 
983 };
984 
989 [
990  object,
991  uuid(877D3846-16D9-4730-9FFB-1A396B873DE1),
992  dual,
993  nonextensible,
994  pointer_default(unique)
995 ]
996 interface IEwProjectExportReportX : IDispatch
997 {
998 
1006  VARIANT_BOOL getAddCreatedFileToProject (EwErrorCode* errorCode);
1007 
1008 
1016  EwErrorCode setAddCreatedFileToProject (VARIANT_BOOL bAddCreatedFileToProject);
1017 
1018 
1026  BSTR getTargetFolder (EwErrorCode* errorCode);
1027 
1028 
1037  EwErrorCode setTargetFolder (BSTR strFolderPath);
1038 
1039 
1047  LONG getBookOrFolderId (EwErrorCode* errorCode);
1048 
1049 
1059  EwErrorCode setBookOrFolderId (long lBookOrFolderId);
1060 
1061 
1069  VARIANT_BOOL getExportAllReports (EwErrorCode* errorCode);
1070 
1071 
1079  EwErrorCode setExportAllReports (VARIANT_BOOL bExportAllReports);
1080 
1081 
1089  VARIANT_BOOL getOpenFile (EwErrorCode* errorCode);
1090 
1091 
1099  EwErrorCode setOpenFile (VARIANT_BOOL bOpenFile);
1100 
1101 
1111 
1112 
1124  EwErrorCode setEwProjectReportIDArray (VARIANT vProjectReportIDArray);
1125 
1126 
1140 
1141 
1150  VARIANT_BOOL getIncludeColumnHeader (EwErrorCode* errorCode);
1151 
1152 
1161  EwErrorCode setIncludeColumnHeader (VARIANT_BOOL bIncludeColumnHeader);
1162 
1163 
1173 
1174 
1184 
1185 
1195 
1196 
1206 
1207 
1219 
1220 
1231 
1232 
1246 
1247 
1256  VARIANT_BOOL getOneSheetByBreak (EwErrorCode* errorCode);
1257 
1258 
1267  EwErrorCode setOneSheetByBreak (VARIANT_BOOL bOneSheetByBreak);
1268 
1269 
1283 
1284 
1295 
1296 
1309 
1310 
1311 };
1312 
1313 
1318 [
1319  object,
1320  uuid(E070B6E8-63CC-4C26-B96D-A048122CC774),
1321  dual,
1322  nonextensible,
1323  pointer_default(unique)
1324 ]
1325 interface IEwProjectGenerateTSDrawingX : IDispatch
1326 {
1327 
1338  long getDestinationBookOrFolderID (long lEwProjectComponentID, EwErrorCode* errorCode);
1339 
1340 
1353  EwErrorCode setDestinationBookOrFolderID (long lEwProjectComponentID, long lEwBookOrFolderID);
1354 
1355 
1364 
1365 
1375 
1376 
1386 
1387 
1388 };
1389 
1390 
1395 [
1396  object,
1397  uuid(3efe1ef7-fc16-45e1-817b-b13428fba5ba),
1398  dual,
1399  helpstring("Use this interface to manage the Excel Automation inside the project."),
1400  nonextensible,
1401  pointer_default(unique)
1402 ]
1403 interface IEwProjectExcelAutomationX : IDispatch
1404 {
1414  EwErrorCode setExcelFilePath (BSTR strExcelFilePath);
1415 
1416 
1425  BSTR getExcelFilePath (EwErrorCode* errorCode);
1426 
1427 
1437  EwErrorCode setGenerateLog (VARIANT_BOOL bGenerateLog);
1438 
1439 
1449  VARIANT_BOOL getGenerateLog (EwErrorCode* errorCode);
1450 
1451 
1462  EwErrorCode setLogFilePath (BSTR strLogFilePath);
1463 
1464 
1473  BSTR getLogFilePath (EwErrorCode* errorCode);
1474 
1475 
1476 
1486  VARIANT getEwResumeRowXArray (EwErrorCode* errorCode);
1487 
1488 
1500 
1501 };
1502 
1507 [
1508  object,
1509  uuid(36ba15fb-8d9f-4a70-9d22-c7274b2ef60f),
1510  dual,
1511  helpstring("Use this interface to export in PDF the current project files."),
1512  nonextensible,
1513  pointer_default(unique)
1514 ]
1515 interface IEwProjectExportPDFX : IDispatch
1516 {
1528 
1529 
1541 
1542 
1552 
1553 
1563  EwErrorCode setExportToPDFFileName (BSTR strExportToPDFFilePath);
1564 
1565 
1576 
1577 
1587  EwErrorCode setExportToPDFBookmarkAndHyperlink (VARIANT_BOOL bExportToPDFBookmarkAndHyperlink);
1588 
1589 
1599  VARIANT_BOOL getExportOnePDFFileByBook (EwErrorCode* errorCode);
1600 
1601 
1611  EwErrorCode setExportOnePDFFileByBook (VARIANT_BOOL bExportOnePDFFileByBook);
1612 
1613 
1627 
1628 
1642 
1643 
1653  VARIANT_BOOL getPlotWithSymmetry (EwErrorCode* errorCode);
1654 
1655 
1665  EwErrorCode setPlotWithSymmetry (VARIANT_BOOL bPlotWithSymmetry);
1666 
1667 
1679 
1680 
1692 
1693 
1702  double getPaperScaleUnit (EwErrorCode* errorCode);
1703 
1704 
1714  EwErrorCode setPaperScaleUnit (double dPaperScaleUnit);
1715 
1716 
1725  double getDrawingScaleUnit (EwErrorCode* errorCode);
1726 
1727 
1737  EwErrorCode setDrawingScaleUnit (double dDrawingScaleUnit);
1738 
1739 
1749  VARIANT_BOOL getAllProjectFiles (EwErrorCode* errorCode);
1750 
1751 
1761  EwErrorCode setAllProjectFiles (VARIANT_BOOL bAllProjectFiles);
1762 
1763 
1773  VARIANT getSelectionFiles (EwErrorCode* errorCode);
1774 
1775 
1788  EwErrorCode setSelectionFiles (VARIANT aFolioArray);
1789 
1790 
1800  VARIANT_BOOL getGenerateAutomatedDrawings (EwErrorCode* errorCode);
1801 
1802 
1812  EwErrorCode setGenerateAutomatedDrawings (VARIANT_BOOL bGenerateAutomatedDrawings);
1813 
1814 
1824 
1825 
1837  VARIANT_BOOL getIncludeDataFile (EwErrorCode * errorCode);
1838 
1839 
1851  EwErrorCode setIncludeDataFile (VARIANT_BOOL bIncludeDataFile);
1852 
1853 
1864  VARIANT_BOOL getUseTrueTypeFontAsGeometry (EwErrorCode* errorCode);
1865 
1866 
1877  EwErrorCode setUseTrueTypeFontAsGeometry (VARIANT_BOOL bExportPdfTTFAsGeometry);
1878 
1879 
1880 
1891  VARIANT_BOOL getUseSHXFontAsGeometry (EwErrorCode* errorCode);
1892 
1893 
1904  EwErrorCode setUseSHXFontAsGeometry (VARIANT_BOOL bExportPdfSHXAsGeometry);
1905 
1906 
1917  EwPlotArea getEwPlotArea (EwErrorCode* errorCode);
1918 
1919 
1931  EwErrorCode setEwPlotArea (EwPlotArea ePlotArea);
1932 
1933 
1934 
1935 };
Use this interface to manage the report used inside the project.
Definition: EwProjectExportObjects.idl:825
BSTR getLogFilePath(EwErrorCode *errorCode)
Return The log file path for Excel automation.
EwErrorCode setPrintStyleSheetName(BSTR strPrintStyleSheetName)
Update the style sheet name with a new name.
EwErrorCode setAllProjectFiles(VARIANT_BOOL bAllProjectFiles)
Update with true to export all project files.
VARIANT_BOOL getExportAllReports(EwErrorCode *errorCode)
Indicate if all reports of the project must be exported.
EwErrorCode setExportToPDFFileName(BSTR strExportToPDFFilePath)
Set the export to PDF file path.
EwErrorCode doExcelExport()
Export reports in Excel type.
EwErrorCode setInversePrintOrder(VARIANT_BOOL bInversePrintOrder)
Update the inverse print order.
EwTextIdentifer getEwTextIdentifer(EwErrorCode *errorCode)
Return the text identifier for text export of reports.
VARIANT_BOOL getInversePrintOrder(EwErrorCode *errorCode)
Return true to print from last page, false to print from first page.
VARIANT_BOOL getAllProjectFiles(EwErrorCode *errorCode)
Return true to export all project files.
EwErrorCode setPrintStandardScaleType(EwStandardScaleType eStandardScaleType)
Update the Scale Type with an EwStandardScaleType enumeration value.
IEwProjectPrintConfigX findProjectPrintConfigByID(LONG lId, EwErrorCode *errorCode)
Get the print configuration from ID, for associated project.
EwErrorCode setGenerateLog(VARIANT_BOOL bGenerateLog)
Specify if a log file is generated.
IEwProjectReportX findProjectPrintReportByID(LONG lID, EwErrorCode *errorCode)
Find a report from his ID.
BSTR getExcelFilePath(EwErrorCode *errorCode)
Return the full path to the Excel file for automation.
EwErrorCode print()
Print project.
EwErrorCode setPaperFormat(EwPDFPaperFormat ePDFPaperFormat)
Update the paper format with a new name.
EwErrorCode generate()
Go through all the terminal strips of the project and generate terminal strip drawings if terminal st...
EwPageOrientation getEwPageOrientation(EwErrorCode *errorCode)
Return the page orientation of the config print.
EwErrorCode setExportDirectory(BSTR strExportDirectory)
Update the export directory path.
EwErrorCode setPaperSource(BSTR strPaperSource)
Update the paper source.
VARIANT_BOOL getGenerateAutomatedDrawings(EwErrorCode *errorCode)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
long getDestinationBookOrFolderID(long lEwProjectComponentID, EwErrorCode *errorCode)
Indicates the destination book associated to a component ID.
EwErrorCode setPrinterName(BSTR strPrinterName)
Update the printer name with a new name.
EwStandardScaleType getPrintStandardScaleType(EwErrorCode *errorCode)
Get the scale type EwStandardScaleType enumeration value of the config print.
EwStandardScaleType
All standard print drawing scale type.
Definition: EwEnumeration.idl:977
Use this interface to manage the export reports used inside the project.
Definition: EwProjectExportObjects.idl:997
EwErrorCode exportDwg(EwDwgFileExport eExportType)
Export previously selected files.
BSTR getFilter(EwErrorCode *errorCode)
Return the filter name of the report used inside the project.
Use this interface to manage export DWG files inside a project.
Definition: EwProjectExportObjects.idl:646
LONG getCount(EwErrorCode *errorCode)
Return the number of reports of associated project.
VARIANT_BOOL getGenerateAutomatedDrawings(EwErrorCode *errorCode)
Return the option to update all generated files like Terminal strips or Reports which have been added...
BSTR getExportDirectory(EwErrorCode *errorCode)
Return the export directory path.
double getPaperScaleUnit(EwErrorCode *errorCode)
Get the paper scale unit for the scale type, or a custom paper scale type.
This interface is a generic interface for standard methods.
Definition: EwObjectBase.idl:82
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
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:927
EwErrorCode setSelectionFiles(VARIANT aFolioArray)
Set the files to export with the files ID specify in the input array.
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 a print configuration manager inside a project.
Definition: EwProjectExportObjects.idl:501
EwErrorCode setEwProjectDataExportType(EwProjectDataExportType eProjectDataExportType)
Update the type of report to export.
EwTextIdentifer
Text identifier options.
Definition: EnumDefinition.idl:178
VARIANT getPrinterNamesArray(EwErrorCode *errorCode)
Return the array of string of printers name.
LONG getBookOrFolderId(EwErrorCode *errorCode)
Return the selected book id or folder id.
VARIANT_BOOL getOpenFile(EwErrorCode *errorCode)
Indicate if reports will be opened after the export.
VARIANT_BOOL getPrintUsingStyleSheet(EwErrorCode *errorCode)
Return true to print using style sheet.
EwErrorCode setPaperFormat(BSTR strPaperFormat)
Update the paper format with a new name.
EwPDFPaperFormat
All standard PDF paper format types.
Definition: EwEnumeration.idl:1024
EwErrorCode setPlotWithSymmetry(VARIANT_BOOL bPlotWithSymmetry)
Update the export PDF file with symmetry.
BSTR getOutputFolderPath(EwErrorCode *errorCode)
Return the output folder path where all files will be exported.
LONG getOrderNo(EwErrorCode *errorCode)
Return the Order No of the report used inside the project.
VARIANT_BOOL getPlotWithSymmetry(EwErrorCode *errorCode)
Return true to export PDF file with symmetry, false for standard export.
EwErrorCode setPrintSelectionFiles(VARIANT vFolioArray)
Set the files to print with the files ID specify in the input array.
IEwProjectPrintConfigX duplicateEwProjectPrintConfig(LONG lID, EwErrorCode *errorCode)
Create an IEwProjectPrintConfigX object with an existant IEwProjectPrintConfigX object from the assoc...
EwErrorCode setBookOrFolderId(long lBookOrFolderId)
Set the id of the destination folder or book where the reports will be exported.
EwErrorCode setStrFileNameFormula(BSTR strFileNameFormula)
Update the formula for naming dwg file.
VARIANT_BOOL getPrintAllProjectFiles(EwErrorCode *errorCode)
Return true to print all project files.
VARIANT getSelectionFiles(EwErrorCode *errorCode)
Return the files to export in an array This parameter is used if "all project files" option is set to...
EwTSDrawingOption
Define behavior when updating terminal strip drawings.
Definition: EwEnumeration.idl:753
EwErrorCode setOutputFolderPath(BSTR strOutputFolderPath)
Set the output folder path where all files will be exported.
EwFileExtension
All file types extension.
Definition: EwEnumeration.idl:534
IEwProjectReportX newEwProjectReport(EwErrorCode *errorCode)
Create an IEwProjectReportX object from the associated project.
EwErrorCode doTxtExport()
Export reports in Txt type.
EwErrorCode setPDMConfigFilePath(BSTR strPDMConfigFilePath)
Update the PDM config file.
EwErrorCode setPrintConfigName(BSTR strPrintConfigName)
Update the config name with a new unique name.
EwErrorCode setPrintWithSymmetry(VARIANT_BOOL bPrintWithSymmetry)
Update the print with symmetry.
EwErrorCode setPrintAllProjectFiles(VARIANT_BOOL bPrintAllProjectFiles)
Update with true to print all project files.
EwErrorCode setExportOnePDFFileByBook(VARIANT_BOOL bExportOnePDFFileByBook)
Update with true to export one PDF file by book.
VARIANT_BOOL getPrintWithSymmetry(EwErrorCode *errorCode)
Return true to print with symmetry, false for standard print.
BSTR getPrinterName(EwErrorCode *errorCode)
Get the printer name of the config print.
EwTextSeparator
Text separator options.
Definition: EnumDefinition.idl:190
EwStandardScaleType getStandardScaleType(EwErrorCode *errorCode)
Get the scale type EwStandardScaleType enumeration value for export PDF file.
EwErrorCode setDrawingOption(EwTSDrawingOption eTSDrawingOption)
Define the behavior when a terminal strip is already drawn and destination folder has changed.
EwErrorCode setPrintCopiesNumber(int nCopiesNumbery)
Update the number of copies to print.
EwErrorCode exportPDF()
Export PDF file inside this project.
LONG getCount(EwErrorCode *errorCode)
Return the number of print configuration of associated project.
EwErrorCode setIncludeColumnHeader(VARIANT_BOOL bIncludeColumnHeader)
Set this flag to true if you want column header exported on the first row.
EwErrorCode setFilter(BSTR strFilter)
Update the filter name of the report used inside the project.
EwPageOrientation getEwPageOrientation(EwErrorCode *errorCode)
Return the page orientation to the PDF file export.
EwErrorCode setDestinationBookOrFolderID(long lEwProjectComponentID, long lEwBookOrFolderID)
Specify the destination book or folder when generating terminal strip drawings.
EwTextSeparator getEwTextSeparator(EwErrorCode *errorCode)
Return the text separator for text export ofreports.
EwErrorCode setEwPageOrientation(EwPageOrientation ePageOrientation)
Update the page orientation.
EwErrorCode setPrintCollate(VARIANT_BOOL bPrintCollate)
Update with true to print collate, or with false for standard print or numbers of copies is 1.
VARIANT getScaleValuesArray(EwErrorCode *errorCode)
Return the array of string of scale values.
IEwProjectPrintConfigX findProjectPrintConfigByName(BSTR strPrintConfigName, EwErrorCode *errorCode)
Get the print configuration from name, for associated project.
EwPlotArea getEwPlotArea(EwErrorCode *errorCode)
Get the plot area.
BSTR getReportFileName(EwErrorCode *errorCode)
Return the Report FileName of the report used inside the project.
EwErrorCode setGenerateAutomatedDrawings(VARIANT_BOOL bGenerateAutomatedDrawings)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
EwErrorCode setEwProjectReportIDArray(VARIANT vProjectReportIDArray)
Set array of ID of EwProjectReport objects.
VARIANT_BOOL getGenerateLog(EwErrorCode *errorCode)
Return True if a log is generated.
EwErrorCode setEwFileExtension(EwFileExtension eFileExtension)
Update the report type file extension.
EwErrorCode setTargetFolder(BSTR strFolderPath)
Update the exported target folder path.
double getDrawingScaleUnit(EwErrorCode *errorCode)
Get the drawing scale unit for the the scale type, or a custom drawing scale type.
VARIANT_BOOL getOneSheetByBreak(EwErrorCode *errorCode)
Indicate if the export will create one sheet by break.
EwProjectDataExportType getEwProjectDataExportType(EwErrorCode *errorCode)
Return the type of the report used inside the project.
VARIANT_BOOL getAddCreatedFileToProject(EwErrorCode *errorCode)
Indicates if exported files will be added to the project.
EwErrorCode doXMLExport()
Export reports in XML type.
VARIANT_BOOL getUseTrueTypeFontAsGeometry(EwErrorCode *errorCode)
Return true to export TTF text as geometry.
EwErrorCode setExportAllReports(VARIANT_BOOL bExportAllReports)
Set this flag to true to export all reports of the project.
VARIANT getPdfExportPaperFormatsArray(EwErrorCode *errorCode)
Return the array of string of paper formats for the PDF export.
Use this interface to manage the generation of terminal strip drawing inside the project.
Definition: EwProjectExportObjects.idl:1326
VARIANT getSheetStylesArray(EwErrorCode *errorCode)
Return an array of string of all available plot style tables.
EwErrorCode setUseTrueTypeFontAsGeometry(VARIANT_BOOL bExportPdfTTFAsGeometry)
Option used to export TTF text as geometry.
VARIANT getProjectPrintConfigArray(EwErrorCode *errorCode)
Return the array of IEwProjectPrintConfigX of given type for associated project.
EwTSDrawingOption getDrawingOption(EwErrorCode *errorCode)
Get the drawing option.
BSTR getPrintStyleSheetName(EwErrorCode *errorCode)
Get the style sheet name of the config print.
EwErrorCode setUseSHXFontAsGeometry(VARIANT_BOOL bExportPdfSHXAsGeometry)
Option used to export SHX text as geometry.
EwErrorCode doExcelAutomation()
Start the Excel Automation.
EwPlotArea getEwPlotArea(EwErrorCode *errorCode)
Get the plot area in print configuration.
double getPrintDrawingScaleUnit(EwErrorCode *errorCode)
Get the drawing scale unit for the the scale type, or a custom drawing scale type.
EwErrorCode setOneSheetByBreak(VARIANT_BOOL bOneSheetByBreak)
Set this flag to true to export one sheet by break.
int getPrintCopiesNumber(EwErrorCode *errorCode)
Return the number of copies to print.
IEwProjectReportX find(BSTR strFileName, BSTR strFilterName, EwErrorCode *errorCode)
Find a report from his file name and a filter name.
VARIANT getPrinterPaperSourcesArray(BSTR strPrinterName, EwErrorCode *errorCode)
Return the array of string of paper sources.
EwProjectDataExportType getEwProjectDataExportType(EwErrorCode *errorCode)
Return the type of report to export.
BSTR getPDMConfigFilePath(EwErrorCode *errorCode)
Return the PDM config file name.
BSTR getPaperSource(EwErrorCode *errorCode)
Get the paper source of the config print.
EwErrorCode setExportDwgSelectionFiles(VARIANT aFolioArray)
Set the files to export with the files ID specify in the input array.
Use this interface to manage a print configuration inside a project.
Definition: EwProjectExportObjects.idl:26
EwErrorCode setGenerateAutomatedDrawings(VARIANT_BOOL bGenerateAutomatedDrawings)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
EwErrorCode setEwPlotArea(EwPlotArea ePlotArea)
Set the plot area in print configuration.
VARIANT_BOOL getPrintCollate(EwErrorCode *errorCode)
Return true to print collate, false for standard print or numbers of copies is 1.
EwFileExtension getEwFileExtension(EwErrorCode *errorCode)
Return the type of the report file extension.
EwProjectDataExportType
All data export configuration.
Definition: EwEnumeration.idl:480
VARIANT_BOOL getGenerateAutomatedDrawings(EwErrorCode *errorCode)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
VARIANT getEwProjectReportIDArray(EwErrorCode *errorCode)
Return array of ID of EwProjectReport objects.
EwErrorCode setEwPlotArea(EwPlotArea ePlotArea)
Set the plot area in print configuration.
EwErrorCode setIncludeDataFile(VARIANT_BOOL bIncludeDataFile)
Option used to include data files.
IEwProjectReportX at(int iIndex, EwErrorCode *errorCode)
Return an IEwProjectReportX object from the associated project.
BSTR getPrintConfigName(EwErrorCode *errorCode)
Get the config name of the config print.
EwErrorCode setOrderNo(LONG lOrderNo)
Update the Order No of thereport used inside the project.
EwErrorCode setGenerateAutomatedDrawings(VARIANT_BOOL bGenerateAutomatedDrawings)
Option to update all generated files like Terminal strips or Reports which have been added to the pro...
EwDwgFileExport
All possible export DWG file type for a project.
Definition: EwEnumeration.idl:470
IEwProjectPrintConfigX newEwProjectPrintConfig(EwErrorCode *errorCode)
Create an IEwProjectPrintConfigX object from the associated project.
EwErrorCode setPrintPaperScaleUnit(double dPrintPaperScaleUnit)
Update the paper scale unit for custom paper scale type.
EwErrorCode setExportToPDFBookmarkAndHyperlink(VARIANT_BOOL bExportToPDFBookmarkAndHyperlink)
Update with true to export PDF bookmark and hyperlink.
VARIANT getPrintSelectionFiles(EwErrorCode *errorCode)
Return the files to print in an array This parameter is used if "all project files" option is set to ...
VARIANT_BOOL getExportToPDFBookmarkAndHyperlink(EwErrorCode *errorCode)
Return true to export PDF bookmark and hyperlink.
EwErrorCode setReportFileName(BSTR strReportFileName)
Update the ReportFileName name of the report used inside the project.
VARIANT getEwResumeRowXArray(EwErrorCode *errorCode)
Return an array of EwResumeRowX that contains all Log from the last excel automation launch.
BSTR getTargetFolder(EwErrorCode *errorCode)
Return the exported target folder path.
EwErrorCode setLogFilePath(BSTR strLogFilePath)
Specify the Log file path.
Use this interface to manage the Excel Automation inside the project.
Definition: EwProjectExportObjects.idl:1404
EwErrorCode exportToPDM()
Run the command "Export to PDM" using the default configuration file or the one defined in setPDMConf...
VARIANT_BOOL getIncludeDataFile(EwErrorCode *errorCode)
Return true to include data files.
BSTR getExportToPDFFileName(EwErrorCode *errorCode)
Get the export to PDF file path.
EwErrorCode setPrintUsingStyleSheet(VARIANT_BOOL bPrintUsingStyleSheet)
Update with true to print using style sheet.
VARIANT getPrinterPaperFormatsArray(BSTR strPrinterName, EwErrorCode *errorCode)
Return the array of string of paper formats.
EwPageOrientation
All Page orientation.
Definition: EwEnumeration.idl:496
VARIANT_BOOL getUseSHXFontAsGeometry(EwErrorCode *errorCode)
Return true to export SHX text as geometry.
BSTR getPaperFormat(EwErrorCode *errorCode)
Get the paper format of the config print.
EwErrorCode setPaperScaleUnit(double dPaperScaleUnit)
Update the paper scale unit for custom paper scale type.
EwErrorCode setEwTextIdentifer(EwTextIdentifer eTextIdentifier)
Update the text identifier for text export of reports.
EwErrorCode setEwTextSeparator(EwTextSeparator eTextSeparator)
Update the text separator for text export of reports.
double getPrintPaperScaleUnit(EwErrorCode *errorCode)
Get the paper scale unit for the scale type, or a custom paper scale type.
VARIANT_BOOL getIncludeColumnHeader(EwErrorCode *errorCode)
Indicate if column header is exported on the first row.
Use this interface to export file in PDF inside a project.
Definition: EwProjectExportObjects.idl:1516
EwErrorCode setStandardScaleType(EwStandardScaleType eEwStandardScaleType)
Update the Scale Type with an EwStandardScaleType enumeration value.
EwPDFPaperFormat getPaperFormat(EwErrorCode *errorCode)
Get the enum EwPDFPaperFormat paper format of the PDF export files.
Use this interface to manage the command "Export to PDM".
Definition: EwProjectExportObjects.idl:756
EwErrorCode setDrawingScaleUnit(double dDrawingScaleUnit)
Update the drawing scale unit for custom drawing scale type.
EwErrorCode setExcelFilePath(BSTR strExcelFilePath)
Specify the full path to the Excel file for automation.
EwErrorCode setAddCreatedFileToProject(VARIANT_BOOL bAddCreatedFileToProject)
Set this value to true to add exported files to the project.
VARIANT_BOOL getExportOnePDFFileByBook(EwErrorCode *errorCode)
Return true to export one PDF file by book.
EwErrorCode setEwPageOrientation(EwPageOrientation ewPageOrientation)
Update the page orientation.


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) 2022 SP05

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.