Hide Table of Contents
GetAttachedEntities2 Method (IAnnotation)

Obsolete. Superseded by IAnnotation::GetAttachedEntities3.

.NET Syntax

Visual Basic (Declaration) 
Function GetAttachedEntities2() As System.Object
Visual Basic (Usage) 
Dim instance As IAnnotation
Dim value As System.Object
 
value = instance.GetAttachedEntities2()
C# 
System.object GetAttachedEntities2()
C++/CLI 
System.Object^ GetAttachedEntities2(); 

Return Value

Array of objects

Example

Remarks

This method now supports all annotation types. See IAnnotation::GetType to determine the type of annotation.

The array returned by this function may contain one or more objects of varying type. To determine the corresponding object type in the IAnnotation::GetAttachedEntites2 array, see IAnnotation::GetAttachedEntityTypes. COM applications can use QueryInterface to obtain the specific object from the LPUNKNOWN pointer.

 

Object Type Object Returned
swSelFACES IFace2
swSelEDGES IEdge
swSelVERTICES IVertex
swSelSKETCHSEGS ISketchSegment
swSelSKETCHPOINTS ISketchPoint
swSelNOTHING NULL (annotation is dangling or unsupported)

You can associate annotations with some items not listed in the previous table (for example, origins). If this annotation is attached to one or more of those entities, then SOLIDWORKS returns a corresponding NULL in one of the array positions and IAnnotation::GetAttachedEntityTypes indicates the unsupported entity by returning a corresponding swSelNOTHING value. COM applications that call IAnnotation::GetAttachedEntityCount2 include the NULL value in the total count of associated entities.

Likewise, if an annotation has become disassociated from its geometry, then SOLIDWORKS returns a corresponding NULL in one of the array positions and IAnnotation::GetAttachedEntityTypes indicates the dangling item by returning a corresponding swSelNOTHING value.

If this annotation is not associated with any geometry (for example, a note without a leaderline), then SOLIDWORKS returns an empty array.

 

See Also

Availability

SOLIDWORKS 2004 FCS, Revision Number 12



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:   GetAttachedEntities2 Method (IAnnotation)
*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) 2015 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.