Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Kai H. on April 06, 2011, 07:03:52 pm

Title: SysML Internal Block Diagrams
Post by: Kai H. on April 06, 2011, 07:03:52 pm
Good Morning,

I want to generate an SysML Internal Block Diagram that is looking like the one that appears, if one click on a Block in a SysML Block Definition Diagram and select "make composite". It is a little weird to describe that, so I post here the link to a screenshot:

http://khfg.de/public/supportanfrage.pdf

The pictures have a little german, but it is basically that what is described above, but the last red text is important, it says : "... and for that, the code is missing"  ;)

Thanks for your reply!

Kai
Title: Re: SysML Internal Block Diagrams
Post by: qwerty on April 06, 2011, 07:17:25 pm
You want to set the block programmatically to "Show Composite"?

In that case you have to tweak t_diagramobjects. Append the string SCD=1; to ObjectStyle of the according diagram object.

q.
Title: Re: SysML Internal Block Diagrams
Post by: Kai H. on April 14, 2011, 11:04:00 pm
thank you! I will post code after implementation :)
Title: Re: SysML Internal Block Diagrams
Post by: André Olivera on April 28, 2011, 06:21:39 pm
Hi Kay,

Could you make what you want?

this code:

Code: [Select]
ibdDiagram = (EA.Diagram)destElement.Diagrams.AddNew(destElement.Name + " from MDL file", "CompositeStructure");
does it turn the element composite? (ie. after I create the diagram with this parameters, can I access this diagram with double click in the element?)

where did you filnd this type: "CompositeStructure"?

Thanks a lot!

André.
Title: Re: SysML Internal Block Diagrams
Post by: André Olivera on April 28, 2011, 08:34:24 pm
Answering my question:

related topic (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1303404701/4#4)

When I create a diagram inside the element, this element dont be composite. Only after I click (advanced -> make composite) manually.

Probably in the version 9 of EA is possible make this automatically.