automatic diagramming tool

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

automatic diagramming tool

Postby Thierry Beigbeder » Thu May 24, 2007 5:34 am

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
Thierry Beigbeder
 
Posts Rating:

Re: automatic diagramming tool

Postby Martynas Lelevicius » Fri May 25, 2007 6:12 am

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
>

Martynas Lelevicius
 
Posts Rating:

Re: automatic diagramming tool

Postby Thierry Beigbeder » Wed Jun 13, 2007 9:17 am

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
Thierry Beigbeder
 
Posts Rating:

Re: automatic diagramming tool

Postby Martynas Lelevicius » Thu Jun 14, 2007 3:42 am

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

Martynas Lelevicius
 
Posts Rating:


Return to Programmatic Extendibility

Who is online

Users browsing this forum: No registered users and 1 guest