Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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
-
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.
-
thank you! I will post code after implementation :)
-
Hi Kay,
Could you make what you want?
this code:
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é.
-
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.