Skip to main content

Package for work with MS Visio VDX files

Project description

1. Install

pip install python_vdx

2. Workspace creation

from vdx.diagramm import Diagramm
from vdx.shapes import Point

dia = Diagramm(top=Point(1, 11))

Note: Point (1, 11) is default point. It points to the upper left corner of visio page. Also, you should remember that all objects craeted on the diagramm placed in accordance with the point. So, Shape(startPoint=Point(2, 0)) will be places at Point(3, 11).

3. Adding element on the diagramm

...
from vdx.shapes import EPCFunction  # EPCFunction is function object in ECP diagramm


## Add several "EPCFunction" objects with the same coordinates
dia.append_shape(EPCFunction())
dia.append_shape(EPCFunction())
dia.append_shape(EPCFunction())
dia.append_shape(EPCFunction())

4. Save the diagramm to a file.

....

dia.save('some_path_to_save.vdx')

Supported objects (at the moment only EPC objects are supported)

  • Function (EPC)

  • Event (EPC)

  • Organization Unit (EPC)

  • Information Material (EPC)

  • Main process (EPC)

  • Component (EPC)

  • Enterprise area (EPC)

  • Process group

  • XOR (EPC)

  • OR (EPC)

  • AND (EPC)

  • Dynamic connector (EPC)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_vdx-0.1.tar.gz (31.6 kB view details)

Uploaded Source

File details

Details for the file python_vdx-0.1.tar.gz.

File metadata

  • Download URL: python_vdx-0.1.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python_vdx-0.1.tar.gz
Algorithm Hash digest
SHA256 574e9987a7e0913aa49f44c13e3be2db572529d8a1e902e02c825500881b2336
MD5 1228ab970d134b77edae49ca889311f6
BLAKE2b-256 a9faa68376db183f71c99b358c1e57eaf5a2cc95f1f941f829094539e0921275

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page