mmngreco
4/3/2018 - 1:17 PM

create plantUML

create plantUML

configurar el sistema para crear diagramas UML

  1. Descargar y descomprimir graphviz
  2. Instalar plugin en PyCharm PlantUML integtration
  3. crear variable del sistema GRAPHVIZ_DOT = <path>/graphviz-2.38/release/bin/dot.exe
  4. agregar al path la ruta a bin (creando variable de usuario Path): Path = %Path%;<path>/graphviz-2.38/release/bin/
  5. Reinicia PyCharm si aún esta abierto.

Alternativa usando conda

Atom:

  1. Instalar con conda install graphviz
  2. Instalar en atom el paquete https://atom.io/packages/plantuml-preview
  3. En los settings de plantuml-preview
  4. Añadir dot path: C:\Anaconda3\Library\bin\graphviz\dot.exe
  5. Añadir plantuml.jar path: path\to\plantuml.jar (download)

Pycharm

  1. Instalar con conda install graphviz
  2. Instalar plugin en PyCharm PlantUML integtration
  3. En los settings de PyCharm > Other Settigns > PlantUML
  4. Añadir Graphviz dot executable: C:\Anaconda3\Library\bin\graphviz\dot.exe

On windows with conda

conda install graphviz
pip install pylint
set GRAPHVIZ_DOT=%CONDA_PREFIX%\Library\bin\graphviz\dot.exe
set PLANTUML=%APPDATA%\plantuml.jar
set PATH=%PATH%;%CONDA_PREFIX%\Library\bin\graphviz\;%APPDATA%
java -jar %PLANTUML% -testdot
pyreverse -f ALL __init__.py -o png

On bash

conda install graphviz
pip install pylint
GRAPHVIZ_DOT=$CONDA_PREFIX/Library/bin/graphviz/dot.exe &&
PLANTUML=$APPDATA/plantuml.jar &&
PATH="$PATH:$CONDA_PREFIX/Library/bin/graphviz/:$APPDATA" &&
java -jar $PLANTUML -testdot
pyreverse -f ALL -o png module.py