Hide Table of Contents
SOLIDWORKS Electrical API  2022.0.0
Electrical API
EwUtilDefinition.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 "EnumDefinition.idl";
11 
16 [
17  object,
18 
19  uuid(ADD58046-4A7F-49F5-B6B9-09C6861439B9),
20  dual,
21  oleautomation,
22  nonextensible,
23  helpstring("IEwPointX Interface"),
24  pointer_default(unique)
25 ]
26 interface IEwPointX : IDispatch
27 {
35  EwErrorCode setXCoordinate (double dXCoordinate);
36 
37 
42  double getXCoordinate ();
43 
44 
52  EwErrorCode setYCoordinate (double dYCoordinate);
53 
54 
59  double getYCoordinate ();
60 
61 
62 };
63 
68 [
69  object,
70  uuid(36dc5675-dcc2-4af2-8076-4b20ff5f9c11),
71  dual,
72  oleautomation,
73  nonextensible,
74  helpstring("IEwSaveDWGX Interface since 2022"),
75  pointer_default(unique)
76 ]
77 interface IEwSaveDWGImageX : IDispatch
78 {
92 
93 
107 
108 
116  EwErrorCode setOverwriteDestination (VARIANT_BOOL bOverrideIfExist);
117 
118 
126  VARIANT_BOOL getOverwriteDestination (EwErrorCode* errorCode);
127 
128 
138 
139 
148 
149 
158  EwErrorCode setDWGFilePath (BSTR strFilePath);
159 
160 
168  BSTR getDWGFilePath (EwErrorCode* errorCode);
169 
170 
178  EwErrorCode setWidth (long lWidth);
179 
180 
188  long getWidth (EwErrorCode* errorCode);
189 
190 
198  EwErrorCode setHeight (long lHeight);
199 
200 
208  long getHeight (EwErrorCode* errorCode);
209 
210 
222 
223 }
BSTR getDestinationFilePath(EwErrorCode *errorCode)
Get export destination file.
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
This interface for export DWG to image.
Definition: EwUtilDefinition.idl:78
EwErrorCode setDWGFilePath(BSTR strFilePath)
Set DWG file path to export.
VARIANT_BOOL getOverwriteDestination(EwErrorCode *errorCode)
Get overwrite value true if overwrite.
double getXCoordinate()
Return the X coordinate.
EwErrorCode setYCoordinate(double dYCoordinate)
Set the Y coordinate.
EwErrorCode setWidth(long lWidth)
Set width (in pixel) of picture.
This interface is a generic interface to define the coordinate of a 2D point.
Definition: EwUtilDefinition.idl:27
EwErrorCode setDestinationFilePath(BSTR strFilePath)
Set destination file to export DWG in picture.
EwErrorCode setSaveImageType(EwSaveImageType ewSaveImageType)
Set save type (JPEG, PNG, BMP or GIF).
long getHeight(EwErrorCode *errorCode)
Get height (in pixel) of picture.
EwSaveImageType getSaveImageType(EwErrorCode *errorCode)
Return save type (JPEG, PNG, BMP or GIF).
EwErrorCode setHeight(long lHeight)
Set height (in pixel) of picture.
BSTR getDWGFilePath(EwErrorCode *errorCode)
Get file path DWG to export.
long getWidth(EwErrorCode *errorCode)
Get Width (in pixel) of picture.
EwErrorCode save()
Save DWG in picture.
EwErrorCode setXCoordinate(double dXCoordinate)
Set the X coordinate.
EwSaveImageType
Picture save type.
Definition: EwEnumeration.idl:1112
EwErrorCode setOverwriteDestination(VARIANT_BOOL bOverrideIfExist)
Set as true if you can overwrite existing file.
double getYCoordinate()
Return the Y coordinate.


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