Hide Table of Contents
SOLIDWORKS Electrical API  2022.0.0
Electrical API
EwProjectWireObjects.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 
8 import "oaidl.idl";
9 import "ocidl.idl";
10 
11 import "EnumDefinition.idl";
12 import "EwObjectBase.idl";
13 
14 
19 [
20  object,
21  uuid(61f18da4-03bd-11e5-8418-1697f925ec7b),
22  dual,
23  oleautomation,
24  nonextensible,
25  helpstring("IEwProjectWireX Interface"),
26  pointer_default(unique)
27 ]
29 {
40  EwErrorCode setUserData (LONG nUserDataNumber , BSTR strValue);
41 
42 
53  BSTR getUserData (LONG nUserDataNumber , EwErrorCode* errorCode);
54 
55 
64  BSTR getTag (EwErrorCode* errorCode);
65 
66 
78  EwErrorCode setTag (BSTR strValue);
79 
80 
89  BSTR getTagRoot (EwErrorCode* errorCode);
90 
91 
102  EwErrorCode setTagRoot (BSTR strValue);
103 
104 
114 
115 
126 
127 
136  long getTagNumber (EwErrorCode* errorCode);
137 
138 
150  EwErrorCode setTagNumber (long lValue);
151 
152 
162 
163 
172  VARIANT_BOOL isTagUnique (EwErrorCode* errorCode);
173 
174 
175  /*
176  * Set the wire length value
177  * \return EwErrorCode enum type, can be:
178  * \li EW_NO_ERROR if no error detected
179  * \li EW_UNDEFINED_ERROR if another error occurred
180  */
181  EwErrorCode setLength (DOUBLE dLength);
182 
183 
192  BSTR getLinearMass (EwErrorCode* errorCode);
193 
194 
204  EwErrorCode setLinearMass (BSTR strLinearMass);
205 
206 
220  EwErrorCode setHarnessID (long lHarnessID);
221 
222 
233  LONG getHarnessID (EwErrorCode* errorCode);
234 
235 
245  DOUBLE getLength (EwErrorCode* pErrorCode);
246 
247 
257  EwErrorCode setDiameter (DOUBLE dValue);
258 
259 
269  DOUBLE getDiameter (EwErrorCode* errorCode);
270 
271 
272 
283 
284 
294  BSTR getSectionOrGauge (EwErrorCode* errorCode);
295 
296 
307 
308 
319 
320 
330  EwErrorCode setSignal (BSTR strValue);
331 
332 
342  BSTR getSignal (EwErrorCode* errorCode);
343 
344 };
345 
346 
351 [
352  object,
353  uuid(FC6A488D-6EA7-4800-9035-2F7F4FEA6E61),
354  dual,
355  nonextensible,
356  pointer_default(unique)
357 ]
358 interface IEwProjectWireManagerX : IDispatch{
368 
369 
375  VARIANT getEwProjectWireArray (EwErrorCode* errorCode);
376 
377 
387 
388 };
BSTR getSignal(EwErrorCode *errorCode)
Get the signal of this wire.
BSTR getSectionOrGauge(EwErrorCode *errorCode)
Get the section or gauge of this wire.
EwErrorCode setNextTagNumber()
Set the next number to have a unique mark.
long getTagNumber(EwErrorCode *errorCode)
Get the mark number of this object.
VARIANT_BOOL isTagUnique(EwErrorCode *errorCode)
Returns true or false if mark is unique.
IEwProjectWireX findEwProjectWireByID(LONG lWireID, EwErrorCode *errorCode)
Find a wire in the project with the target ID.
EwErrorCode setLinearMass(BSTR strLinearMass)
Set the linear mass (density) of this wire.
EwErrorCode setTag(BSTR strValue)
Set the mark of this object.
EwErrorCode setTagMode(EwTagMode eTagMode)
Set the mark mode of this object.
This interface is a generic interface for standard methods.
Definition: EwObjectBase.idl:82
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
DOUBLE getDiameter(EwErrorCode *errorCode)
Get the diameter of this wire.
EwErrorCode setUserData(LONG nUserDataNumber, BSTR strValue)
Set user data of the object.
VARIANT getEwProjectWireArray(EwErrorCode *errorCode)
Get all the wires in the project of the manager.
EwErrorCode setDiameter(DOUBLE dValue)
Set the diameter of this wire.
EwErrorCode setTagNumber(long lValue)
Set the mark number of this object.
EwErrorCode setHarnessID(long lHarnessID)
Set the Harness ID of this wire.
BSTR getLinearMass(EwErrorCode *errorCode)
Get the linear mass (density) of this wire.
LONG getHarnessID(EwErrorCode *errorCode)
Get the Harness ID associated at the current wire.
EwErrorCode setWireSizeStandard(EwWireSizeStandard eWireSizeStandard)
Set the wire size standard enum type of this wire.
EwErrorCode setSectionOrGauge(BSTR strValue)
Set the section or gauge of this wire.
EwErrorCode setSignal(BSTR strValue)
Set the signal of this wire.
EwErrorCode setTagRoot(BSTR strValue)
Set the mark root of this object.
EwTagMode
All Mark mode type.
Definition: EwEnumeration.idl:765
Use this interface to manage IEwProjectWireX objects.
Definition: EwProjectWireObjects.idl:358
DOUBLE getLength(EwErrorCode *pErrorCode)
Get the lenght of the current wire.
EwErrorCode setLength(DOUBLE dLength)
BSTR getTag(EwErrorCode *errorCode)
Get the mark of this object.
Use this interface to manage wire inside a project.
Definition: EwProjectWireObjects.idl:29
IEwProjectWireX newEwProjectWire(EwErrorCode *errorCode)
Create an interface for a new wire in the current project.
BSTR getUserData(LONG nUserDataNumber, EwErrorCode *errorCode)
Get user data of the object.
EwWireSizeStandard getWireSizeStandard(EwErrorCode *errorCode)
Get the wire size standard enum type of this wire.
EwTagMode getTagMode(EwErrorCode *errorCode)
Get the mark mode of this object.
EwWireSizeStandard
Wire size standard type.
Definition: EwEnumeration.idl:611
BSTR getTagRoot(EwErrorCode *errorCode)
Get the mark root of this object.


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/EwProjectWireObjects.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.