Hide Table of Contents
SOLIDWORKS Electrical API 2023.0.0
Electrical API
EwUtilDefinition.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";
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]
26interface 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
69 EwErrorCode setZCoordinate (double dZCoordinate);
70
71
76 double getZCoordinate ();
77
78
79};
80
85[
86 object,
87 uuid(36dc5675-dcc2-4af2-8076-4b20ff5f9c11),
88 dual,
89 oleautomation,
90 nonextensible,
91 helpstring("IEwSaveDWGX Interface since 2022"),
92 pointer_default(unique)
93]
94interface IEwSaveDWGImageX : IDispatch
95{
109
110
124
125
133 EwErrorCode setOverwriteDestination (VARIANT_BOOL bOverrideIfExist);
134
135
143 VARIANT_BOOL getOverwriteDestination (EwErrorCode* errorCode);
144
145
155
156
165
166
175 EwErrorCode setDWGFilePath (BSTR strFilePath);
176
177
185 BSTR getDWGFilePath (EwErrorCode* errorCode);
186
187
195 EwErrorCode setWidth (long lWidth);
196
197
205 long getWidth (EwErrorCode* errorCode);
206
207
215 EwErrorCode setHeight (long lHeight);
216
217
225 long getHeight (EwErrorCode* errorCode);
226
227
239
240
250 EwErrorCode setHideAttributes (VARIANT_BOOL bHideAttributes);
251
252
262 VARIANT_BOOL getHideAttributes (EwErrorCode* errorCode);
263
264
274 EwErrorCode setShowInsertionPoint (VARIANT_BOOL bShowInsertionPoint);
275
276
286 VARIANT_BOOL getShowInsertionPoint (EwErrorCode* errorCode);
287
288}
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
EwSaveImageType
Picture save type.
Definition: EwEnumeration.idl:1205
This interface is a generic interface to define the coordinate of a 2D point.
Definition: EwUtilDefinition.idl:27
double getZCoordinate()
Return the Z coordinate.
double getXCoordinate()
Return the X coordinate.
EwErrorCode setZCoordinate(double dZCoordinate)
Set the Z coordinate.
EwErrorCode setXCoordinate(double dXCoordinate)
Set the X coordinate.
EwErrorCode setYCoordinate(double dYCoordinate)
Set the Y coordinate.
double getYCoordinate()
Return the Y coordinate.
This interface for export DWG to image.
Definition: EwUtilDefinition.idl:95
EwErrorCode save()
Save DWG in picture.
long getHeight(EwErrorCode *errorCode)
Get height (in pixel) of picture.
EwErrorCode setShowInsertionPoint(VARIANT_BOOL bShowInsertionPoint)
Set value to show or hide insertion point of DWG in picture.
VARIANT_BOOL getShowInsertionPoint(EwErrorCode *errorCode)
Get value to show or hide insertion point of DWG in picture.
VARIANT_BOOL getHideAttributes(EwErrorCode *errorCode)
Get value to Show or Hide attribute of DWG in picture.
EwErrorCode setWidth(long lWidth)
Set width (in pixel) of picture.
EwErrorCode setHideAttributes(VARIANT_BOOL bHideAttributes)
Set value to Show or Hide attribute of DWG in picture.
EwErrorCode setSaveImageType(EwSaveImageType ewSaveImageType)
Set save type (JPEG, PNG, BMP or GIF).
VARIANT_BOOL getOverwriteDestination(EwErrorCode *errorCode)
Get overwrite value true if overwrite.
EwErrorCode setDWGFilePath(BSTR strFilePath)
Set DWG file path to export.
BSTR getDestinationFilePath(EwErrorCode *errorCode)
Get export destination file.
BSTR getDWGFilePath(EwErrorCode *errorCode)
Get file path DWG to export.
EwSaveImageType getSaveImageType(EwErrorCode *errorCode)
Return save type (JPEG, PNG, BMP or GIF).
EwErrorCode setHeight(long lHeight)
Set height (in pixel) of picture.
EwErrorCode setOverwriteDestination(VARIANT_BOOL bOverrideIfExist)
Set as true if you can overwrite existing file.
long getWidth(EwErrorCode *errorCode)
Get Width (in pixel) of picture.
EwErrorCode setDestinationFilePath(BSTR strFilePath)
Set destination file to export DWG in picture.


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) 2023 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.