SOLIDWORKS PDM Professional API Help Send Feedback
GetFirstFolderPosition Method (IEdmFile5)
See Also  Example
EPDM.Interop.epdm Namespace > IEdmFile5 Interface : GetFirstFolderPosition Method (IEdmFile5)


Starts an enumeration of the parent folders of this file.

Syntax

Visual Basic 
Function GetFirstFolderPosition() As IEdmPos5
C# 
IEdmPos5 GetFirstFolderPosition()
C++/CLI 
IEdmPos5^ GetFirstFolderPosition(); 

Return Value

IEdmPos5; position of the first parent folder

Example

Remarks

Files can be shared between several folders in SOLIDWORKS PDM Professional. Call IEdmFolder5::AddFileShared to share a file between several folders.

After calling this method to get the postion of the first parent folder in the list, call IEdmFile5::GetNextFolder to get the parent folders. 

C++ programmers not using smart-pointer wrapper functions must release the returned pointer to IEdmPos5.

See Return Codes for the complete list of potential success and error codes. The following are just a few examples:

  • S_OK: The method successfully executed.
  • S_FALSE: One of the arguments is invalid.
 

See Also

Availability

SOLIDWORKS PDM Professional Version 5.2