![]() Please adjust the settings according to your own sytem and requirements. My setup is in a Windows environment with my specific requirements, so some specific steps might not work with your system.Java -jar C:\\TOOLS\\PlantUML\\plantuml.jar diagram.puml -o output -progress -config C:\\TOOLS\\PlantUML\\config\\nfig -DPLANTUML_LIMIT_SIZE=8192 -tpdf Notes: For customizing the output of the diagram provide the configuration file path: -config PATH_TO_CONFIG_FILE.For bigger/huge diagrams add this to command: -DPLANTUML_LIMIT_SIZE=8192.-progress shows diagram creation progress in the cmd/terminal.-tpdf creates a PDF of the diagram there are many other format options for exporting a diagram.-o output creates output folder in the same directory and created the pdf inside it.%plant_uml% is the enviroment variable name, you can replace this with path to plantuml.jar file.Java -jar %plant_uml% diagram.puml -o output -progress -tpdf Use following command to generate a pdf from the diagram: Open Command/terminal in smae directory as the source file The output files will be created in the out folder in the same directory as the diagram source file( *.puml) Using command line: Search >PlantUML: Export Current Diagram & select the same option.check diagram preview by pressing Alt+D.Using command line (allows complete customization of output diagram, slow and complex to use for beginners).This is a short tutorial on how to use PlantUML inside of VisualStudio Code with. Using vs code extension (allows quick diagram generation, no customized output) Install PlantUML as an extension of Visual Studio Code.you can refer to this site to check how PlantUML works:.add your required code for diagram in the file.Create a simple file with any of the extensions above.Associate following extensions to open in VS Code:.provides path to your latest extracted/downloaded jar file.allows custom color and diagram configuration for all digram when exporting. ![]() "jarArgs": "-config PATH_TO_CONFIG_FILE",.Open Preference Settings(JSON) in vscode and add following:.You can also add path to bin\dot.exe from Graphviz to env variable as GRAPHVIZ_DOT, makes it easy to export the diagrams into PDF.Add Plant UML jar path in system/env variables to access it easily anywhere.If not already done, add JAVA_HOME to system/env variables with path to \bin\java.exe, this step is mendatory. ![]() ![]() A Guide to setup and use Plantuml Requirements: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |