Hide Table of Contents
SOLIDWORKS Electrical API  2022.0.0
Electrical API
EwCableObjects.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 "EwClassificationObjects.idl";
12 
13 
14 /************************************************************************/
15 /* In his file, all CABLE object */
16 /************************************************************************/
17 
18 /************************************************************************/
19 /* ENUMERATION */
20 /************************************************************************/
21 
22 
23 /************************************************************************/
24 /* INTERFACES */
25 /************************************************************************/
26 
31 [
32  object,
33  uuid(8061C6A3-CDC3-4000-B1E8-DF811FE93EE7),
34  dual,
35  oleautomation,
36  nonextensible,
37  helpstring("IEwCableCoreX Interface"),
38  pointer_default(unique)
39 ]
40 interface IEwCableCoreX : IDispatch{
41 
42 
43 
48  LONG getNumber ();
49 
50 
60  BSTR getDescription (BSTR lgCode, EwErrorCode* errorCode);
61 
62 
72  EwErrorCode setDescription (BSTR lgCode, BSTR strValue);
73 
74 
83 
84 
93 
94 
102  DOUBLE getSection (EwErrorCode* errorCode);
103 
104 
113  EwErrorCode setSection (DOUBLE dSection);
114 
115 
123  BSTR getGroup (EwErrorCode* errorCode);
124 
125 
133  EwErrorCode setGroup (BSTR strGroup);
134 
135 
143  BSTR getGauge (EwErrorCode* errorCode);
144 
145 
153  EwErrorCode setGauge (BSTR strGauge);
154 
155 
163  BSTR getColorCode (EwErrorCode* errorCode);
164 
165 
173  EwErrorCode setColorCode (BSTR strColorCode);
174 
175 
176 };
177 
182 [
183  object,
184  uuid(59A07E7E-D6B9-4D71-92A3-009916908E54),
185  dual,
186  oleautomation,
187  nonextensible,
188  helpstring("IEwCableReferenceX Interface"),
189  pointer_default(unique)
190 ]
191 interface IEwCableReferenceX : IDispatch{
192 
193 
194 
204 
205 
216 
217 
223 
224 
235  IEwCableCoreX getEwCableCoreAt (LONG index, EwErrorCode* errorCode);
236 
237 
248  BSTR getDescription (BSTR lgCode, EwErrorCode* errorCode);
249 
250 
261  EwErrorCode setDescription (BSTR lgCode, BSTR strValue);
262 
263 
272  BSTR getReference (EwErrorCode* errorCode);
273 
274 
283  EwErrorCode setReference (BSTR strReference);
284 
285 
294  BSTR getManufacturer (EwErrorCode* errorCode);
295 
296 
305  EwErrorCode setManufacturer (BSTR strManufacturer);
306 
307 
316  BSTR getArticleNumber (EwErrorCode* errorCode);
317 
318 
327  EwErrorCode setArticleNumber (BSTR strArticleNumber);
328 
329 
338  LONG getClassNodeID (EwErrorCode* errorCode);
339 
340 
349  EwErrorCode setClassNodeID (LONG lNodeId);
350 
351 
360  BSTR getLibraryCode (EwErrorCode* errorCode);
361 
362 
371  EwErrorCode setLibraryCode (BSTR strLibraryCode);
372 
373 
382  BSTR getFamily (EwErrorCode* errorCode);
383 
384 
393  EwErrorCode setFamily (BSTR strFamily);
394 
395 
404  BSTR getStandard (EwErrorCode* errorCode);
405 
406 
415  EwErrorCode setStandard (BSTR strStandard);
416 
417 
426  BSTR getSerie (EwErrorCode* errorCode);
427 
428 
437  BSTR getSupplierName (EwErrorCode* errorCode);
438 
439 
448  EwErrorCode setSupplierName (BSTR strSupplierName);
449 
450 
459  BSTR getStockNumber (EwErrorCode* errorCode);
460 
461 
470  EwErrorCode setStockNumber (BSTR strStockNumber);
471 
472 
481  DATE getModificationDate (EwErrorCode* errorCode);
482 
483 
492  DATE getCreationDate (EwErrorCode* errorCode);
493 
494 
504 
505 
515 
516 
526 
527 
537 
538 
548 
549 
559  DOUBLE getSection (EwErrorCode* errorCode);
560 
561 
572  EwErrorCode setSection (DOUBLE dSection);
573 
574 
583  DOUBLE getDiameter (EwErrorCode* errorCode);
584 
585 
595  EwErrorCode setDiameter (DOUBLE dDiameter);
596 
597 
606  BSTR getColorCode (EwErrorCode* errorCode);
607 
608 
617  EwErrorCode setColorCode (BSTR strColorCode);
618 
619 
628  DOUBLE getBendRadius (EwErrorCode* errorCode);
629 
630 
640  EwErrorCode setBendRadius (DOUBLE dBendRadius);
641 
642 
651  DOUBLE getVoltageDrop (EwErrorCode* errorCode);
652 
653 
663  EwErrorCode setVoltageDrop (DOUBLE dVoltageDrop);
664 
665 
677 
678 
689 
690 
698  EwErrorCode remove ();
699 
700 
710  BSTR getGauge (EwErrorCode* errorCode);
711 
712 
722  EwErrorCode setGauge (BSTR strGauge);
723 
724 
734  BSTR getExternalID (EwErrorCode* errorCode);
735 
736 
746  EwErrorCode setExternalID (BSTR strExternalID);
747 
748 
758  BSTR getModifiedBy (EwErrorCode* eErrorCode);
759 
769  BSTR getLinearMass (EwErrorCode* errorCode);
770 
771 
782  EwErrorCode setLinearMass (BSTR strLinearMass);
783 
784 
796  EwErrorCode setUserData (LONG nUserDataNumber, BSTR strValue);
797 
798 
810  BSTR getUserData (LONG nUserDataNumber, EwErrorCode* errorCode);
811 
812 
826  EwErrorCode setTranslatedData (LONG nUserDataNumber, BSTR strLanguage, BSTR strValue);
827 
828 
842  BSTR getTranslatedData (LONG nUserDataNumber, BSTR strLanguage, EwErrorCode* errorCode);
843 
853  BSTR getCreatedBy (EwErrorCode* eErrorCode);
854 
855 
865  DOUBLE getCoreDiameter (EwErrorCode* errorCode);
866 
867 
878  EwErrorCode setCoreDiameter (DOUBLE dCoreDiameter);
879 
880 
891  IEwClassificationX getClassification (EwErrorCode* errorCode);
892 
893 };
894 
899 [
900  object,
901  uuid(1F2276D3-B358-40C8-84E2-F8BDED5BF8BF),
902  dual,
903  oleautomation,
904  nonextensible,
905  helpstring("IEwCableReferenceManagerX Interface"),
906  pointer_default(unique)
907 ]
908 interface IEwCableReferenceManagerX : IDispatch
909 {
915 
916 
920  LONG getCount ();
921 
922 
926  VARIANT getEwCableReferenceArray (EwErrorCode* errorCode);
927 
928 
933  IEwCableReferenceFiltersX newEwCableReferenceFilters ();
934 
935 
945  IEwCableReferenceX findByManufacturerAndReference (BSTR strManufacturer, BSTR strReference , EwErrorCode* errorCode);
946 
947 
948 };
EwErrorCode deleteCableCoreAt(LONG index)
Delete a cable core from this cable reference.
EwErrorCode setStockNumber(BSTR strStockNumber)
Set a stock number of this cable reference.
BSTR getGroup(EwErrorCode *errorCode)
Get the group of this cable core.
BSTR getExternalID(EwErrorCode *errorCode)
Get external identifier of this cable reference.
EwErrorCode insert()
Insert this object inside the current environment.
EwCreatorType getCreator(EwErrorCode *errorCode)
Get the creator of this cable reference.
LONG getNumber()
Get the number of this cable core.
IEwCableReferenceX newEwCableReference()
Create a IEwCableReferenceX object from the associated environnement.
EwErrorCode setCableType(EwCableReferenceType eCableReferenceType)
Set a cable type of this cable reference.
EwErrorCode setWireSizeStandard(EwWireSizeStandard eWireSizeStandard)
Set the size standard of this cable reference.
EwErrorCode setBendRadius(DOUBLE dBendRadius)
Set the bend radius of this cable reference.
BSTR getManufacturer(EwErrorCode *errorCode)
Get a manufacturer of this cable reference.
EwErrorCode setVoltageDrop(DOUBLE dVoltageDrop)
Set the voltage drop of this cable reference.
DATE getCreationDate(EwErrorCode *errorCode)
Get the creation date of this cable reference.
BSTR getGauge(EwErrorCode *errorCode)
Get the Gauge of this cable reference.
BSTR getLibraryCode(EwErrorCode *errorCode)
Get a library code of this cable reference.
EwErrorCode setReference(BSTR strReference)
Set a reference of this cable reference.
IEwCableReferenceX findByManufacturerAndReference(BSTR strManufacturer, BSTR strReference, EwErrorCode *errorCode)
Return an IEWCableReference according to the manufacturer name and the reference.
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
EwErrorCode setDiameter(DOUBLE dDiameter)
Set the diameter of this cable reference.
EwCableReferenceType
Cable reference type.
Definition: EwEnumeration.idl:599
DOUBLE getVoltageDrop(EwErrorCode *errorCode)
Get the voltage drop of this cable reference.
EwErrorCode setUserData(LONG nUserDataNumber, BSTR strValue)
Set user data of the object.
EwErrorCode setGroup(BSTR strGroup)
Set the group of this cable core.
DOUBLE getDiameter(EwErrorCode *errorCode)
Get the diameter of this cable reference.
EwCableReferenceType getCableType(EwErrorCode *errorCode)
Get a cable type of this cable reference.
EwErrorCode setGauge(BSTR strGauge)
Set the gauge of this cable core.
BSTR getStandard(EwErrorCode *errorCode)
Get a standard of this cable reference.
BSTR getModifiedBy(EwErrorCode *eErrorCode)
Get the last user name that modified the current object.
IEwCableCoreX addEwCableCore(EwErrorCode *errorCode)
Create and add a cable core for this cable reference.
BSTR getUserData(LONG nUserDataNumber, EwErrorCode *errorCode)
Get user data of the object.
Use this interface to manage a cable core inside a cable reference.
Definition: EwCableObjects.idl:40
BSTR getTranslatedData(LONG nUserDataNumber, BSTR strLanguage, EwErrorCode *errorCode)
Get the value of a translated text.
EwErrorCode setTranslatedData(LONG nUserDataNumber, BSTR strLanguage, BSTR strValue)
Set the value of a translated text.
EwCableCoreType getEwCableCoreType(EwErrorCode *errorCode)
Get the type of cable core.
EwCableCoreType
Cable Core type.
Definition: EwEnumeration.idl:624
EwErrorCode update()
Update this object inside the current environment.
BSTR getReference(EwErrorCode *errorCode)
Get a reference of this cable reference.
Use this interface to manage cable reference.
Definition: EwCableObjects.idl:191
BSTR getDescription(BSTR lgCode, EwErrorCode *errorCode)
Get a description of this cable core.
BSTR getLinearMass(EwErrorCode *errorCode)
Get the linear mass (density) of this cable.
IEwCableCoreX getEwCableCoreAt(LONG index, EwErrorCode *errorCode)
Get a cable core inside this cable reference.
BSTR getCreatedBy(EwErrorCode *eErrorCode)
Get the user name that created the current object.
DOUBLE getBendRadius(EwErrorCode *errorCode)
Get the bend radius of this cable reference.
BSTR getSupplierName(EwErrorCode *errorCode)
Get a supplier name of this cable reference.
BSTR getDescription(BSTR lgCode, EwErrorCode *errorCode)
Get a description of this cable reference.
EwErrorCode setDescription(BSTR lgCode, BSTR strValue)
Set a description of this cable reference.
EwErrorCode setFamily(BSTR strFamily)
Set a library of this cable reference.
EwErrorCode setArticleNumber(BSTR strArticleNumber)
Set an article number of this cable reference.
BSTR getColorCode(EwErrorCode *errorCode)
Get the color code of this cable core.
EwErrorCode setSupplierName(BSTR strSupplierName)
Set a supplier name of this cable reference.
EwErrorCode setCoreDiameter(DOUBLE dCoreDiameter)
Set outside diameter of cable core (mm)
LONG getClassNodeID(EwErrorCode *errorCode)
Get the classification node ID of this cable reference.
LONG getCableCoreCount()
Count the number of cable core in this cable reference.
DATE getModificationDate(EwErrorCode *errorCode)
Get the last modification date of this cable reference.
EwErrorCode setDescription(BSTR lgCode, BSTR strValue)
Set a description of this cable core.
BSTR getStockNumber(EwErrorCode *errorCode)
Get a stock number of this cable reference.
EwErrorCode setSection(DOUBLE dSection)
Set the section of this cable reference.
DOUBLE getCoreDiameter(EwErrorCode *errorCode)
Get the outside diameter of cable core (mm)
Use this interface to manage EwCableReferenceX objects.
Definition: EwCableObjects.idl:909
EwErrorCode setColorCode(BSTR strColorCode)
Set the color code of this cable core.
EwErrorCode setExternalID(BSTR strExternalID)
Set the external identifier of this cable reference.
BSTR getFamily(EwErrorCode *errorCode)
Get a family of this cable reference.
DOUBLE getSection(EwErrorCode *errorCode)
Get the section of this cable core.
EwErrorCode setColorCode(BSTR strColorCode)
Set the color code of this cable reference.
EwErrorCode setSection(DOUBLE dSection)
Set the section of this cable core.
BSTR getArticleNumber(EwErrorCode *errorCode)
Get an article number of this cable reference.
BSTR getGauge(EwErrorCode *errorCode)
Get the gauge of this cable core.
EwErrorCode setLinearMass(BSTR strLinearMass)
Set the linear mass (density) of this cable.
EwErrorCode setLibraryCode(BSTR strLibraryCode)
Set a library code of this cable reference.
DOUBLE getSection(EwErrorCode *errorCode)
Get the section of this cable reference.
EwErrorCode setClassNodeID(LONG lNodeId)
Set the classification node ID of this cable reference.
IEwCableReferenceFiltersX newEwCableReferenceFilters()
Create an IEwCableReferenceFiltersX interface to filter on cable references (IEwCableReferenceX) of a...
EwErrorCode setGauge(BSTR strGauge)
Set the gauge of this cable reference.
IEwClassificationX getClassification(EwErrorCode *errorCode)
Get the classification of the current cable reference.
BSTR getColorCode(EwErrorCode *errorCode)
Get the color code of this cable reference.
EwCreatorType
All creator type.
Definition: EwEnumeration.idl:260
EwErrorCode setStandard(BSTR strStandard)
Set a standard of this cable reference.
EwErrorCode setManufacturer(BSTR strManufacturer)
Set a manufacturer of this cable reference.
EwErrorCode setEwCableCoreType(EwCableCoreType eCableCoreType)
Set the type of cable core.
VARIANT getEwCableReferenceArray(EwErrorCode *errorCode)
return the array of IEwCableReferenceX of associated environment
BSTR getSerie(EwErrorCode *errorCode)
Get a serie of this cable reference.
EwWireSizeStandard
Wire size standard type.
Definition: EwEnumeration.idl:611
EwWireSizeStandard getWireSizeStandard(EwErrorCode *errorCode)
Get the size standard of this cable reference.


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/EwCableObjects.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) 2022 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.