Hide Table of Contents
SOLIDWORKS Electrical API  2020.0.5
Electrical API
EwLibraryObjects.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 
12 /************************************************************************/
13 /* */
14 /************************************************************************/
15 
21 [
22  object,
23  uuid(FB1C5D7A-5B0C-44F6-A8E7-271EBFC18627),
24  dual,
25  oleautomation,
26  nonextensible,
27  pointer_default(unique)
28 ]
29 interface IEwLibraryX : IDispatch{
30 
38  EwErrorCode setName (BSTR bstrName);
39 
40 
48  BSTR getName (EwErrorCode* errorCode);
49 
50 
51 
52 
62  EwErrorCode setDescription (BSTR bstrLgCode, BSTR bstrVal);
63 
64 
74  BSTR getDescription (BSTR bstrLgCode, EwErrorCode* errorCode);
75 
76 
84  DATE getModificationDate (EwErrorCode* errorCode);
85 
86 
94  DATE getCreationDate (EwErrorCode* errorCode);
95 
96 
105 
106 
114  EwErrorCode setVersionNumber (LONG lValueId);
115 
116 
124  LONG getVersionNumber (EwErrorCode* errorCode);
125 
126 
127  /*
128  * Insert a library inside the current environment
129  * \return EwErrorCode enum type, can be:
130  * \li EW_NO_ERROR if no error detected
131  * \li EW_UNDEFINED_ERROR if another error occurred
132  * \li EW_INSERTION_FAILED if the insertion failed
133  * \li EW_OBJECT_ALREADY_INSERTED if this object is already exists
134  */
136 
137 
138  /*
139  * remove a library from the current environment
140  * \return EwErrorCode enum type, can be:
141  * \li EW_NO_ERROR if no error detected
142  * \li EW_UNDEFINED_ERROR if another error occurred
143  */
144  EwErrorCode remove ();
145 
146 
147  /*
148  * update a library inside the current environment
149  * \return EwErrorCode enum type, can be:
150  * \li EW_NO_ERROR if no error detected
151  * \li EW_UNDEFINED_ERROR if another error occurred
152  */
154 
155 
164 
165 
174 
175 
179  long getId ();
180 
181 
190  BSTR getModifiedBy (EwErrorCode* eErrorCode);
191 
192 
193 };
194 
199 [
200  object,
201  uuid(7817B1F0-12A0-4539-AB67-DD43A2F290D3),
202  dual,
203  oleautomation,
204  nonextensible,
205  helpstring("IEwLibraryManagerX Interface"),
206  pointer_default(unique)
207 ]
208 interface IEwLibraryManagerX : IDispatch
209 {
215 
216 
220  LONG getCount ();
221 
222 
229  VARIANT getEwLibraryArray (EwErrorCode* errorCode);
230 
231 
241  IEwLibraryX findEwLibraryById (long lId,EwErrorCode* pErrorCode);
242 
243 }
BSTR getDescription(BSTR bstrLgCode, EwErrorCode *errorCode)
return a description of language parameter
Use this interface to manage an EwLibraryX object.
Definition: EwLibraryObjects.idl:29
DATE getCreationDate(EwErrorCode *errorCode)
return a creation date of current library
Use this interface to manage EwLibraryX objects.
Definition: EwLibraryObjects.idl:209
EwErrorCode setVersionNumber(LONG lValueId)
set a version Number of current Library
IEwLibraryX newEwLibrary()
Create a IEwLibraryX object from the associated environnement.
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
VARIANT getEwLibraryArray(EwErrorCode *errorCode)
return the array of IEwLibraryX of associated environment
EwErrorCode setDescription(BSTR bstrLgCode, BSTR bstrVal)
set a description of Library
BSTR getName(EwErrorCode *errorCode)
return name of current Library
EwLibContentType
All library content types.
Definition: EwEnumeration.idl:263
DATE getModificationDate(EwErrorCode *errorCode)
return a modification date of current library
EwErrorCode setEwLibContentType(EwLibContentType applicationType)
set a content type of current Library
EwErrorCode update()
LONG getVersionNumber(EwErrorCode *errorCode)
get a version of current Library
IEwLibraryX findEwLibraryById(long lId, EwErrorCode *pErrorCode)
return IEwLibraryX by id
EwCreatorType getEwCreator(EwErrorCode *errorCode)
return a creator of current Library
BSTR getModifiedBy(EwErrorCode *eErrorCode)
Get the last user name that modified the current object.
EwLibContentType getEwLibContentType(EwErrorCode *errorCode)
return content type of current Library
long getId()
EwErrorCode insert()
EwCreatorType
All creator type.
Definition: EwEnumeration.idl:239
EwErrorCode setName(BSTR bstrName)
set the name of library


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/EwLibraryObjects.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) 2020 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.