IDs of Model Elements

Query 1:
ModelElement has 2 id properties: id and userID

  • id is not editable
  • userID is editable. You may enter your userID as your above appComponent.setUserID("123456789").

But, by default, Application Component won’t support userID.
You need to enable it via Project Options, as following:

Query 2:
It is newly supported in these few weeks, please reference to following post:

Query 3:
You may call:
DiagramManager.layout(diagram, DiagramManager.LAYOUT_ORGANIC)