It's all about the answers!

Ask a question

Get List of components by giving UUID of a Stream

Surya Raj (17116) | asked Apr 01 '16, 5:10 a.m.
Hello All,
  In my project, i had a situation where i need to retrieve all components by giving streamname as input.But stream name is not unique as it may have same Stream name in other project area also.So i tried to pass UUID (Item ID) to get list of components. But couldn't find out the possibilities. Could you please help me out to Components by giving UUID as input.

Thanks in advance.

Accepted answer

permanent link
Michele Pegoraro (1.8k12116103) | answered Apr 01 '16, 7:37 a.m.
 Hi, if you are using plain api you can get the IWorkspaceHandle from the UUID using IWorkspace.ITEM_TYPE.getItemHandle method. Then you can obtain the IWorkspaceConnection using the workspace manager object passing the workspace handle you obtained. Once you have the IWorkspaceConnection there is a method to get all the components.
Surya Raj selected this answer as the correct answer

Surya Raj commented Apr 01 '16, 8:43 a.m.

Thank you very much Michele, it really worked.

Your answer

Register or to post your answer.