Hide Table of Contents
SOLIDWORKS Electrical API  2021.0.0
Electrical API
EwProjectEntity3DObjects.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 "EwProjectManufacturerPartObjects.idl";
12 import "EwProjectLocationObjects.idl";
13 
18 [
19  object,
20  uuid(6c084ea8-1fcf-11e5-b5f7-727283247c7f),
21  dual,
22  oleautomation,
23  nonextensible,
24  helpstring("IEwProjectEntity3DX Interface"),
25  hidden,
26  pointer_default(unique)
27 ]
29 {
30 
31  /*
32  * Set the associated 3DObject ID
33  * param[in] strID ID of the associated 3D Object
34  * \return EwErrorCode enum type, can be:
35  * \li EW_NO_ERROR if no error detected
36  * \li EW_UNDEFINED_ERROR if another error occurred
37  */
38  EwErrorCode set3DID (BSTR strID);
39 
40 
41  /*
42  * Set the associated 3DObject ID
43  * param[in] lFileID ID of file associated 3D Object
44  * \return EwErrorCode enum type, can be:
45  * \li EW_NO_ERROR if no error detected
46  * \li EW_UNDEFINED_ERROR if another error occurred
47  * \li EW_INVALID_ID the ID is not associated to any object
48  */
50 
51 
60 
61 
69  BSTR get3DID (EwErrorCode* errorCode);
70 
71 
79  LONG getEwObjectID (EwErrorCode* errorCode);
80 
81 
82  /*
83  * Set the Object ID
84  * param[in] lID ID of the object
85  * para[in] eEntity3DType Type of the entity. If unknown, the tye will be automatically searched with a performance penalty
86  * \return EwErrorCode enum type, can be:
87  * \li EW_NO_ERROR if no error detected
88  * \li EW_UNDEFINED_ERROR if another error occurred
89  * \li EW_INVALID_ID the ID is not associated to any object
90  */
91  EwErrorCode setEwObjectID (LONG lID, EwEntity3DType eEntity3DType);
92 
93 
101  LONG getEwProjectFileID (EwErrorCode* errorCode);
102 
103 
104  /*
105  * Suppress the entity3D inside the current project. Changes object type to "suppressed" one.
106  * \return EwErrorCode enum type, can be:
107  * \li EW_NO_ERROR if no error detected
108  * \li EW_UNDEFINED_ERROR if another error occurred
109  * \li EW_INVALID_ID Object type wrong or cannot be suspended.
110  */
112 
113 
114  /*
115  * Resume suppressed entity3D inside the current project. Reverts "suppressed" object type.
116  * \return EwErrorCode enum type, can be:
117  * \li EW_NO_ERROR if no error detected
118  * \li EW_UNDEFINED_ERROR if another error occurred
119  * \li EW_INVALID_ID Object type wrong or object not found.
120  */
122 
123 
124  /*
125  * \return True if the entity has one of suppressed types
126  */
127  BOOL isSuppressed ();
128 
129 };
130 
135 [
136  object,
137  uuid(d8eb2100-23ba-11e5-b696-feff819cdc9f),
138  dual,
139  oleautomation,
140  nonextensible,
141  helpstring("IEwProjectEntity3DManagerX Interface"),
142  hidden,
143  pointer_default(unique)
144 ]
145 interface IEwProjectEntity3DManagerX : IDispatch{
149  LONG getCount ();
150 
151 
157 
158 
168 
169 
179  IEwProjectEntity3DX findEwProjectEntity3DBy3DID (BSTR strID, LONG lFileID , EwErrorCode* errorCode);
180 
181 
186 
187 
199  VARIANT getChildrenEwProjectEntity3DArray (BSTR str3DID, LONG lFileID , EwErrorCode* errorCode);
200 
201 };
Use this interface to manage an Entity3D inside a project.
Definition: EwProjectEntity3DObjects.idl:29
Use this interface to manage EwProjectEntity3D objects.
Definition: EwProjectEntity3DObjects.idl:145
BSTR get3DID(EwErrorCode *errorCode)
return the 3D ID
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
LONG getEwObjectID(EwErrorCode *errorCode)
return the object ID
This interface is a generic interface for standard methods.
Definition: EwObjectBase.idl:26
IEwProjectEntity3DX findEwProjectEntity3DBy3DID(BSTR strID, LONG lFileID, EwErrorCode *errorCode)
Return an IEwProjectEntity3DX according to a 3D ID.
IEwProjectEntity3DX newEwProjectEntity3D()
Create a IEwProjectEntity3DX object from the associated project.
EwErrorCode suppress()
LONG getEwProjectFileID(EwErrorCode *errorCode)
return the ID where the object is inserted
VARIANT getEwProjectEntity3DArray(EwErrorCode *errorCode)
return the array of IEwProjectEntity3DX
EwEntity3DType
All Entity 3D types.
Definition: EwEnumeration.idl:285
EwErrorCode resume()
EwErrorCode setEwProjectFileID(LONG lFileID)
EwErrorCode set3DID(BSTR strID)
EwEntity3DType getEwEntity3DType(EwErrorCode *errorCode)
return entity type of the entity
VARIANT getChildrenEwProjectEntity3DArray(BSTR str3DID, LONG lFileID, EwErrorCode *errorCode)
Get all the IEwProjectEntity3DX which are inserted as components or added as features inside the targ...
EwErrorCode setEwObjectID(LONG lID, EwEntity3DType eEntity3DType)
IEwProjectEntity3DX findEwProjectEntity3DByID(long lObjectID, EwErrorCode *errorCode)
return an IEwProjectEntity3DX according to an object ID


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/EwProjectEntity3DObjects.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) 2021 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.