Book a Demo

Author Topic: Composites through API.  :(  (Read 3141 times)

Chris Cortes

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Composites through API.  :(
« on: February 18, 2009, 03:40:50 pm »
Ugh, I'm at a loss, please help if you know...

I can't get composites to render properly, nor to click-through to their child diagrams. I've played with the order of object creation, update(), refresh(), etc.

Is this a bug in the API? Interestingly, the user docs specifically say that composite support IS provided by the API... LOL  ;D

If you or someone you know, has seen a working example of composite/diagram code, will you please post it? I don't care what language.

Thank you, thank you,
- Chris

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Composites through API.  :(
« Reply #1 on: February 19, 2009, 04:25:04 pm »
It's possible to read a composite diagram from automation, but unfortunately not so easy to set one at this time.

From my understanding, you need to set Element.Subtype = 8, and need to add a row to the [t_xref] table in the database to indicate the guid of the default sub-diagram, which is only possible through direct sql interaction (which you can do, but we can't officially support).