Powerful modeling tool Dia

Source: Internet
Author: User
Tags xsl
Click to enter my new blog: http://www.sofee.cn/blog/

I have also used the DIA plotting software before, but I just didn't use it as a tool. Recently I found a uml2php5 plug-in that can generate PhP5 Code directly based on the UML diagram and Support Web Services! And for win edition!

Sample:

Generated PhP5 code:
<? PHP
/**
* Tool Library
* Code skeleton generated by dia-uml2php5 plugin
* Written by kdo kdo@zpmag.com
* @ Author Justin Wu (wenlong@php.net)
* @ License sow.license
* @ Copyright (c) 2004-2005 sofee development team. (http://www.sofee.cn)
*/

Class sofeeutil {

/**
* Obtain the Client IP Address
* @ Access public
* @ Return string
*/

Public final function getip (){

}

/**
* Get the directory size
* @ Access public
* @ Return integer
*/

Public final function getdirsize (){

}

}
?>

PS: the Web Services functions are powerful. You can find them by yourself :)

Installation Method:

1. Download required software:
Dia-http://dia-installer.sourceforge.net/
Uml2php5-http://uml2php5.zpmag.com/index.php

2. installation steps:
Unzip the dia-setup-0.94.zip and install it directly.
Unzip uml2php5-2.1.0.tar.gz and copy the dia-uml2php5.conf.xsl, dia-uml2php5.zx, dia-uml2phpsoap.zx, dia-uml-classes.zx, stylesheets. xml files to the DIA/XLST directory.
Dia-uml2php5.conf.xsl is uml2php5 configuration file, such as the definition of author, copyright, web services, etc., according to the comment inside should not be difficult to configure.

3. Bug solving:
1) This version of Dia will be suspended in windows. Solution: after the first operation, turn Dia off, and then set C:/Documents and Settings/yourname /. the DIA directory is deleted, and then the DIA is re-opened. Just draw a few images until they are re-generated. dia directory and related files until (during which Dia may be suspended, don't worry about it, just give it some time :-)).
2) After the default installation, it is unable to enter Chinese, so you need to modify the C:/program files/Dia/etc/gtk-2.0/gtkrc file, add font-name = "simsun" to the style.

Enjoy it!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.