Author Topic: DXF files too BIG  (Read 2199 times)

0 Members and 1 Guest are viewing this topic.

p789

  • Guest
DXF files too BIG
« on: May 10, 2012, 04:03:11 AM »
Hi,

I have a automatized system to create a DXF with hundred off pieces of a plane.

In AutoCAD 2012, now the DXF file have about 200KB, there is terrible for the hard disk in the server. The Piece is a lwpolyline with 5 to 10 vertex, no more.

I'm looking the solution for this problem.

Earlier version of AutoCAD have only 50kb to 100kb of size. The ir strong too. but 200KB there is very bad.

Now AutoCAD 2012, save in the file a lot information that I don't need, like "Preliminar View Thumbsvail", plotter settings, printter settings, ESCALELINETYPE styles, and a lot of fields 100, 300, Adbdcdict, etc... only for one POLILINE. Terrible.

I try many, many changes in 'enviroment options', only works to reduce a 50% the 'Deactivate preliminar view'.

I use _.dxfout and I have try all the variants, save as, etc...

The solutions at the moment is build with lisp, with my (dxf_out eName), to create my own DXF with the minimun section posible. Using (dxf_out (entlast))

And i have a little file like...
0
SECTION
0
ENTITIES
0
LWPLOLYLE
bla bla bla
O
ENDSEC
0
EOF

Now the file have only 1KB or minus.
The Sysadmin of the server now loves me.

The problem, now I can't open this DXF file in AutoCAD, it crash, or says 'need more information'.

But the software Lantek for the cutting machine, import de DXF file without problem.

Please, if you have similar problems and use other metod to solve, can you explain the solution.

Thanks

p789

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16816
  • Superior Stupidity at its best
Re: DXF files too BIG
« Reply #1 on: May 10, 2012, 10:58:22 AM »
Save the DXF as R12 version. The files will be considerably smaller.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

roy_043

  • Water Moccasin
  • Posts: 1825
  • BricsCAD 18
Re: DXF files too BIG
« Reply #2 on: May 10, 2012, 04:54:47 PM »
I think you can also -WBLOCK to DXF in Autocad:
The new drawing is saved in the file format that is specified in Save As on the Open and Save tab in the Options dialog box.
This would result in even smaller files.

In Bricscad you can create a DXF wblock with the -WBLOCK command by supplying a filename ending in ".dxf".

kruuger

  • Swamp Rat
  • Posts: 616
Re: DXF files too BIG
« Reply #3 on: May 11, 2012, 07:24:03 AM »
how about this ? 3 vertex poly.

0
SECTION
  2
ENTITIES
  0
POLYLINE
  8
0
 66
     1
 10
0.0
 20
0.0
 30
0.0
  0
VERTEX
  8
0
 10
4.7134982367689338
 20
6.5341984887469478
 30
0.0
  0
VERTEX
  8
0
 10
10.76472487105543
 20
6.5341984887469478
 30
0.0
  0
VERTEX
  8
0
 10
15.5555
 20
12.555
 30
0.0
  0
SEQEND
  8
0
  0
ENDSEC
  0
EOF


kruuger