Hide Table of Contents
HasRightsEx Method (IEdmFolder5)

Gets whether the user has the specified rights for the specified file in this folder.


Visual Basic (Declaration) 
Function HasRightsEx( _
   ByVal lRights As System.Integer, _
   Optional ByVal lFileID As System.Integer _
) As System.Boolean
System.bool HasRightsEx( 
   System.int lRights,
   System.int lFileID
System.bool HasRightsEx( 
&   System.int lRights,
&   System.int lFileID


Combination of EdmRightFlags bits
Optional ID of file on which to check lRights; 0 or null to check lRights on this folder only

Return Value

True if the user has all of the specified permissions, false if the user is missing one or more of the specified permissions



This method takes into account both the rights set explicitly on the user and those inherited from groups of which the user is a member. Optionally, you can specify the ID of a file for which to check rights. In that case, the rights-check includes workflow rights set on the current status of the file. If no file ID is specified, or it is 0, the rights-check is performed only on this folder.

Note: This method is only available in SOLIDWORKS Enterprise PDM Version 5.3 and later. If the program must have backward compatibility with SOLIDWORKS Enterprise PDM 5.2, use IEdmFolder5::HasRights instead.

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: The user lacks one or more of the specified rights.

See Also


SOLIDWORKS Enterprise PDM Version 5.3

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:   HasRightsEx Method (IEdmFolder5)
*   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.