Hide Table of Contents
ListExternalFileReferences2 Method (IModelDocExtension)

Gets the specified external file reference information for this part or assembly.

.NET Syntax

Visual Basic (Declaration) 
Sub ListExternalFileReferences2( _
   ByRef ModelPathName As System.Object, _
   ByRef ComponentPathName As System.Object, _
   ByRef Feature As System.Object, _
   ByRef DataType As System.Object, _
   ByRef Status As System.Object, _
   ByRef RefEntity As System.Object, _
   ByRef FeatCom As System.Object, _
   ByRef ConfigOptions As System.Object, _
   ByRef ConfigNames As System.Object _
) 
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim ModelPathName As System.Object
Dim ComponentPathName As System.Object
Dim Feature As System.Object
Dim DataType As System.Object
Dim Status As System.Object
Dim RefEntity As System.Object
Dim FeatCom As System.Object
Dim ConfigOptions As System.Object
Dim ConfigNames As System.Object
 
instance.ListExternalFileReferences2(ModelPathName, ComponentPathName, Feature, DataType, Status, RefEntity, FeatCom, ConfigOptions, ConfigNames)
C# 
void ListExternalFileReferences2( 
   out System.object ModelPathName,
   out System.object ComponentPathName,
   out System.object Feature,
   out System.object DataType,
   out System.object Status,
   out System.object RefEntity,
   out System.object FeatCom,
   out System.object ConfigOptions,
   out System.object ConfigNames
)
C++/CLI 
void ListExternalFileReferences2( 
&   [Out] System.Object^ ModelPathName,
&   [Out] System.Object^ ComponentPathName,
&   [Out] System.Object^ Feature,
&   [Out] System.Object^ DataType,
&   [Out] System.Object^ Status,
&   [Out] System.Object^ RefEntity,
&   [Out] System.Object^ FeatCom,
&   [Out] System.Object^ ConfigOptions,
&   [Out] System.Object^ ConfigNames
) 

Parameters

ModelPathName

Array of path names of externally referenced model documents

ComponentPathName

Array of path names of externally referenced assembly components

Feature

Array of in-context items (e.g., FeatureManager design tree sketches, features, and so on) that externally reference ModelPathName and ComponentPathName elements

DataType

Array of data types used to create RefEntity (e.g., arc, line, sketch plane, converted edge or face, converted or offset sketch entity, body, and so on)

Status

Array of statuses of the external references as defined by swExternalReferenceStatus_e

RefEntity

Array of actual items being used (FeatureManager design tree entities in the Feature parameter's external references) including the names of the documents that contain the items

FeatCom
Array of names of the components in which the affected Features exist; valid only if one or more RefEntity is in a different component in an assembly; not valid for derived parts
ConfigOptions

Array of configuration options as defined by swExternalFileReferencesConfig_e

ConfigNames
Array of configuration names and empty strings; configuration name when corresponding element of ConfigOptions array contains swExternalFileReferencesNamedConfig, empty string otherwise

Example

Remarks

This method conveniently collects the same information that is displayed when you right-click on a feature or component with { -> } at the end of its name in the FeatureManager design tree and select External References... from the context menu. 

The External References dialog displays the assembly or part name of the external reference, configuration if applicable, name of the feature in this document that has an external reference, status of the external reference, the entity in the external reference to which this feature or component points, and the data type of the external reference entity.

For more information, see the SOLIDWORKS user-interface help > Assemblies > Top-Down Design > External References > External References Dialog Box

The elements of the arrays returned by this method map one to one.

 

See Also

Availability

SOLIDWORKS 2021 SP01, Revision Number 29.1


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:   ListExternalFileReferences2 Method (IModelDocExtension)
*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.