SOLIDWORKS PDM Professional API Help | Send Feedback
GetFirstChildPosition2 Method (IEdmReference7)
See Also

Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++/CLI

EPDM.Interop.epdm Namespace > IEdmReference7 Interface : GetFirstChildPosition2 Method (IEdmReference7)

Visual Basic
C#
C++/CLI

pbsProjectName
  Project name (see Remarks)

bIsTopParent
  True if this is the topmost node in the reference tree, false if not

bPermitReadLocal
  True to allow SOLIDWORKS PDM Professional to read reference information if it is not already present in the database, false to disallow SOLIDWORKS PDM Professional to read reference information if it is not already present in the database

lEdmRefFlags
  Types of references that you want enumerated as defined in EdmRefFlags

lVersion
  Version for which to get references; use 0 for latest version

Obsolete. Superseded by IEdmReference9::GetFirstChildPosition3.

# Syntax

Visual Basic |
--- | ---
    Function GetFirstChildPosition2( _
       ByRef pbsProjectName As System.String, _
       ByVal bIsTopParent As System.Boolean, _
       ByVal bPermitReadLocal As System.Boolean, _
       ByVal lEdmRefFlags As System.Integer, _
       Optional ByVal lVersion As System.Integer _
    ) As IEdmPos5

C# |
--- | ---
    IEdmPos5 GetFirstChildPosition2(
       out System.string pbsProjectName,
       System.bool bIsTopParent,
       System.bool bPermitReadLocal,
       System.int lEdmRefFlags,
       System.int lVersion
    )

C++/CLI |
--- | ---
    IEdmPos5^ GetFirstChildPosition2(
    &   [Out] System.String^ pbsProjectName,
    &   System.bool bIsTopParent,
    &   System.bool bPermitReadLocal,
    &   System.int lEdmRefFlags,
    &   System.int lVersion
    )

#### Parameters

pbsProjectName
  Project name (see Remarks)
bIsTopParent
  True if this is the topmost node in the reference tree, false if not
bPermitReadLocal
  True to allow SOLIDWORKS PDM Professional to read reference information if it is not already present in the database, false to disallow SOLIDWORKS PDM Professional to read reference information if it is not already present in the database
lEdmRefFlags
  Types of references that you want enumerated as defined in EdmRefFlags
lVersion
  Version for which to get references; use 0 for latest version

#### Return Value

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

# 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 returned by this method to IEdmReference5::GetNextChild to continue 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

####

IEdmReference7 Interface
IEdmReference7 Members

# Availability

SOLIDWORKS PDM Professional 2010