Hide Table of Contents
SOLIDWORKS Electrical API 2024.0.0
Electrical API
EwClassificationObjects.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
7import "oaidl.idl";
8import "ocidl.idl";
9
10import "EwObjectBaseObjects.idl";
11
16[
17 object,
18 uuid(DAE1E577-A5CE-4E4C-9515-58C4CB548CFB),
19 dual,
20 nonextensible,
21 helpstring("IEwClassX Interface"),
22 pointer_default(unique)
23]
25{
29 LONG getID ();
30
31
42
43
52 LONG getParentID (EwErrorCode* errorCode);
53
54
64
65
74 LONG getClassID (EwErrorCode* errorCode);
75
76
85 EwErrorCode set3DPartName (BSTR str3DPartName);
86
87
96 BSTR get3DPartName (EwErrorCode* errorCode);
97
98
108 EwErrorCode set2DFootprintSymbolName (BSTR str2DFootprintSymbolName);
109
110
120
121
130 EwErrorCode set2DConnectionLabelSymbolName (BSTR str2DConnectionLabelSymbolName);
131
132
142
143
152 EwErrorCode setUserDataFile (BSTR strDataFileName);
153
154
163 BSTR getUserDataFile (EwErrorCode* errorCode);
164
165
176
177
187
188
198
199
212
213};
214
219[
220 object,
221 uuid(BA2E432E-1AFA-4401-A0BE-4E488D1F8C7E),
222 dual,
223 nonextensible,
224 helpstring("IEwClassificationX Interface"),
225 pointer_default(unique)
226]
228{
229 /*
230 * Deprecated use IEwClassificationX getID() interface .
231 * Get the ID of the object. -1 if the object is invalid.
232 * \since 2021 SP0
233 * \param[out] errorCode EwErrorCode enum type, can be:
234 * \li EW_NO_ERROR if no error detected.
235 * \li EW_UNDEFINED_ERROR if an error occurred.
236 * \return ID of current object.
237 */
238 LONG getID (EwErrorCode* errorCode);
239
240
249 LONG getEwClassCount (EwErrorCode* errorCode);
250
251
261
262
272 IEwClassX findEwClassByID (LONG lClassId, EwErrorCode* errorCode);
273
274
283 VARIANT getEwClassArray (EwErrorCode* errorCode);
284
285
295
296
305 EwErrorCode set3DPartName (BSTR str3DPartName);
306
307
316 BSTR get3DPartName (EwErrorCode* errorCode);
317
318
327 EwErrorCode set2DFootprintSymbolName (BSTR str2DFootprintSymbolName);
328
329
339
340
349 EwErrorCode set2DConnectionLabelSymbolName (BSTR str2DConnectionLabelSymbolName);
350
351
361
362
376
377
388 EwErrorCode moveClass (long lClassId, long lClassIdParent);
389
390
391};
392
397[
398 object,
399 uuid(7E6882FA-9A8C-46A1-AB4E-BAF9484EE7FB),
400 dual,
401 nonextensible,
402 helpstring("IEwClassificationManagerX Interface"),
403 pointer_default(unique)
404]
405interface IEwClassificationManagerX : IDispatch
406{
417
418
428
429
438 VARIANT getEwClassArray (EwErrorCode* errorCode);
439
440
450 IEwClassX findEwClassByID (long lID, EwErrorCode* errorCode);
451
452
462 IEwClassX getEwClassAt (long lIndex, EwErrorCode* errorCode);
463
464
465
474 long getEwClassCount (EwErrorCode* errorCode);
475
476};
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:24
EwClassificationType
Classification for components, symbols and manufacturer parts kComponentType 0->3 kTitleBlockType 3...
Definition: EwEnumeration.idl:583
EwClassComponentType
All the class component types.
Definition: EwEnumeration.idl:1116
Use this interface to manage an EwClassX object.
Definition: EwClassificationObjects.idl:25
LONG getClassID(EwErrorCode *errorCode)
Return the class node Id, unique within the classification.
LONG getParentID(EwErrorCode *errorCode)
Return the ID of the parent of the class.
LONG getID()
IEwClassX duplicate(EwErrorCode *errorCode)
Duplicate current class.
BSTR get2DConnectionLabelSymbolName(EwErrorCode *errorCode)
Get the default connection label symbol used if none is associated to a manufacturer part.
BSTR get3DPartName(EwErrorCode *errorCode)
Get the default 3D part used if none is associated to a manufacturer part.
EwErrorCode set2DConnectionLabelSymbolName(BSTR str2DConnectionLabelSymbolName)
Set the default connection label symbol to use when inserting a connection label.
EwErrorCode setUserDataFile(BSTR strDataFileName)
Set User Data File of node.
EwErrorCode setComponentType(EwClassComponentType ewClassComponentType)
Set Component Type of current node in classification.
EwErrorCode setParentID(LONG lID)
Set the value of parent ID.
EwClassComponentType getComponentType(EwErrorCode *errorCode)
Get Component Type of current node in classification.
EwErrorCode setClassID(EwClassificationType ewClassificationType)
Set class id of current node in classification.
LONG getClassificationID(EwErrorCode *errorCode)
Return classification ID.
BSTR getUserDataFile(EwErrorCode *errorCode)
Get User Data File of node.
EwErrorCode set2DFootprintSymbolName(BSTR str2DFootprintSymbolName)
Set the default 2D footprint symbol to use if none is associated to a manufacturer part.
BSTR get2DFootprintSymbolName(EwErrorCode *errorCode)
Get the default 2D footprint symbol used if none is associated to a manufacturer part.
EwErrorCode set3DPartName(BSTR str3DPartName)
Set the default 3D part to use when inserting a 3D part.
Use this interface to manage EwClassificationX objects.
Definition: EwClassificationObjects.idl:406
IEwClassX newEwClass(EwErrorCode *errorCode)
Create a new node in curent classification.
long getEwClassCount(EwErrorCode *errorCode)
Get number of nodes in all classification.
IEwClassificationX getEwClassification(EwClassificationType eClassificationType, EwErrorCode *errorCode)
Get an interface of classificationX from classification type.
IEwClassX findEwClassByID(long lID, EwErrorCode *errorCode)
Get node find by id in current classification.
IEwClassX getEwClassAt(long lIndex, EwErrorCode *errorCode)
Get node find at specific position in current classification.
VARIANT getEwClassArray(EwErrorCode *errorCode)
Get array of all nodes found in current classification.
Use this interface to manage an IEwClassificationX object.
Definition: EwClassificationObjects.idl:228
BSTR get2DConnectionLabelSymbolName(EwErrorCode *errorCode)
Get a classification 2D Connection Label SymbolName.
IEwClassX findEwClassByID(LONG lClassId, EwErrorCode *errorCode)
Get EwClassX find by id in current classification.
LONG getID(EwErrorCode *errorCode)
EwErrorCode set2DConnectionLabelSymbolName(BSTR str2DConnectionLabelSymbolName)
Set a classification 2D Connection Label SymbolName.
LONG getEwClassCount(EwErrorCode *errorCode)
Get number of class in this classification.
EwErrorCode set2DFootprintSymbolName(BSTR str2DFootprintSymbolName)
Set a classification 2D Footprint SymbolName.
EwClassificationType getClassificationType(EwErrorCode *errorCode)
Get classification's type.
VARIANT getEwClassArray(EwErrorCode *errorCode)
Get the classification's class array.
BSTR get3DPartName(EwErrorCode *errorCode)
Get a classification 3d part name.
EwClassificationType getType(EwErrorCode *errorCode)
Get an EwClassificationType enumeration type.
EwErrorCode moveClass(long lClassId, long lClassIdParent)
Move a class in the classification (change parent).
EwErrorCode set3DPartName(BSTR str3DPartName)
Set a classification 3d part name.
BSTR get2DFootprintSymbolName(EwErrorCode *errorCode)
Get a classification 2D Footprint SymbolName.
IEwClassX newEwClass(EwErrorCode *errorCode)
Create a new node in electrical classification.
This interface is a generic interface for environment object methods.
Definition: EwObjectBaseObjects.idl:307
This interface is a generic interface for standard object methods.
Definition: EwObjectBaseObjects.idl:97


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/EwClassificationObjects.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) 2024 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.