Dxf creation from special format lists

Top  Previous  Next

It is possible to use Pointor to create DXFs by reading files which are not just point lists. The program reads a text file and creates a DXF file with points lines and circles. Contact me if you want more entity types.

 

Use the Extras menu, Text To Dxf Objects item...

 

Text-To-Dxf-Object

 

The format is one entity per line, the data within a line is separated using semicolons. Here is an example:

 

QWER0 ; 2DLINE ; 7.1 ; 7.2 ; 9.3 ; 8.9

 

So you have ID QWER0. It can be anything you want but must have no spaces and can be the same for all lines.

 

2DLINE tells the program what the entity coords define.

In the above example you have XSTART ; YSTART ; XEND ; YEND

 

Here is a complete list of line formats:

 

id ; 2DLINE;  x;  y;  x; y;

id ; 2DCIRCLE; x; y; radius;

id ; 2DPOINT; x; y;

id ; 3DLINE;  x;  y;  z ; x;  y;  z ;

id ; 3DCIRCLE; x; y; z; radius ;

id ; 3DPOINT; x; y; z

 

Comment lines start with a single quote, and empty lines are allowed.

 

Here is an example:

 

' Comment lines start with a single quote

' Empty lines are allowed, as shown by the following two empty lines

    

 

0124 ; 2DLINE;  0;  0;  10; 0;

2390 ; 2DLINE; 10;  0;  10; 8;

2390 ; 2DLINE; 10;  8;  0;  8;

2390 ; 2DLINE;  0;  8;  0;  0;

2390 ; 2DCIRCLE; 5; 4; 3;

6752 ; 2DPOINT; 5; 4;

 

' Start drawing the sides of the pyramid...

6752 ; 3DLINE;  0;  0;  0 ; 5;  4;  12.5 ;

6752 ; 3DLINE; 10;  0;  0 ; 5;  4;  12.5 ; 

6752 ; 3DLINE; 10;  8;  0 ; 5;  4;  12.5 ;

6752 ; 3DLINE;  0;  8;  0 ; 5;  4;  12.5 ;

086  ; 3DCIRCLE; 5; 4; 10; 1.5;

ZDAF ; 3DPOINT; 5; 4; 8

 

The resulting DXF file is shown here:

 

pyramid-example