Hide Table of Contents
IGetAttachedEntityTypes Method (IAnnotation)

Gets the types of all entities attached to this annotation.

.NET Syntax

Visual Basic (Declaration) 
Function IGetAttachedEntityTypes() As System.Integer
Visual Basic (Usage) 
Dim instance As IAnnotation
Dim value As System.Integer
 
value = instance.IGetAttachedEntityTypes()
C# 
System.int IGetAttachedEntityTypes()
C++/CLI 
System.int IGetAttachedEntityTypes(); 

Return Value

  • in-process, in-process, unmanaged C++: Pointer to an array of longs that indicate the types of all entities attached to this annotation as defined in swSelectType_e
  • VBA, VB.NET, C#, and C++/CLI: Not supported

     

    See In-process Methods for details about this type of method.

  • Remarks

    This method supports all annotation types. Use IAnnotation::GetType to determine the annotation type.

    This method returns an array of longs or integers indicating object types. The list of object types corresponds to the list of objects returned by IAnnotation::IGetAttachedEntities.

    You can associate annotations with additional items not listed in swSelectType_e. If this annotation is attached to one or more entities not listed in swSelectType_e, then this method and IAnnotation::GetAttachedEntityTypes return swSelNOTHING in a position in the array corresponding to the unlisted item. IAnnotation::IGetAttachedEntities indicates an unsupported entity by returning a null value in the position in the array corresponding to the unsupported entity. COM applications that call IAnnotation::GetAttachedEntityCount3 include the null value in the total count of associated entities.

    If an annotation is disassociated from its geometry (i.e., dangling), then IAnnotation::IGetAttachedEntities returns a null value in the position in the array corresponding to the dangling item, and this method returns swSelNOTHING in the position in the array corresponding to the dangling item.

    NOTE: If this annotation is not associated with any geometry, then this method and IAnnotation::IGetAttachedEntities return empty arrays.

     

    See Also

    Availability

    SOLIDWORKS 99, datecode 1999207


    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:   IGetAttachedEntityTypes 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) 2018 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.