Hide Table of Contents
SOLIDWORKS Electrical API  2020.0.5
Electrical API
EwProjectComponentObjects.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 import "EwObjectBase.idl";
13 
18 [
19  object,
20  uuid(2097bc6a-03c3-11e5-8418-1697f925ec7b),
21  dual,
22  oleautomation,
23  nonextensible,
24  helpstring("IEwProjectComponentTerminalX Interface"),
25  pointer_default(unique)
26 ]
27 interface IEwProjectComponentTerminalX : IDispatch{
28 
29 
30 };
31 
36 [
37  object,
38  uuid(e8994c3e-03c2-11e5-8418-1697f925ec7b),
39  dual,
40  oleautomation,
41  nonextensible,
42  helpstring("IEwProjectComponentCircuitX Interface"),
43  pointer_default(unique)
44 ]
45 interface IEwProjectComponentCircuitX : IDispatch{
46 
47 
48 
57 
58 
68 
69 
75 
76 
87 
88 };
89 
94 [
95  object,
96  uuid(a6c4df3a-03c2-11e5-8418-1697f925ec7b),
97  dual,
98  oleautomation,
99  nonextensible,
100  helpstring("IEwProjectComponentX Interface"),
101  pointer_default(unique)
102 ]
104 {
105 
113  BSTR getTagPath (EwErrorCode* errorCode);
114 
115 
116 
125  VARIANT_BOOL getToDraw (EwErrorCode* errorCode);
126 
127 
128 
137  EwErrorCode setToDraw (VARIANT_BOOL bToDraw);
138 
139 
140 
149 
150 
151 
162 
163 };
164 
169 [
170  object,
171  uuid(b16df1f6-260e-11e5-b345-feff819cdc9f),
172  dual,
173  oleautomation,
174  nonextensible,
175  helpstring("IEwProjectComponentManagerX Interface"),
176  pointer_default(unique)
177 ]
178 interface IEwProjectComponentManagerX : IDispatch{
182  LONG getCount ();
183 
184 
190 
191 
200 
201 
212 
213 
224 
225 
235 
236 
243 
244 };
EwErrorCode setType(EwComponentType eComponentType)
Set the EwComponentType enum type of the component.
Generic interface for an object that belongs to a project.
Definition: EwObjectBase.idl:76
VARIANT_BOOL getToDraw(EwErrorCode *errorCode)
Return true if it is drawable.
Use this interface to manage ComponentTerminal inside a project.
Definition: EwProjectComponentObjects.idl:27
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
BSTR getTagPath(EwErrorCode *errorCode)
Get the Mark path of the component, example: -N1-R1-M1.
IEwProjectComponentCircuitX findEwProjectComponentCircuitByID(LONG lId, EwErrorCode *errorCode)
return an EwProjectComponentCircuitX according to an Id
EwComponentType
All types of component type.
Definition: EwEnumeration.idl:910
LONG getEwProjectComponentTerminalCount()
Count the number of terminals.
EwComponentType getType(EwErrorCode *errorCode)
Return the EwComponentType enum type of the component.
IEwProjectComponentX findEwProjectComponentByID(LONG lId, EwErrorCode *errorCode)
return an EwProjectComponent according to an Id
Use this interface to manage a component inside a project.
Definition: EwProjectComponentObjects.idl:104
Use this interface to manage the components inside a project.
Definition: EwProjectComponentObjects.idl:178
IEwProjectComponentTerminalX addEwProjectComponentTerminal(EwErrorCode *errorCode)
Create and add a terminal.
EwErrorCode setToDraw(VARIANT_BOOL bToDraw)
Set this value to true to draw the terminal strip drawing of this component.
VARIANT getEwProjectComponentArray(EwErrorCode *errorCode)
return the array of IEwProjectComponentX
VARIANT getEwProjectComponentCircuitArray(EwErrorCode *errorCode)
Get the array of IEwProjectComponentCircuitX of the project.
IEwProjectComponentTerminalX getEwProjectComponentTerminalAt(LONG index, EwErrorCode *errorCode)
Get a terminal.
Use this interface to manage component element inside a project.
Definition: EwProjectComponentObjects.idl:45
EwErrorCode deleteEwProjectComponentTerminalAt(LONG index)
Delete a terminal.
IEwProjectComponentCircuitX newEwProjectComponentCircuitX()
create a new IEwProjectComponentCircuitX
IEwProjectComponentX newEwProjectComponent()
Creates a new Project Component object.


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