如何在Enterprise Architect中自动生成HTML输出 [英] How to automate the generation of HTML output in Enterprise Architect

查看:1873
本文介绍了如何在Enterprise Architect中自动生成HTML输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Enterprise Architect有一种在HTML / RTF / etc下生成文档的方法。您可以发布,但您必须使用其GUI手动执行。当您在CVS / Subversion服务器中具有* .eap文件时,有一个脚本可以每天检查最新版本并将其发布到Web服务器中。只要我知道,EA没有为此目的的命令行实用程序。我发现你可以自动化几乎任何东西使用它的COM接口,但这意味着有必要写一个小程序来做到这一点。关于最简单/最干净的方法的任何想法(如果可能的话,不必编写代码)?

Enterprise Architect has a way to generate the documentation in HTML/RTF/etc. that you could publish, but you have to use its GUI to do that manually. When you have your *.eap files in a CVS/Subversion server, it would be useful to have a script that would check out daily the latest version and publish it in a web server. As long as I know, EA doesn't have a command line utility for this purpose. I found that you can automate almost anything using its COM interface, but that means it's necessary to write a small program to do that. Any ideas about the easiest/cleanest way to do that (without having to write code, if possible)?

推荐答案

害怕你需要写一些代码,但它不应该多于十几行。你想要调用的函数是Project.RunHTMLReport() - 在EA帮助文件中快速搜索RunHTMLReport将告诉你它需要什么参数,在Sparx网站论坛上搜索你会发现一两个。

I'm afraid you will need to write some code, but it shouldn't be more than a dozen lines or so. The function you will want to call is Project.RunHTMLReport() - a quick search for "RunHTMLReport" in the EA help file will tell you what parameters it needs, and a search on the Sparx website forum will find you an example or two.

这篇关于如何在Enterprise Architect中自动生成HTML输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆