 |
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(60A0873B-AFFB-47CB-91B4-4F94D860672B),
23 pointer_default(unique)
424 uuid(5E7EE771-FFA6-4959-B3A6-09E8FED6F813),
427 pointer_default(unique)
EwErrorCode setVoltageDrop(DOUBLE dVoltageDrop)
Set the voltage drop associated with the current cable.
VARIANT getEwProjectCableArray(EwErrorCode *errorCode)
Get all the cables in the manager project.
Use this interface to manage cables of a project.
Definition: EwProjectCableObjects.idl:429
IEwProjectCableX findEwProjectCableByID(LONG lCableID, EwErrorCode *errorCode)
Find a cable in the project with the target ID.
Generic interface for an object that belongs to a project.
Definition: EwObjectBase.idl:76
EwErrorCode set3dDestination(BSTR str3dDestination)
Set the 3D Destination associated with the current cable.
BSTR getFamily(EwErrorCode *errorCode)
Get the family associated with the current cable.
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
EwErrorCode setLength(DOUBLE dLength)
EwErrorCode setLinearMass(BSTR strLinearMass)
Set the linear mass (density) of this cable.
BSTR getLinearMass(EwErrorCode *errorCode)
Get the linear mass (density) of this cable.
BSTR getReference(EwErrorCode *errorCode)
Get the reference of the cable.
BSTR getArticleNumber(EwErrorCode *errorCode)
Get the article number.
BSTR get3dDestination(EwErrorCode *errorCode)
Get the 3D Destination associated with the current cable.
BSTR getStandard(EwErrorCode *pErrorCode)
Get the standard associated with the current cable.
EwErrorCode setFamily(BSTR strFamily)
Set the family associated with the current cable.
EwErrorCode setHarnessID(long lHarnessID)
Set the Harness ID of this cable.
IEwProjectCableX newEwProjectCable()
Create an IEwProjectCableX object from the associated project.
Use this interface to manage a cable inside a project.
Definition: EwProjectCableObjects.idl:26
BSTR getStockNumber(EwErrorCode *errorCode)
Get the stock number associated with the current cable.
BSTR get3dOrigin(EwErrorCode *errorCode)
Get the 3D Orign associated with the current cable.
LONG getCoreCount(EwErrorCode *errorCode)
Get cable core count.
BSTR getExternalID(EwErrorCode *errorCode)
Get external identifier of this cable.
LONG getCount(EwErrorCode *errorCode)
return the number of cables of associated project
LONG getHarnessID(EwErrorCode *errorCode)
Get the Harness ID associated with the current cable.
EwErrorCode setStandard(BSTR strStandard)
Set the standard associated with the current cable.
EwErrorCode setAppliedVoltage(DOUBLE dAppliedVoltage)
Set the applied voltage associated with the current cable.
EwErrorCode setFullLoadCurrent(DOUBLE dFullLoadCurrent)
Set the full load current associated with the current cable.
DOUBLE getVoltageDrop(EwErrorCode *errorCode)
Get the voltage drop associated with the current cable.
DOUBLE getFullLoadCurrent(EwErrorCode *errorCode)
Get the full load current associated with the current cable.
DOUBLE getAppliedVoltage(EwErrorCode *errorCode)
Get the applied voltage associated with the current cable.
BSTR getManufacturer(EwErrorCode *errorCode)
Get the manufacturer of the cable.
EwErrorCode setExternalID(BSTR strExternalID)
Set the external identifier of this cable.
EwErrorCode set3dOrigin(BSTR str3dOrigin)
Set the 3D Orign associated with the current cable.
BSTR getSupplierName(EwErrorCode *errorCode)
Get the supplier name associated with the current cable.
EwErrorCode setSupplierName(BSTR strSupplierName)
Set the supplier name associated with the current cable.
EwErrorCode setStockNumber(BSTR strStockNumber)
Set the stock number associated with the current cable.
VARIANT selectCables(EwErrorCode *errorCode)
Invoke cable selection dialog.
EwErrorCode setArticleNumber(BSTR strArticleNumber)
Set the article number.
EwErrorCode setCoreStubs(LONG nCoreIdx, DOUBLE dStubLengthFrom, DOUBLE dStubLengthTo)
Set lengths of cable core stubs.
EwErrorCode setInRushFactor(DOUBLE dInRushFactor)
Set the rush factor associated with the current cable.