Hide Table of Contents
SOLIDWORKS Electrical API 2025.0.0
Electrical API
EwObjectBaseObjects.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 "EnumDefinition.idl";
11import "EwUtilDefinition.idl";
12
17[
18 object,
19 uuid(4BEFA3CF-0657-4F35-8D49-08187F228849),
20 dual,
21 nonextensible,
22 helpstring("IEwObjectDispatchX Interface entry point"),
23 pointer_default(unique)
24]
25interface IEwObjectDispatchX : IDispatch
26{
27
28
29};
30
35[
36 object,
37 uuid(3F803C11-84E4-4EDE-8FD9-65C88428E7CA),
38 dual,
39 nonextensible,
40 helpstring("IEwObjectBaseX Interface use for standard interface"),
41 pointer_default(unique)
42]
44{
58
59
68 EwErrorCode remove ();
69
70
79
80
81
82};
83
88[
89 object,
90 uuid(8AFB386E-A00F-49FC-B59F-CFAE939A7000),
91 dual,
92 nonextensible,
93 helpstring("IEwObjectX Interface use for standard object interface"),
94 pointer_default(unique)
95]
97{
101 LONG getID ();
102
103}
104
109[
110 object,
111 uuid(9D8ACD2A-AA11-4921-AE3C-1F35EF38DA2E),
112 dual,
113 nonextensible,
114 helpstring("IEwProjectTagObjectX Interface"),
115 pointer_default(unique)
116]
118{
128 EwErrorCode setUserData (LONG nUserDataNumber , BSTR strValue);
129
130
140 BSTR getUserData (LONG nUserDataNumber , EwErrorCode* errorCode);
141
142
154 EwErrorCode setTranslatedData (LONG nUserDataNumber , BSTR strLanguage, BSTR strValue);
155
156
168 BSTR getTranslatedData (LONG nUserDataNumber , BSTR strLanguage, EwErrorCode* errorCode);
169
170
179 BSTR getTag (EwErrorCode* errorCode);
180
181
192 EwErrorCode setTag (BSTR strValue);
193
194
202 BSTR getTagRoot (EwErrorCode* errorCode);
203
204
213 EwErrorCode setTagRoot (BSTR strValue);
214
215
224
225
235
236
244 long getTagNumber (EwErrorCode* errorCode);
245
246
257
258
267
268
276 VARIANT_BOOL isTagUnique (EwErrorCode* errorCode);
277
278
291
292
305 BSTR getDescription (BSTR strLanguage, EwErrorCode* errorCode);
306
307
322 EwErrorCode setDescription (BSTR strLanguage, BSTR strDescription);
323
324};
325
330[
331 object,
332 uuid(79A98CB7-1882-4E3F-B57F-6BF49904A16C),
333 dual,
334 nonextensible,
335 helpstring("IEwEnvironmentObjectX Interface use for environment object interface"),
336 pointer_default(unique)
337]
339{
347 DATE getCreationDate (EwErrorCode* errorCode);
348
349
358
359
368
369
378 BSTR getModifiedBy (EwErrorCode* eErrorCode);
379
380
389 BSTR getCreatedBy (EwErrorCode* eErrorCode);
390
391
403 EwErrorCode setTranslatedData (LONG nUserDataNumber , BSTR strLanguage, BSTR strValue);
404
405
417 BSTR getTranslatedData (LONG nUserDataNumber , BSTR strLanguage, EwErrorCode* errorCode);
418
419};
420
421};
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:24
EwTagMode
All Mark mode type.
Definition: EwEnumeration.idl:821
EwCreatorType
All creator type.
Definition: EwEnumeration.idl:287
This interface is a generic interface for environment object methods.
Definition: EwObjectBaseObjects.idl:339
DATE getCreationDate(EwErrorCode *errorCode)
Get the creation date of the current object.
BSTR getTranslatedData(LONG nUserDataNumber, BSTR strLanguage, EwErrorCode *errorCode)
Get the value of a translated text.
BSTR getModifiedBy(EwErrorCode *eErrorCode)
Get the last user name that modified the current object.
EwErrorCode setTranslatedData(LONG nUserDataNumber, BSTR strLanguage, BSTR strValue)
Set the value of a translated text.
DATE getModificationDate(EwErrorCode *errorCode)
Get the last modification date of the current object.
EwCreatorType getEwCreatorType(EwErrorCode *errorCode)
Get the creator of the current object.
BSTR getCreatedBy(EwErrorCode *eErrorCode)
Get the user name that created the current object.
This interface is a generic interface for standard methods.
Definition: EwObjectBaseObjects.idl:44
EwErrorCode insert()
Insert the object inside the current project.
EwErrorCode update()
Update the object inside the current project.
This interface is the first entry point for the Object.
Definition: EwObjectBaseObjects.idl:26
This interface is a generic interface for standard object methods.
Definition: EwObjectBaseObjects.idl:97
LONG getID()
Generic interface for an object that belongs to a project.
Definition: EwObjectBaseObjects.idl:118
EwErrorCode setTagMode(EwTagMode eTagMode)
Set the mark mode of this object.
EwErrorCode setDescription(BSTR strLanguage, BSTR strDescription)
Set the description associated to the object.
BSTR getTag(EwErrorCode *errorCode)
Get the mark of this object.
IEwObjectX duplicate(EwErrorCode *errorCode)
Duplicate current project object.
long getTagNumber(EwErrorCode *errorCode)
Get the mark number of this object.
EwErrorCode setTagRoot(BSTR strValue)
Set the mark root of this object.
EwErrorCode setTag(BSTR strValue)
Set the mark of this object.
BSTR getTranslatedData(LONG nUserDataNumber, BSTR strLanguage, EwErrorCode *errorCode)
Get the value of a translated text.
VARIANT_BOOL isTagUnique(EwErrorCode *errorCode)
Returns true or false if mark is unique.
BSTR getUserData(LONG nUserDataNumber, EwErrorCode *errorCode)
Get user data of the object.
EwErrorCode setNextTagNumber()
Set the next number to have a unique mark.
EwErrorCode setUserData(LONG nUserDataNumber, BSTR strValue)
Set user data of the object.
EwErrorCode setTranslatedData(LONG nUserDataNumber, BSTR strLanguage, BSTR strValue)
Set the value of a translated text.
EwTagMode getTagMode(EwErrorCode *errorCode)
Get the mark mode of this object.
EwErrorCode setTagNumber(long lValue)
Set the mark number of this object.
BSTR getDescription(BSTR strLanguage, EwErrorCode *errorCode)
Get the description associated to the object.
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/EwObjectBaseObjects.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) 2025 SP2

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.