Book a Demo

Author Topic: Selecting and laying out elements (automation)  (Read 2856 times)

Michael Barker

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Selecting and laying out elements (automation)
« on: December 02, 2008, 06:29:18 am »
Hi,

I have an Add-In which currently adds some elements to a diagram.  I would like to be able to select these elements and lay them out using the automation interface.

I have looked at the documentation on the Diagram.SelectedObjects collection it states
Quote
and add elements to the collection by passing the Object ID as a name to select them.
 Is there some sample code for this?  What is "Object ID" is it the instance id of the Diagram Object or something else.  There doesn't appear to be a field of ObjectID on any of the relevant classes.

How do I call the "Layout Selected Objects" functionality?

Regards,
Michael Barker.
« Last Edit: December 02, 2008, 06:29:44 am by mikeb01 »