Author Topic: Folder for a model elemnt  (Read 785 times)

ChampagnePerry

  • Member
  • **
  • Posts: 11
Folder for a model elemnt
« on: July 25, 2017, 18:22:28 PM »
Hi Just a quick question.
Does anyone know how archi knows which folder an element belongs in?
I know how it works in the toolbox but I don't know what makes it appear in the business or application folder.
I know it's probably obvious so I thought I'd ask rather than search for it. ???

Phil Beauvoir

  • Archi Guy
  • Hero Member
  • *****
  • Posts: 1501
  • Archi Guy
    • Archi
Re: Folder for a model elemnt
« Reply #1 on: July 25, 2017, 18:31:17 PM »
Code: [Select]
IArchimateModel model;
EObject object;

IFolder folder = model.getDefaultFolderForObject(object);
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate