Get all terms of a project

Dear all, I’m facing the issue to get all existing terms of a project. I know how to get all other model elements but concerning terms it doesn’t work.
I tried
IModelElement[] existingTerms = project.toAllLevelModelElementArray(IModelElementFactory.MODEL_TYPE_TERM);
but w/o positive result.
Is there someone who knows what’s wrong?
Thanks for help

I just tried it out with my groovy scripting plugin, but had the same result. I have one idea, maybe it will help you: what if you ask for each model element, and filter it by type? Since VP uses interfaces, you can write some code like
Arrays.asList(allItems).stream().filter(item -> item instanceof Term).collect(Collectors.toList());

Dear Sandor, is this correct?
Thanks for your help, I tried it but w/o success; so I created a ticket and it had been forwarded it to the developers.

Hello, dgoebel.

Thank you for your reply. I’m sure our team will get back to you soon. But could you still let me know the ticket number so I can help you monitor the progress in order to resolve the issue faster?

Best regards.
Jick Yeung

Ticket No.: AFW-175-66851

Hi Dieter,

I am reviewing the most recent tickets being processed and found that ticket AFW-175-66851 is being answered by Rain Wong, my colleague. It seems that you received his reply as well.

Best regards,
Jick Yeung