Hide Table of Contents
SOLIDWORKS Electrical API  2020.0.5
Electrical API
EwProjectManufacturerPartObjects.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 import "EwProjectLocationObjects.idl";
12 import "EwProjectComponentObjects.idl";
13 
18 [
19  object,
20  uuid(70792A44-0983-467D-9D9D-76465608CAAD),
21  dual,
22  oleautomation,
23  nonextensible,
24  helpstring("EwProjectManufacturerPartCircuitX Interface"),
25  pointer_default(unique)
26 ]
27 interface IEwProjectManufacturerPartCircuitX : IDispatch{
28 
29 };
30 
35 [
36  object,
37  uuid(CE2D9B08-6AEB-494C-BE28-6672CC3E4821),
38  dual,
39  oleautomation,
40  nonextensible,
41  helpstring("IEwProjectManufacturerPartTerminalX Interface"),
42  pointer_default(unique)
43 ]
45 
46 };
47 
48 
53 [
54  object,
55  uuid(1EB3362A-D37A-4E2A-8ED6-D6BB4FCC0CA3),
56  dual,
57  oleautomation,
58  nonextensible,
59  helpstring("IEwProjectManufacturerPartX Interface"),
60  pointer_default(unique)
61 ]
62 interface IEwProjectManufacturerPartX : IDispatch{
63 
64 
65 
73  BSTR get3DPartFilePath (EwErrorCode* errorCode);
74 
75 
83  BSTR getReference (EwErrorCode* errorCode);
84 
85 
93  BSTR getManufacturer (EwErrorCode* errorCode);
94 
95 
104  BSTR getDescription (BSTR strLanguageCode, EwErrorCode* errorCode);
105 
106 
112 
113 
121  VARIANT_BOOL isRailOrDuct (EwErrorCode* errorCode);
122 
123 
131  DOUBLE getWidth (EwErrorCode* errorCode);
132 
133 
141  DOUBLE getHeight (EwErrorCode* errorCode);
142 
143 
151  DOUBLE getDepth (EwErrorCode* errorCode);
152 
153 
161  DOUBLE getLength (EwErrorCode* errorCode);
162 
163 
171  DOUBLE getAdjustableLength (EwErrorCode* errorCode);
172 
173 
182 
183 
192 
193 
202 
203 
204  /*
205  * \return Get the ID of the object. -1 if the object is invalid
206  */
207  LONG getID ();
208 
209 
220  EwErrorCode setUserData (LONG nUserDataNumber, BSTR strValue);
221 
222 
233  BSTR getUserData (LONG nUserDataNumber, EwErrorCode* errorCode);
234 
235 
248  EwErrorCode setTranslatedData (LONG nUserDataNumber, BSTR strLanguage, BSTR strValue);
249 
250 
262  BSTR getTranslatedData (LONG nUserDataNumber, BSTR strLanguage, EwErrorCode* errorCode);
263 
264 
272  BSTR getArticleNumber (EwErrorCode* errorCode);
273 
274 
282  EwErrorCode setArticleNumber (BSTR strArticleNumber);
283 
284 
285  /*
286  * Insert the manufacturer part inside the current project
287  * \return EwErrorCode enum type, can be:
288  * \li EW_NO_ERROR if no error detected
289  * \li EW_UNDEFINED_ERROR if another error occurred
290  * \li EW_INSERTION_FAILED if the insertion failed
291  * \li EW_OBJECT_ALREADY_INSERTED if this object already exists
292  */
294 
295 
296  /*
297  * Remove the manufacturer part from the current project
298  * \return EwErrorCode enum type, can be:
299  * \li EW_NO_ERROR if no error detected
300  * \li EW_UNDEFINED_ERROR if another error occurred
301  */
302  EwErrorCode remove ();
303 
304 
305  /*
306  * Update the Manufacturer part inside the current project
307  * \return EwErrorCode enum type, can be:
308  * \li EW_NO_ERROR if no error detected
309  * \li EW_UNDEFINED_ERROR if another error occurred
310  */
312 
313 
322  BSTR getExternalID (EwErrorCode* errorCode);
323 
324 
333  EwErrorCode setExternalID (BSTR strExternalID);
334 
335 };
336 
341 [
342  object,
343  uuid(b1162e20-26cd-11e5-b345-feff819cdc9f),
344  dual,
345  oleautomation,
346  nonextensible,
347  helpstring("IEwProjectManufacturerPartManagerX Interface"),
348  pointer_default(unique)
349 ]
354  LONG getCount ();
355 
356 
362 
363 
373 
374 
381 
382 
383 };
DOUBLE getAdjustableLength(EwErrorCode *errorCode)
Get the adjustable length of the manufacturer part.
Use this interface to manage IEwProjectManufacturerPartX objects.
Definition: EwProjectManufacturerPartObjects.idl:350
BSTR getManufacturer(EwErrorCode *errorCode)
Get the manufacturer's name.
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
IEwProjectManufacturerPartX findEwProjectManufacturerPartByID(LONG lId, EwErrorCode *errorCode)
return a Manufacturer part according to an ID
IEwProjectManufacturerPartX newEwProjectManufacturerPart()
Create a IEwProjectManufacturerPartX object from the associated project.
EwErrorCode setExternalID(BSTR strExternalID)
Set the external identifier.
BSTR getDescription(BSTR strLanguageCode, EwErrorCode *errorCode)
Get the manufacturer part description.
Use this interface to manage manufacturer part terminal inside a project.
Definition: EwProjectManufacturerPartObjects.idl:44
Use this interface to manage manufacturer part circuit inside a project.
Definition: EwProjectManufacturerPartObjects.idl:27
LONG getEwProjectManufacturerPartCircuitCount(EwErrorCode *errorCode)
Get the number of circuits associated to the manufacturer part.
IEwProjectLocationX getEwProjectLocation(EwErrorCode *errorCode)
Get the location to which the manufacturer part is associated.
BSTR get3DPartFilePath(EwErrorCode *errorCode)
Get the file path of the associated 3D part.
EwErrorCode setUserData(LONG nUserDataNumber, BSTR strValue)
Set user data of the object Project must be opened to be able to call this method.
BSTR getExternalID(EwErrorCode *errorCode)
Get external identifier.
EwErrorCode setArticleNumber(BSTR strArticleNumber)
Set the value of a translated text.
Use this interface to manage a component inside a project.
Definition: EwProjectComponentObjects.idl:104
DOUBLE getDepth(EwErrorCode *errorCode)
Get the depth of the manufacturer part.
Use this interface to manage the location inside a project.
Definition: EwProjectLocationObjects.idl:27
IEwProjectComponentX getEwProjectComponent(EwErrorCode *errorCode)
Get the component to which the manufacturer part is associated.
DOUBLE getHeight(EwErrorCode *errorCode)
Get the height of the manufacturer part.
BSTR getArticleNumber(EwErrorCode *errorCode)
Get the value of a translated text.
VARIANT getEwProjectManufacturerPartArray(EwErrorCode *errorCode)
Get all the manufacturer parts in the manager project.
VARIANT_BOOL isRailOrDuct(EwErrorCode *errorCode)
Check if the manufacturer part is a rail or a duct.
BSTR getUserData(LONG nUserDataNumber, EwErrorCode *errorCode)
Get user data of the object Project must be opened to be able to call this method.
LONG getClassificationID()
Get the classification ID of the manufacturer part.
DOUBLE getWidth(EwErrorCode *errorCode)
Get the width of the manufacturer part.
EwErrorCode setTranslatedData(LONG nUserDataNumber, BSTR strLanguage, BSTR strValue)
Set the value of a translated text Project must be opened to be able to call this method.
DOUBLE getLength(EwErrorCode *errorCode)
Get the length of the manufacturer part.
Use this interface to manage manufacturer part inside a project.
Definition: EwProjectManufacturerPartObjects.idl:62
BSTR getReference(EwErrorCode *errorCode)
Get the reference name of this manufacturer part.
BSTR getTranslatedData(LONG nUserDataNumber, BSTR strLanguage, EwErrorCode *errorCode)
Get the value of a translated text.


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