How to access folder by the folder ID?

How to access folder by the folder ID?

Anonymous
Not applicable
1,056 Views
2 Replies
Message 1 of 3

How to access folder by the folder ID?

Anonymous
Not applicable

I have an ACW.file object which has a folderID(long) property.  How can this folder be reached by its folderID?

I was looking for something like:

dim fol as acw.folder= new acw.folder(folderID) 

then all properties of this folder an be accessed with something like: 

dim FolderName as string = fol.name

etc.

Or do I have to loop through the whole array of acw.groups()?   Which I don't hope so, can take a long time I tink.

 

Best regards,

Maarten Weers

 

0 Likes
Accepted solutions (1)
1,057 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

corrcetion:

 

Or do I have to loop through the whole array of acw.folders()?   Which I don't hope so, can take a long time I tink.

0 Likes
Message 3 of 3

sajith_subramanian
Autodesk Support
Autodesk Support
Accepted solution

Hi @Anonymous ,

 

To get folder by its ID, you can use the DocumentService.FindFoldersByIds() API.

 

Regards,

Sajith


Sajith Subramanian
Autodesk Developer Network