Book a Demo

Author Topic: Import and draw relationdiagram  (Read 4215 times)

BMWTouring

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Import and draw relationdiagram
« on: March 29, 2013, 09:20:58 am »
I am new to writing Addins for EA. I do know how to program in C#, accept I will have to learn the EA objects and template.

But my question:
I have an Excel (or csv/xml) in which I have components which have relations. Now I want to import this file with an Addin and want to let EA make the Diagram based on the imported (structured) file. Als the relationships I want to be made at import. This with attributes or descriptions like: type of connection.

Is this possible and would someone get me started?

The next thing is that I want to import requirements with relations to components. But first things first...

Thanks in advance

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Import and draw relationdiagram
« Reply #1 on: March 29, 2013, 12:38:08 pm »
Sure you can do it, though it's not trivial to import relations via csv. Especially if you have many-to-many relations. But as a programmer you should be able to solve that.

EA has a (VB) script to import csv which you might extend or port to Cxx.

Now for the coding. Of course as a start I can recommend my Scripting book (see below). More stuff is to be found at Geerts blog (the link is also at the end of my book which you can download as preview).

q.

BMWTouring

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Import and draw relationdiagram
« Reply #2 on: March 30, 2013, 04:48:01 am »
I bought the book ;-) Hope you can help me if I still would have some questions.

Thanks for now!   :)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Import and draw relationdiagram
« Reply #3 on: March 30, 2013, 05:05:13 am »
Sure. You can post here or send me a mail. However, I hope the book is written in a way that you find most of the answers to your questions.

q,