Page 1 of 1

automatic diagramming tool

PostPosted: Thu May 24, 2007 5:34 am
by Thierry Beigbeder
Hi
I am looking for a way to create automatically specific diagrams from
model information (stereotypes, locations, dependencies...). Is there a
possibility to reuse/extend the diagram wizard tool through the API? An
if not what is the recommended solution for handling diagrams with the API?

Best regards

--
Thierry Beigbeder

Re: automatic diagramming tool

PostPosted: Fri May 25, 2007 6:12 am
by Martynas Lelevicius
Hi,

Unfortunately diagram wizards are not accessible through Open API.
But you can add your own diagram (see sample at "<MagicDraw install
dir>openapiexamplesspecificdiagram") or create customized diagram through
main menu "Diagrams"->"Customize..."->"Create".

> if not what is the recommended solution for handling diagrams with the
> API?

Can you please explain what you mean by "handling diagrams" in this
situation?

Regards,
--
Martynas Lelevicius
Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363, LT-49425, Kaunas
P.O. box 2166, LT-44011, Kaunas
Phone: +370 37 324032 Fax: +370 37 320670
E-mail : marte
WWW: http://www.magicdraw.com

----- Original Message -----
From: "nntp://news.nomagic.com/nomagic.products.magicdrawuml.openapi"
<nobody-to-reply>
To: "Martynas Lelevicius" <marlel>
Sent: Friday, May 25, 2007 4:14 PM
Subject: automatic diagramming tool


> Hi
> I am looking for a way to create automatically specific diagrams from
> model information (stereotypes, locations, dependencies...). Is there a
> possibility to reuse/extend the diagram wizard tool through the API? An if
> not what is the recommended solution for handling diagrams with the API?
>
> Best regards
>
> --
> Thierry Beigbeder
>


Re: automatic diagramming tool

PostPosted: Wed Jun 13, 2007 9:17 am
by Thierry Beigbeder
Hi,
sorry the request was not very explicit. Handling would be
- populating diagrams with views related to some model elements,
- assigning those views some graphic properties,
- displaying some links between viewed elements,
- and executing automatic placement
(which is a very nice feature from MagicDraw).

Thanks,
--
Thierry Beigbeder

Re: automatic diagramming tool

PostPosted: Thu Jun 14, 2007 3:42 am
by Martynas Lelevicius
Hi,

There is special section about views (6 Presentation Elements) in MagicDraw
OpenAPI User manual (<MagicDraw install>/openapi/docs/MagicDraw OpenAPI
UserGuide.pdf).
Please read it, I think you'll find there the answers.
Also you can use DiagramPresentationElement.layout() method(s) for diagram
layout.

Regards,
--
Martynas Lelevicius
Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363, LT-49425, Kaunas
P.O. box 2166, LT-44011, Kaunas
Phone: +370 37 324032 Fax: +370 37 320670
E-mail : marte
WWW: http://www.magicdraw.com