Hide Table of Contents
GetFirstChildPosition Method (IEdmReference5)

Obsolete. Superseded by IEdmReference7::GetFirstChildPosition2.


Visual Basic (Declaration) 
Function GetFirstChildPosition( _
   ByRef pbsProjectName As System.String, _
   ByVal bIsTopParent As System.Boolean, _
   ByVal bPermitReadLocal As System.Boolean, _
   Optional ByVal lVersion As System.Integer _
) As IEdmPos5
IEdmPos5 GetFirstChildPosition( 
   out System.string pbsProjectName,
   System.bool bIsTopParent,
   System.bool bPermitReadLocal,
   System.int lVersion
IEdmPos5^ GetFirstChildPosition( 
&   [Out] System.String^ pbsProjectName,
&   System.bool bIsTopParent,
&   System.bool bPermitReadLocal,
&   System.int lVersion


Project name (see Remarks
True if this is the topmost node in the reference tree, false if not
True to allow SOLIDWORKS Enterprise PDM to read reference information if it is not already present in the database, false to disallow SOLIDWORKS Enterprise PDM to read reference information if it is not already present in the database
Version for which to get references; use 0 for latest version

Return Value

Position of the first file referenced by this file (see Remarks)


You should maintain and pass in a string, by reference, in this argument for all calls to this method in a reference tree. The project name can be allocated and returned by the topmost node in the tree and is used by its children.

Pass the position to IEdmReference5::GetNextChild to enumerate the referenced files.

C++ programmers not using smart-pointer wrapper functions must release the position.

Return code S_OK indicates that the method successfully executed.


See Also

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

Subject:   Feedback on Help Topics
Page:   GetFirstChildPosition Method (IEdmReference5)
*   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:


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

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.