 |
SOLIDWORKS Electrical API
2021.0.0
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)
39 uuid(e8994c3e-03c2-11e5-8418-1697f925ec7b),
43 helpstring(
"IEwProjectComponentCircuitX Interface"),
44 pointer_default(unique)
289 uuid(a6c4df3a-03c2-11e5-8418-1697f925ec7b),
293 helpstring(
"IEwProjectComponentX Interface"),
294 pointer_default(unique)
390 uuid(b16df1f6-260e-11e5-b345-feff819cdc9f),
394 helpstring(
"IEwProjectComponentManagerX Interface"),
395 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 hasBreakPage(EwErrorCode *errorCode)
Return if this circuit component has a break page.
EwErrorCode setAutomaticAddress(VARIANT_BOOL bIsAutomaticAddress)
Sets to fill in automatic the channel address.
long getSymbolID(EwErrorCode *errorCode)
Return the Symbol ID associated with the circuit component.
VARIANT_BOOL getToDraw(EwErrorCode *errorCode)
Return true if it is drawable.
long getCircuitSymbolID(EwErrorCode *errorCode)
Return the Circuit Symbol ID associated with the circuit component.
Use this interface to manage ComponentTerminal inside a project.
Definition: EwProjectComponentObjects.idl:28
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.
EwErrorCode setKeyCode(BSTR strKey)
Sets the Key for the cross reference.
EwErrorCode setChannelGroup(BSTR strChannelGroup)
Sets the new Channel Group.
EwComponentType
All types of component type.
Definition: EwEnumeration.idl:919
IEwProjectComponentX findEwProjectComponentByID(LONG lID, EwErrorCode *errorCode)
Find a Component object in the project with the target ID.
This interface is a generic interface for standard methods.
Definition: EwObjectBase.idl:26
LONG getEwProjectComponentTerminalCount()
Count the number of terminals.
EwComponentType getType(EwErrorCode *errorCode)
Return the EwComponentType enum type of the component.
BSTR getChannelGroup(EwErrorCode *errorCode)
Return the Channel Group.
long getComponentID(EwErrorCode *errorCode)
Return the Component ID associated with the circuit component.
BSTR getChannelAddress(EwErrorCode *errorCode)
Return the Channel Address.
Use this interface to manage a component inside a project.
Definition: EwProjectComponentObjects.idl:297
Use this interface to manage the components inside a project.
Definition: EwProjectComponentObjects.idl:398
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.
EwErrorCode setHidden(VARIANT_BOOL bIsHidden)
Sets to Hide this circuit component.
VARIANT getEwProjectComponentArray(EwErrorCode *errorCode)
Get all the Component objects ID in the project.
EwErrorCode setChannelAddress(BSTR strChannelAddress)
Sets the new Channel Address.
VARIANT_BOOL isAutomaticAddress(EwErrorCode *errorCode)
Return if the channel address is fill in automatic.
VARIANT getEwProjectComponentCircuitArray(EwErrorCode *errorCode)
Get the array of IEwProjectComponentCircuitX ID of the current project.
IEwProjectComponentTerminalX getEwProjectComponentTerminalAt(LONG index, EwErrorCode *errorCode)
Get a terminal.
Use this interface to manage component element inside a project.
Definition: EwProjectComponentObjects.idl:47
long getCircuitManufacturerPartID(EwErrorCode *errorCode)
Return the Circuit ManufacturerPart ID associated with the circuit component.
EwErrorCode setBreakPage(VARIANT_BOOL bBreakPage)
Add/Remove break page.
IEwProjectComponentCircuitX findEwProjectComponentCircuitByID(LONG lID, EwErrorCode *errorCode)
return an EwProjectComponentCircuitX according to an Id
EwErrorCode deleteEwProjectComponentTerminalAt(LONG index)
Delete a terminal.
IEwProjectComponentCircuitX newEwProjectComponentCircuitX()
Create an interface for a new Component Circuit object in the current project.
long getManufacturerPartID(EwErrorCode *errorCode)
Return the ManufacturerPart ID associated with the circuit component.
IEwProjectComponentX newEwProjectComponent()
Create an interface for a new Component object in the current project.
BSTR getKeyCode(EwErrorCode *errorCode)
Return the Key for the cross reference.