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 hashes)

Uploaded Source

Supported by

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