ArchiMate Viewer
VS Code extension that opens Open Group ArchiMate Model Exchange XML and native Archi .archimate files, and renders the diagram with pan/zoom.
This is a viewer, not a modeler.
The extension also ships ArchiGPT, a Copilot Chat custom agent (ArchiGPT.agent.md) registered with contributes.chatAgents. After installing the extension, pick ArchiGPT from the chat agents dropdown. It writes Open Group exchange XML this viewer can parse: view/diagram by tag (no xsi:type="Diagram" required), sibling <node> boxes with relationship <connection> arrows (not nested-in-box layout), identifier/xsi:type on elements, and <relationship source="…" target="…"/> as attributes (never nested <source>/<target> children). Example output: samples/archigpt-agent.xml.
Wheel to zoom, drag the canvas to pan, use the toolbar to fit or switch views.
ArchiMate coverage
Parses Open Group ArchiMate 3.x Model Exchange XML (http://www.opengroup.org/xsd/archimate/3.0/): every ArchiMate 3 element type, every relationship type (source/target attributes), diagram view/node/connection/Label/Container/Line, organizations, properties, property definitions, viewpoints, styles, attachments, bendpoints, and model metadata. xsi:type="Diagram" is not required. A file with no diagrams is still drawn from its organization tree (or from all elements and relationships). Archi .archimate models are read too (folders, elements, relationships, ArchiMate views with groups, notes, view references, colours, fonts and relative bendpoints; sketch and canvas views are skipped). Deleting and re-pointing arrows writes valid Archi XML back, keeping sourceConnection nesting and targetConnections in sync. In exchange XML, model elements nested inside another element box are drawn as separate boxes with relationship arrows (not both nesting and an arrow). In .archimate files the saved layout is kept as is; only boxes that an outside edit (e.g. ArchiGPT) newly nests inside an element box are moved out, connected with an arrow, and written back to the file. Visual grouping containers (layer frames without an elementRef) stay as frames, and a Grouping element is always drawn as a box around its members: related boxes are pulled inside it and Grouping-to-member arrows are hidden. Grabbing an element shows its ArchiMate type next to the pointer.
Elements: Business, Application, Technology, Physical, Motivation, Strategy, Implementation & Migration, plus Grouping, Location, and Junctions. Shapes follow ArchiMate aspect conventions (square = active structure, rounded = behavior, folded corner = passive structure, ellipse/bevel = motivation, 3D box = nodes/devices). Layer colours match the usual Archi palette.
Fixtures: samples/full-exchange.xml (diagram constructs), samples/organization-only.xml (no diagrams), samples/all-element-types.xml (every 3.0 element type).
Relationships (full exchange set):
| Type |
Line |
Ends |
| Association |
solid |
none, or open arrow if directed |
| Assignment |
solid |
filled circle at source |
| Realization |
dashed |
open arrow at target |
| Serving (Used-By) |
solid |
open arrow at target |
| Access |
dotted |
open arrow: Write → target, Read → source, ReadWrite → both |
| Influence |
dashed |
open arrow at target (optional +/- modifier) |
| Triggering |
solid |
filled arrow at target |
| Flow |
dashed |
filled arrow at target |
| Specialization |
solid |
open triangle at target |
| Composition |
solid |
filled diamond at source |
| Aggregation |
solid |
open diamond at source |
Unknown types fall back to a labelled rectangle / solid connector.