 |
SOLIDWORKS Electrical API
2020.0.5
Electrical API
|
Go to the documentation of this file.
4 midl_pragma warning(disable:2111)
10 import "EnumDefinition.idl";
12 import "EwObjectBase.idl";
20 uuid(2097bc6a-03c3-11e5-8418-1697f925ec7b),
24 helpstring(
"IEwProjectComponentTerminalX Interface"),
25 pointer_default(unique)
38 uuid(e8994c3e-03c2-11e5-8418-1697f925ec7b),
42 helpstring(
"IEwProjectComponentCircuitX Interface"),
43 pointer_default(unique)
96 uuid(a6c4df3a-03c2-11e5-8418-1697f925ec7b),
100 helpstring(
"IEwProjectComponentX Interface"),
101 pointer_default(unique)
171 uuid(b16df1f6-260e-11e5-b345-feff819cdc9f),
175 helpstring(
"IEwProjectComponentManagerX Interface"),
176 pointer_default(unique)
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.