Hide Table of Contents
SOLIDWORKS Electrical API  2020.0.5
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 
12 
13 /************************************************************************/
14 /* In his file, all CABLE object */
15 /************************************************************************/
16 
17 /************************************************************************/
18 /* ENUMERATION */
19 /************************************************************************/
20 
21 
22 /************************************************************************/
23 /* INTERFACES */
24 /************************************************************************/
25 
30 [
31  object,
32  uuid(8061C6A3-CDC3-4000-B1E8-DF811FE93EE7),
33  dual,
34  oleautomation,
35  nonextensible,
36  helpstring("IEwCableCoreX Interface"),
37  pointer_default(unique)
38 ]
39 interface IEwCableCoreX : IDispatch{
40 
41 
42 
47  LONG getNumber ();
48 
49 
59  BSTR getDescription (BSTR lgCode, EwErrorCode* errorCode);
60 
61 
71  EwErrorCode setDescription (BSTR lgCode, BSTR strValue);
72 
73 
82 
83 
92 
93 
101  DOUBLE getSection (EwErrorCode* errorCode);
102 
103 
112  EwErrorCode setSection (DOUBLE dSection);
113 
114 
122  BSTR getGroup (EwErrorCode* errorCode);
123 
124 
132  EwErrorCode setGroup (BSTR strGroup);
133 
134 
142  BSTR getGauge (EwErrorCode* errorCode);
143 
144 
152  EwErrorCode setGauge (BSTR strGauge);
153 
154 
162  BSTR getColorCode (EwErrorCode* errorCode);
163 
164 
172  EwErrorCode setColorCode (BSTR strColorCode);
173 
174 
175 };
176 
181 [
182  object,
183  uuid(59A07E7E-D6B9-4D71-92A3-009916908E54),
184  dual,
185  oleautomation,
186  nonextensible,
187  helpstring("IEwCableReferenceX Interface"),
188  pointer_default(unique)
189 ]
190 interface IEwCableReferenceX : IDispatch{
191 
192 
193 
202 
203 
213 
214 
220 
221 
231  IEwCableCoreX getEwCableCoreAt (LONG index, EwErrorCode* errorCode);
232 
233 
243  BSTR getDescription (BSTR lgCode, EwErrorCode* errorCode);
244 
245 
255  EwErrorCode setDescription (BSTR lgCode, BSTR strValue);
256 
257 
265  BSTR getReference (EwErrorCode* errorCode);
266 
267 
275  EwErrorCode setReference (BSTR strReference);
276 
277 
285  BSTR getManufacturer (EwErrorCode* errorCode);
286 
287 
295  EwErrorCode setManufacturer (BSTR strManufacturer);
296 
297 
305  BSTR getArticleNumber (EwErrorCode* errorCode);
306 
307 
315  EwErrorCode setArticleNumber (BSTR strArticleNumber);
316 
317 
325  LONG getClassNodeID (EwErrorCode* errorCode);
326 
327 
335  EwErrorCode setClassNodeID (LONG lNodeId);
336 
337 
345  BSTR getLibraryCode (EwErrorCode* errorCode);
346 
347 
355  EwErrorCode setLibraryCode (BSTR strLibraryCode);
356 
357 
365  BSTR getFamily (EwErrorCode* errorCode);
366 
367 
375  EwErrorCode setFamily (BSTR strFamily);
376 
377 
385  BSTR getStandard (EwErrorCode* errorCode);
386 
387 
395  EwErrorCode setStandard (BSTR strStandard);
396 
397 
405  BSTR getSerie (EwErrorCode* errorCode);
406 
407 
415  BSTR getSupplierName (EwErrorCode* errorCode);
416 
417 
425  EwErrorCode setSupplierName (BSTR strSupplierName);
426 
427 
435  BSTR getStockNumber (EwErrorCode* errorCode);
436 
437 
445  EwErrorCode setStockNumber (BSTR strStockNumber);
446 
447 
455  DATE getModificationDate (EwErrorCode* errorCode);
456 
457 
465  DATE getCreationDate (EwErrorCode* errorCode);
466 
467 
476 
477 
486 
487 
496 
497 
506 
507 
515  EwErrorCode setWireSizeStandard (EwWireSizeStandard cableReferenceSizeStandard);
516 
517 
526  DOUBLE getSection (EwErrorCode* errorCode);
527 
528 
538  EwErrorCode setSection (DOUBLE dSection);
539 
540 
548  DOUBLE getDiameter (EwErrorCode* errorCode);
549 
550 
559  EwErrorCode setDiameter (DOUBLE dDiameter);
560 
561 
569  BSTR getColorCode (EwErrorCode* errorCode);
570 
571 
579  EwErrorCode setColorCode (BSTR strColorCode);
580 
581 
589  DOUBLE getBendRadius (EwErrorCode* errorCode);
590 
591 
600  EwErrorCode setBendRadius (DOUBLE dBendRadius);
601 
602 
610  DOUBLE getVoltageDrop (EwErrorCode* errorCode);
611 
612 
621  EwErrorCode setVoltageDrop (DOUBLE dVoltageDrop);
622 
623 
634 
635 
645 
646 
653  EwErrorCode remove ();
654 
655 
664  BSTR getGauge (EwErrorCode* errorCode);
665 
666 
675  EwErrorCode setGauge (BSTR strGauge);
676 
677 
686  BSTR getExternalID (EwErrorCode* errorCode);
687 
688 
697  EwErrorCode setExternalID (BSTR strExternalID);
698 
699 
708  BSTR getModifiedBy (EwErrorCode* eErrorCode);
709 
718  BSTR getLinearMass (EwErrorCode* errorCode);
719 
720 
730  EwErrorCode setLinearMass (BSTR strLinearMass);
731 
732 
733 };
734 
739 [
740  object,
741  uuid(1F2276D3-B358-40C8-84E2-F8BDED5BF8BF),
742  dual,
743  oleautomation,
744  nonextensible,
745  helpstring("IEwCableReferenceManagerX Interface"),
746  pointer_default(unique)
747 ]
748 interface IEwCableReferenceManagerX : IDispatch
749 {
755 
756 
760  LONG getCount ();
761 
762 
766  VARIANT getEwCableReferenceArray (EwErrorCode* errorCode);
767 
768 
773  IEwCableReferenceFiltersX newEwCableReferenceFilters ();
774 
775 
785  IEwCableReferenceX findByManufacturerAndReference (BSTR strManufacturer, BSTR strReference , EwErrorCode* errorCode);
786 
787 
788 };
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 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:572
DOUBLE getVoltageDrop(EwErrorCode *errorCode)
Get the voltage drop of this cable reference.
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.
Use this interface to manage a cable core inside a cable reference.
Definition: EwCableObjects.idl:39
EwCableCoreType getEwCableCoreType(EwErrorCode *errorCode)
Get the type of cable core.
EwCableCoreType
Cable Core type.
Definition: EwEnumeration.idl:597
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:190
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.
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.
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.
EwErrorCode setEwCableCoreType(EwCableCoreType cableCoreType)
Set the type of 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.
Use this interface to manage EwCableReferenceX objects.
Definition: EwCableObjects.idl:749
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.
EwErrorCode setWireSizeStandard(EwWireSizeStandard cableReferenceSizeStandard)
Set the size standard of this cable reference.
EwErrorCode setCableType(EwCableReferenceType cableReferenceType)
Set a cable type 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.
BSTR getColorCode(EwErrorCode *errorCode)
Get the color code of this cable reference.
EwCreatorType
All creator type.
Definition: EwEnumeration.idl:239
EwErrorCode setStandard(BSTR strStandard)
Set a standard of this cable reference.
EwErrorCode setManufacturer(BSTR strManufacturer)
Set a manufacturer of this cable reference.
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:584
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) 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.