Book a Demo

Author Topic: Combined fragment  (Read 3313 times)

polytelysi

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Combined fragment
« on: October 21, 2012, 07:27:27 am »
Hello, I need to add an opt block to a bulk of diagrams. Some diagrams already have these, others do not. As a first step I would like to be able to read the fragment in script. Problem is I can get the diagram, the diagram object and the corresponding object for the combined fragment but, I cannot for the life of me find where the fragment type, name, operand or condition is kept. I have looked around the repository to no avail. I would strongly prefer to not have to go out to and work in XMI. Any insight would be greatly appreciated.

Thanks,
Kevin

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Combined fragment
« Reply #1 on: October 22, 2012, 08:55:41 am »
The type is in t_object.NType. For "opt" this has the value "1". Name is in t_object.Name. The operands are in the t_xref table.
The Sparx Team
[email protected]

polytelysi

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Combined fragment
« Reply #2 on: October 23, 2012, 03:51:47 pm »
That does the trick, thank you very much.