Welcome
Expand Getting StartedGetting Started
Expand SOLIDWORKS API HelpSOLIDWORKS API Help
Collapse SOLIDWORKS Electrical API HelpSOLIDWORKS Electrical API Help
Expand Getting StartedGetting Started
Expand Release NotesRelease Notes
Collapse ClassesClasses
Expand Class ListClass List
Class Index
Collapse Class HierarchyClass Hierarchy
_DIEwProjectXEvents
Collapse IDispatchIDispatch
IEwAddIn
IEwAPIX
IEwApplicationReactorX
IEwApplicationSettingsX
IEwApplicationX
IEwArchiveEnvironmentX
IEwCableCoreX
IEwCableReferenceManagerX
IEwCableReferenceX
IEwCommandContextX
IEwCommandManagerX
IEwCommandX
IEwDialogAlignPartsParametersSelectorX
IEwDialogLocationSelectorX
IEwDialogMacroSelectorX
IEwDialogManufacturerPartOrderingX
IEwDialogManufacturerPartSelectorX
IEwDialogProgressX
IEwDialogProjectManagerX
IEwDialogResumeX
IEwDialogSummaryX
IEwDialogTaskX
IEwDockingPaneManagerX
IEwDockingPaneX
IEwEnvironmentX
IEwInteropFactoryX
IEwLibraryManagerX
IEwLibraryX
IEwLockStringX
IEwManufacturerPartCircuitX
IEwManufacturerPartManagerX
IEwManufacturerPartTerminalX
IEwManufacturerPartX
Expand IEwObjectBaseXIEwObjectBaseX
IEwPointX
IEwProjectAutomaticArrowsX
IEwProjectBookManagerX
IEwProjectCableManagerX
IEwProjectComponentManagerX
IEwProjectComponentTerminalX
IEwProjectEntity3DManagerX
IEwProjectExcelAutomationX
IEwProjectExportDWGFilesX
IEwProjectExportPDFX
IEwProjectExportPDMX
IEwProjectExportReportX
IEwProjectFileManagerX
IEwProjectFolderManagerX
IEwProjectFunctionManagerX
IEwProjectGenerateTSDrawingX
IEwProjectHarnessManagerX
IEwProjectInputOutputManagerX
IEwProjectLocationManagerX
IEwProjectManagerX
IEwProjectManufacturerPartCircuitX
IEwProjectManufacturerPartManagerX
IEwProjectManufacturerPartTerminalX
IEwProjectManufacturerPartX
IEwProjectNumberDocumentsX
IEwProjectNumberMarksX
IEwProjectNumberWiresX
IEwProjectOptimizeWireOrderX
IEwProjectPrintConfigManagerX
IEwProjectReportManagerX
IEwProjectSnapshotManagerX
IEwProjectSnapshotX
IEwProjectSymbolManagerX
IEwProjectUpdateReplaceDataX
IEwProjectWireManagerX
IEwProjectX
IEwResumeRowX
IEwRibbonControlX
IEwRibbonGroupX
IEwRibbonTabX
IEwRibbonX
IEwRightsManagerX
IEwSymbolCircuitX
IEwSymbolFiltersX
IEwSymbolManagerX
IEwSymbolPointX
IEwSymbolX
IEwTitleBlockManagerX
IEwTitleBlockX
IEwXLSBookX
IEwXLSSheetX
Expand Class MembersClass Members
Expand SOLIDWORKS PDM Professional API HelpSOLIDWORKS PDM Professional API Help
Expand FeatureWorks API HelpFeatureWorks API Help
Expand SOLIDWORKS Costing API HelpSOLIDWORKS Costing API Help
Expand SOLIDWORKS Document Manager API HelpSOLIDWORKS Document Manager API Help
Expand SOLIDWORKS Routing API HelpSOLIDWORKS Routing API Help
Expand SOLIDWORKS Simulation API HelpSOLIDWORKS Simulation API Help
Expand SOLIDWORKS Sustainability API HelpSOLIDWORKS Sustainability API Help
Expand SOLIDWORKS Toolbox API HelpSOLIDWORKS Toolbox API Help
Expand SOLIDWORKS Utilities API HelpSOLIDWORKS Utilities API Help
Expand eDrawings API HelpeDrawings API Help
Expand DraftSight API HelpDraftSight API Help
Expand Lisp Programming BasicsLisp Programming Basics
Expand Lisp Functions OverviewLisp Functions Overview
Expand Lisp Functions ReferenceLisp Functions Reference
Expand Visual Lisp Compatible FunctionsVisual Lisp Compatible Functions
Hide Table of Contents
SOLIDWORKS Electrical API  2021.0.0
Electrical API
IEwProjectPrintConfigManagerX Interface Reference

Use this interface to manage a print configuration manager inside a project. More...

Inheritance diagram for IEwProjectPrintConfigManagerX:

Public Member Functions

LONG getCount (EwErrorCode *errorCode)
 Return the number of print configuration of associated project. More...
 
IEwProjectPrintConfigX newEwProjectPrintConfig (EwErrorCode *errorCode)
 Create an IEwProjectPrintConfigX object from the associated project. More...
 
IEwProjectPrintConfigX duplicateEwProjectPrintConfig (LONG lID, EwErrorCode *errorCode)
 Create an IEwProjectPrintConfigX object with an existant IEwProjectPrintConfigX object from the associated project. More...
 
IEwProjectPrintConfigX findProjectPrintConfigByID (LONG lId, EwErrorCode *errorCode)
 Get the print configuration from ID, for associated project. More...
 
IEwProjectPrintConfigX findProjectPrintConfigByName (BSTR strPrintConfigName, EwErrorCode *errorCode)
 Get the print configuration from name, for associated project. More...
 
VARIANT getProjectPrintConfigArray (EwErrorCode *errorCode)
 Return the array of IEwProjectPrintConfigX of given type for associated project. More...
 
VARIANT getPrinterNamesArray (EwErrorCode *errorCode)
 Return the array of string of printers name. More...
 
VARIANT getSheetStylesArray (EwErrorCode *errorCode)
 Return an array of string of all available plot style tables. More...
 
VARIANT getScaleValuesArray (EwErrorCode *errorCode)
 Return the array of string of scale values. More...
 
VARIANT getPrinterPaperFormatsArray (BSTR strPrinterName, EwErrorCode *errorCode)
 Return the array of string of paper formats. More...
 
VARIANT getPrinterPaperSourcesArray (BSTR strPrinterName, EwErrorCode *errorCode)
 Return the array of string of paper sources. More...
 
VARIANT getPdfExportPaperFormatsArray (EwErrorCode *errorCode)
 Return the array of string of paper formats for the PDF export. More...
 

Detailed Description

Use this interface to manage a print configuration manager inside a project.

Since
2018 SP0

Member Function Documentation

◆ duplicateEwProjectPrintConfig()

IEwProjectPrintConfigX IEwProjectPrintConfigManagerX::duplicateEwProjectPrintConfig ( LONG  lID,
EwErrorCode errorCode 
)

Create an IEwProjectPrintConfigX object with an existant IEwProjectPrintConfigX object from the associated project.

Parameters
[in]lIDprint config ID
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_BAD_INPUT The print config with given ID not exists in the project.
  • EW_UNDEFINED_ERROR if another error occurred
Returns
An IEwProjectPrintConfigX connected to the associated project

◆ findProjectPrintConfigByID()

IEwProjectPrintConfigX IEwProjectPrintConfigManagerX::findProjectPrintConfigByID ( LONG  lId,
EwErrorCode errorCode 
)

Get the print configuration from ID, for associated project.

Parameters
[in]lIDprint config ID
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_BAD_INPUTS The print config with given ID not exists in the active project
  • EW_UNDEFINED_ERROR if another error occurred
Returns
Valid EwProjectPrintConfig object if the id is founded. NULL otherwise

◆ findProjectPrintConfigByName()

IEwProjectPrintConfigX IEwProjectPrintConfigManagerX::findProjectPrintConfigByName ( BSTR  strPrintConfigName,
EwErrorCode errorCode 
)

Get the print configuration from name, for associated project.

Parameters
[in]strPrintConfigNameprint config name
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_BAD_INPUTS The print config with given ID not exists in the active project
  • EW_UNDEFINED_ERROR if another error occurred
Returns
Valid EwProjectPrintConfig object if the strPrintConfigName is founded. NULL otherwise

◆ getCount()

LONG IEwProjectPrintConfigManagerX::getCount ( EwErrorCode errorCode)

Return the number of print configuration of associated project.

Parameters
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_UNDEFINED_ERROR if another error occurred
Returns
the number of print configuration of associated project

◆ getPdfExportPaperFormatsArray()

VARIANT IEwProjectPrintConfigManagerX::getPdfExportPaperFormatsArray ( EwErrorCode errorCode)

Return the array of string of paper formats for the PDF export.

Parameters
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_UNDEFINED_ERROR if another error occurred
Returns
the array of string of paper format

◆ getPrinterNamesArray()

VARIANT IEwProjectPrintConfigManagerX::getPrinterNamesArray ( EwErrorCode errorCode)

Return the array of string of printers name.

Parameters
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_UNDEFINED_ERROR if another error occurred
Returns
the array of string

◆ getPrinterPaperFormatsArray()

VARIANT IEwProjectPrintConfigManagerX::getPrinterPaperFormatsArray ( BSTR  strPrinterName,
EwErrorCode errorCode 
)

Return the array of string of paper formats.

Parameters
[out]strPrinterNamethe printer name associate with the paper format
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_UNDEFINED_ERROR if another error occurred
Returns
the array of string of paper format

◆ getPrinterPaperSourcesArray()

VARIANT IEwProjectPrintConfigManagerX::getPrinterPaperSourcesArray ( BSTR  strPrinterName,
EwErrorCode errorCode 
)

Return the array of string of paper sources.

Parameters
[out]strPrinterNamethe printer name associate with the paper source
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_UNDEFINED_ERROR if another error occurred
Returns
the array of string of paper source

◆ getProjectPrintConfigArray()

VARIANT IEwProjectPrintConfigManagerX::getProjectPrintConfigArray ( EwErrorCode errorCode)

Return the array of IEwProjectPrintConfigX of given type for associated project.

Parameters
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_UNDEFINED_ERROR if another error occurred
Returns
the array of IEwProjectPrintConfigX of associated project

◆ getScaleValuesArray()

VARIANT IEwProjectPrintConfigManagerX::getScaleValuesArray ( EwErrorCode errorCode)

Return the array of string of scale values.

Parameters
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_UNDEFINED_ERROR if another error occurred
Returns
the array of string of scale values

◆ getSheetStylesArray()

VARIANT IEwProjectPrintConfigManagerX::getSheetStylesArray ( EwErrorCode errorCode)

Return an array of string of all available plot style tables.

Parameters
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_UNDEFINED_ERROR if another error occurred
Returns
the array of string

◆ newEwProjectPrintConfig()

IEwProjectPrintConfigX IEwProjectPrintConfigManagerX::newEwProjectPrintConfig ( EwErrorCode errorCode)

Create an IEwProjectPrintConfigX object from the associated project.

Parameters
[out]errorCodeEwErrorCode enum type, can be:
  • EW_NO_ERROR if no error detected
  • EW_UNDEFINED_ERROR if another error occurred
Returns
An IEwProjectPrintConfigX connected to the associated 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: IEwProjectPrintConfigManagerX Interface Reference
*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) 2021 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.