le
 
MOSAIC OF VIEWPORTS AND PAPERSPACES IN DXF
It is useful when you do not have a laser cutting plotter!

 
vpm
Figure 1. Runnig vpm.sh
What is vpm.sh?

The file "vpm.sh" (viewport mosaic) is bash script used to generate python ezdfx code "code.py". The "ci.txt" is an initial code used to construct "code.py". Final file "mosaic.dxf" is generated automatically by python "code.py" and contains a DXF2000 file with all the paperspaces and viewports configured. Of course, you can also generate all the paper spaces and view ports manually, but when the matrix to be represented is large, there is a lot of work. This script does the work in seconds!

Use:

Run the bash script like:

./vpm.sh a b nc nr m1 m2 m3 m4

Where:
a= X-size of the paper (mm)
b= Y-size of the paper (mm)
nc= number of columns
nr= numer of rows (maximal allowed number rc x nr is 256)
m1= paper margin top (mm)
m2= paper margin right (mm)
m3= paper margin bottom (mm)
m4= paper margin left (mm)

Example:

./vpm.sh 210 297 10 8 0 0 0 0

Generates a matrix of 10x8 paper spaces size A4 portrait with internal viewport 0 mm margins.

Copy the contents of your print.dxf drawing into the empty "mosaic.dxf" file and display the paperspaces result. The next step is to automatically publish all paper spaces, using a PDF printer with the correct paper margins (.pc3 file) and the appropriate color style table (.ctb file). And that’s not always easy. You need some CAD delineation knowledge.

Notes:

1) Be sure you have installed in your GNU/Linux or UNIX compatible computer al least:
bash
python3.6
ezdfx

2) Run bash script:
./vpm.sh 210 297 10 8 0 0 0 0

3) Sometimes, bash, python, ezdxf may give some dependency issues... You need to make sure everything is working on your system. Otherwise, you can simply use some of the available preconfigured dxf files.

Download the scripts and all dxf example files here.

Ready to use dxf mosaics:

dxf template

Paper

X-size

Y-size

columns

rows

X-size

X-size

Sheets


 

mm

mm

   

m

m

 
A4-20x12.dxf

A4

210

297

20

12

4,2

3,564

240

A4-18x14.dxf

A4

210

297

18

14

3,78

4,158

252

A4-14x14.dxf

A4

210

297

14

14

2,94

4,158

196

A4-10x10.dxf

A4

210

297

10

10

2,1

2,97

100

A4-10x5.dxf

A4

210

297

10

5

2,1

1,485

50

A3-28x9.dxf

A3

297

420

28

9

8,316

3,78

252

A3-25x10.dxf

A3

297

420

25

10

7,425

4,2

250

A3-20x10.dxf

A3

297

420

20

10

5,94

4,2

200

A3-10x10.dxf

A3

297

420

10

10

2,97

4,2

100

A3-5x5.dxf

A3

297

420

5

5

1,485

2,1

25

All viewport margins set to 0.0, then set same values in your .pc3 file.

Have fun!

vpm
Figure 2. Example file mosaic.dxf

vpm
Figure 3. Layout 1-2

Mosaic 20x12
Figure 4. Mosaic 20 columns x 12 rows anb BHL5 panels. Autocad Map running in Ubuntu GNU/Linux.

index