getId()

Hello,

There is possibility to obtain identifiers of model elements using IModelElement.getId(). But I can’t find the way of obtaining model element if I know it’s id. Can I do it without iterating over all model elements?

Regards,
Jacek

Hello Jacek,

We will add this in Service Pack 1.

Best regards,
Jick

Hello,

I found this feature in SP1.
Great job, thank You.

Jacek

Hello Jacek,

You are right. We also prepared a sample for this one. Attached you can find the sample plugin.

The sample lets you do the following:

  1. Copy model’s ID (through the menu item of model’s popup menu)
  2. Find a model by ID (select Edit > Get Model by ID. Result will be printed in Message Pane)

To examine the get ID function, you may copy the id first, then re-open project and call Get Model by Id.

Best regards,
Jick
com.vp.plugin.sample.slp.zip