Book a Demo

Author Topic: Failed to create new diagram in EA in C#.  (Read 3424 times)

jfm

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Failed to create new diagram in EA in C#.
« on: October 11, 2010, 09:47:30 am »
I was trying to write code to create diagram in a package. But when I was trying to call the update method, the diagram is added into EA, but my application just stopped. Anyone have any idea what might went wrong.

I was using C# by the way.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Failed to create new diagram in EA in C#.
« Reply #1 on: October 11, 2010, 04:16:21 pm »
Post the code and we might be able to help.

Geert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Failed to create new diagram in EA in C#.
« Reply #2 on: October 11, 2010, 04:36:27 pm »
What Geert said!

Also, be aware that you should test the value returned by .Update(). If it returns false, call .GetLastError() and see what went wrong.
The Sparx Team
[email protected]