In the modern era of technical writing and system architecture, documentation often becomes static—images exported from one tool and pasted into another lose their context and agility. Visual Paradigm has revolutionized this workflow by integrating VPasCode directly into Visual Paradigm OpenDocs. This integration allows users to create, insert, and re-edit diagrams directly within the document interface, transforming static documentation into a living, breathing asset.
This tutorial explores the architectural concepts behind this integration, the workflow of “Diagram-as-Code,” and how to leverage this tool to create professional system models.
The Architecture: From Static Images to Living Code
Traditionally, the modeling workflow involved a disjointed process:
- Create a diagram in a desktop modeling tool (e.g., Enterprise Architect or Visual Paradigm).
- Export the diagram as a raster image (PNG/JPG) or vector file (SVG).
- Copy and paste the image into a documentation tool (e.g., Word, Confluence, or OpenDocs).
- When a requirement changes, the cycle repeats: edit the source, re-export, and re-paste.
VPasCode breaks this cycle by embedding the diagram definition directly into the document. Instead of storing a visual representation (pixels), the system stores the logic (code). When the document is rendered, the system parses this code and renders the diagram in real-time.
This approach offers several distinct advantages:
- Version Control Friendly: Text-based code can be easily diffed and merged in Git repositories.
- Searchable: You can search for specific nodes or attributes within the diagram code.
- Editable: As shown in the workflow below, the diagram is not a locked image but a live object that can be reopened and modified.
The Workflow: 5 Steps to Living Documentation
The process of integrating editable diagrams into OpenDocs is streamlined into five logical steps, ensuring a seamless experience for architects, developers, and technical writers.
Step 1: Open or Create a Page
Begin your documentation in Visual Paradigm OpenDocs. The interface is designed to be distraction-free, allowing you to focus on the narrative and the diagrams. You can create a new page or open an existing project.
Step 2: Create with Diagram-as-Code or AI
This is the core innovation. In the text editor, you can define a diagram using the VPasCode syntax or generate it via Visual Paradigm AI. VPasCode supports standard modeling languages, including PlantUML and Mermaid.
For example, to create a sequence diagram, you do not drag and drop boxes. You write the logic:
@startuml
Alice -> Bob: Login
Bob -> Auth: Validate
Auth -> Bob: OK
Bob --> Alice: Welcome
@enduml
Step 3: Choose from Many Diagram Formats
VPasCode is not limited to sequence diagrams. The system architecture supports a wide variety of modeling notations, including:
- Flowcharts: For business process modeling.
- Architecture (C4): For high-level system context.
- Mind Maps: For brainstorming and idea organization.
- ER Diagrams: For database schema design.
Step 4: Insert at the Cursor
Once the code is written, the system renders the visual representation instantly. You can insert this diagram at the current cursor position within your text document. The diagram becomes a native object within the OpenDocs page, respecting your document’s flow and typography.
Step 5: Re-edit Anytime
Unlike a static PNG, this diagram is fully editable. If you need to add a new step to your login process, simply double-click the diagram to open the code editor. Modify the code, and the visual representation updates automatically. There is no need to switch applications or export files.
Technical Syntax: PlantUML vs. Mermaid
VPasCode bridges the gap between two of the most popular diagramming languages. Understanding the syntax is crucial for mastering this tool.
PlantUML Syntax
PlantUML is a classic, robust language for UML diagrams. It is often preferred for its precise control over layout and UML compliance.
@startuml
left to right direction
actor Alice
actor Bob
Alice -> Bob : Login
Bob -> Alice : Welcome
@enduml
Mermaid Syntax
Mermaid is widely used in the developer community (especially within Markdown editors like GitHub). VPasCode supports this syntax natively.
graph TD
A[Start] --> B{Check}
B -->|Yes| C[End]
B -->|No| D[Retry]
Best Practices for Documentation
To maximize the effectiveness of VPasCode in OpenDocs, consider the following architectural and documentation best practices:
- Keep Diagrams Modular: Do not create a single massive diagram for the entire system. Break your system down into Context Diagrams, Component Diagrams, and Sequence Diagrams. This makes the code easier to maintain and the diagrams easier to read.
- Use Semantic Naming: In your code, name your nodes clearly (e.g., use
UserServiceinstead ofNode1). This improves readability when reviewing the code directly. - Leverage AI: If you are struggling to remember the exact syntax for a complex ER diagram, use the “Visual Paradigm AI” feature to generate the initial code, then refine it.
Conclusion
By integrating VPasCode into OpenDocs, Visual Paradigm has eliminated the friction between modeling and documentation. This system architecture empowers technical teams to create living documentation that evolves alongside the software it describes. Whether you are a software architect, a business analyst, or a technical writer, the ability to create, edit, and share diagrams without leaving your document is a game-changer for team collaboration.
- October 27, 2026













