当前位置:网站首页>Drawing structure diagram with idea

Drawing structure diagram with idea

2022-06-26 03:01:00 chenweifu365

I wanted to use IDEA Of markdown Plug in and graphviz Direct drawing , As a result, Chinese garbled code could not be determined , In the end, I still use plantuml, Got rid of the Chinese garbled code .

This tutorial ends with IDEA Draw a structural diagram , rely on plantuml.

 Insert picture description here

First, provide a few possible links :

plantuml Draw online :http://www.plantuml.com/plantuml
graphviz Official website :http://www.graphviz.org
graphviz Draw online :http://magjac.com/graphviz-visual-editor/

Operation steps

One 、 install plantuml plug-in unit

First installation plantuml plug-in unit , After installation , The following contents can be found in the settings after restart :

 Insert picture description here

Two 、 Configure to use remote rendering

 Insert picture description here

Check remote rending that will do , But using this will use network rendering , Don't suggest , The tutorial will be updated when we find a way to render locally without garbled code


The default configuration is to use local rendering , Need to download graphviz, And set the local location . However, due to the problem of Chinese garbled code, it can not be adjusted well , Use remote rendering for now .

The default configuration is shown in the following figure ( I have chosen the local one here graphviz The path of ):

 Insert picture description here

3、 ... and 、 create a file , And render

1) newly build plantuml file
 Insert picture description here
2) Select file type

 Insert picture description here

Here you can choose from a variety of UML, No difference , But it will give you the default sample Syntax , friendly . Just choose any one for the experiment

3) Stick in the following code , You can get the picture at the beginning of the article

@startuml
graph room {
     Chen Yan -- Sarekin ;
     Chen Yan -- Chen Hai ;
     Chen Yan -- Chen Yang ;
     Sarekin -- Li Dakang ;
     Sarekin -- Gao Yuliang ;
     Sarekin -- Ji Changming ;
     Li Dakang -- Zhao Donglai ;
     The cello -- Qi Tongwei ;
     Qi Tongwei -- Chen Hai ;
     Qi Tongwei -- Chen Yang ;
     Qi Tongwei -- Hou Liangping ;
     Hou Liangping -- Cai Chenggong ;
     Hou Liangping -- Ji Changming ;
     Hou Liangping -- Zhong Xiaoai ;
     Gao Yuliang -- Hou Liangping ;
     Gao Yuliang -- Wuhuifen ;
     Gao Yuliang -- Gao Xiaofeng ;
     Zhao Lichun -- Zhao Ruilong ;
     Zhao Lichun -- Li Dakang ;
     Zhao Lichun -- Gao Yuliang ;
}
@enduml
原网站

版权声明
本文为[chenweifu365]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260219404411.html