Hide Table of Contents
GetAttachedEntities Method (ISketchBlockInstance)

Gets the entities to which this block instance is attached.

.NET Syntax

Visual Basic (Declaration) 
Function GetAttachedEntities( _
   ByRef Entities As System.Object, _
   ByRef EntityTypes As System.Object _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As ISketchBlockInstance
Dim Entities As System.Object
Dim EntityTypes As System.Object
Dim value As System.Boolean
 
value = instance.GetAttachedEntities(Entities, EntityTypes)
C# 
System.bool GetAttachedEntities( 
   out System.object Entities,
   out System.object EntityTypes
)
C++/CLI 
System.bool GetAttachedEntities( 
&   [Out] System.Object^ Entities,
&   [Out] System.Object^ EntityTypes
) 

Parameters

Entities
Array of attached entities
EntityTypes
Array of longs or integers (see Long vs. Integer) of the types of attached entities (see Remarks)

Return Value

True if the entities are retrieved, false if not

Remarks

The arrays returned by this method can contain one or more different object and type.

 

Possible returned Entities

Possible returned EntityTypes

IFace2

swSelFACES

IEdge

swSelEDGES

IVertex

swSelVERTICES

ISketchSegment

swSelSKETCHSEGS

ISketchPoint

swSelSKETCHPOINTS

 

A block instance that was inserted with a leader attached to an entity remains attached to that entity even if the leader is hidden. If the leader is shown again later on, the leader still points to the entity and the block instance is still properly associated with the entity.

 

See Also

Availability

SolidWorks 2007 SP2, Revision Number 15.2


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:   GetAttachedEntities Method (ISketchBlockInstance)
*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) 2013 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.