Book a Demo

Author Topic: Laying Out a Diagram by Using the Auto Interface  (Read 4024 times)

Brian L

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Laying Out a Diagram by Using the Auto Interface
« on: October 24, 2013, 03:34:23 am »
I am using the LayoutDiagramEx method to layout my diagrams.  
When using the LayoutStyle parameter, how do I insert multiple enumerations that I want to use.
I want to use these options:
lsCycleRemoveDFS
lsLayeringOptimalLinkLength
lsInitializeDFSIn
lsLayoutDirectionDown

Thank you for your help

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Laying Out a Diagram by Using the Auto Interfa
« Reply #1 on: October 24, 2013, 05:25:37 am »
Just try to add them: lsCycleRemoveDFS+lsLayeringOptimalLinkLength+lsInitializeDFSIn+
lsLayoutDirectionDown

That should work.

q.

Brian L

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Laying Out a Diagram by Using the Auto Interfa
« Reply #2 on: October 25, 2013, 01:19:00 am »
Thank you. That worked

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Laying Out a Diagram by Using the Auto Interfa
« Reply #3 on: October 25, 2013, 09:18:25 am »
Just be aware, if you accidentally add the same flag twice you'll end up unsetting it and setting something else instead.

The preferred operator is bitwise or, which is | in every language I can think of right now.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Laying Out a Diagram by Using the Auto Interfa
« Reply #4 on: October 25, 2013, 09:00:12 pm »
Well, in Pascal it's the keyword OR so I favored the plus operator.

q.