This tag should be used for questions concerning the ezdxf Python package, a library of functions which may be used to read & manipulate DXF files.
Questions tagged [ezdxf]
92 questions
1
vote
1 answer
Matplotlib scaling an image when saving a converted dxf as PDF
I am currently converting a dxf drawing that I made, to a pdf drawing using the function described here: Python converting DXF files to PDF or PNG or JPEG. (I am also putting the code below)
The problem is, that when I convert to the pdf, the code…

Ian
- 151
- 1
- 3
- 9
1
vote
1 answer
Place dxf entities on mapbox and get coordinates of its like geojson of labs.mapbox.com/labs/dxf2geojson/dist/
Requirement:
I have to read dxf files entities which can be 2D building dimensions or road etc. Then i have to place it over the map and return the coordinates just like labs.mapbox.com export the coordinates as geojson like the data below export by…

Basit
- 862
- 1
- 12
- 30
1
vote
1 answer
Is there is any module to visualize dxf file in python?
I have searched dxf-related module to generate dxf with python and found ezdxf and geopandas, and drawSVG as similar case.
I failed to install geopandas for unknown reason and I install the rest two.
I want to know if there is any way to…

EJ Song
- 123
- 2
- 13
1
vote
1 answer
How to Install ezdxf file for Anaconda\Spyder version
I have used ezdxf module in python 2.4. Please guide some procedure for installing ezdxf in spyder verison 4.

Krishna
- 11
- 1
1
vote
1 answer
ezdxf and Matplotlib how to increase line thickness
I'm converting a DXF file to a PNG below, but I want to increase the line thickness.
The lines right now are approximately 1 pixel wide right now, I want to be able to make them 5 times as big.
I've tried soloutions from diffrent places…

JareBear
- 467
- 9
- 27
1
vote
0 answers
is there some way to fill wall line in this picture?
the original base file is dxf type floorplan.
above picture is result of layer filtering processing.
i want to using OpenCV but there is some problem.
is there any way to fill first picture like second image?
i don't have idea how to flood…

Bro K
- 43
- 7
1
vote
0 answers
Use custom font with ezdxf
I would like to write a text with a custom ttf on a dxf using ezdxf.
I tried using doc.styles.new('custom_font', dxfattribs={'font' : 'myFont.ttf'}) to load the ttf file (which is in the same folder as my script), but it doesn't work.
My…

Mickael Gerber
- 11
- 1
1
vote
1 answer
DXF generation using ezdxf: polyline containing spline fit points
I am developing a program, and one of the requirements is to take DXF as input. The input is limited to 2D case only. The program itself is in C++/Qt, but to test it I need some sample DXF input. The spline import is already implemented, the next…

Anatolijs Gorbunovs
- 69
- 8
1
vote
1 answer
Using ezdxf to extract HATCH details from BLOCK REFERENCES in dxf files
I tried to extract the HATCH entities along with their pattern types which are inserted in drawings as BLOCK REFERENCES using INSERT tag. The dxf drawing is https://drive.google.com/open?id=1SnGDaIh8XiMe0QKAQy1RXzpT-rLNcLk7
I used the following code…

Bhaskar Dey
- 113
- 6
1
vote
1 answer
How to get the tolerance of a dimension in a dxf file with exdxf?
I am trying to automatically get information from 2D dxf file. The dimension class has no property about tolerance like dxf.dimtm. Such property I can find is in the DXF type Dimstyle, but that is not what I want. I found such information in dxf…

蔡承佑
- 11
- 2
1
vote
1 answer
Python and ezdxf copying blocks
I have a dxf file with one or more blocks. How can I use ezdxf to read this dxf and copy a block to another dxf file?
This code does not work as expected:
dxf = ezdxf.readfile("blocks.dxf")
block_test = dxf.blocks.get('b_test')
dxf_test =…

techmos
- 11
- 2
1
vote
1 answer
Is it possible to use ezdxf to locate text on an existing layer?
I want to get multiple TEXT or MTEXT location information on a layer, but I don't know how.
Please give some advice.

leez
- 85
- 8
1
vote
1 answer
ezdxf : how to delete an entity
I am using the ezdxf package to postprocess DXF drawings.
Then, I convert the DXF to a SVG.
During the postprocessing, I need to delete some INSERT entitities that lie outside the drawing area so that the converted SVG has the right dimensions. I am…

FenryrMKIII
- 1,068
- 1
- 13
- 30
1
vote
1 answer
An error occurs when using ezdxf to describe the layer property description
An error occurs when using ezdxf to describe the layer property description.
There are layer names that cause errors and layer names that do not. I do not know the cause.
I tried using the code below.
lay = dwg.layers.get('MyLayerHere')
app =…

leez
- 85
- 8
1
vote
1 answer
How to turn off property print settings using ezdxf?
I want to know how to turn off the property print setting using ezdxf.
I can hide, freeze and lock on and off.
However, printing cannot be set on or off.
my_lines.on()
my_lines.off() # switch layer off, will not shown in CAD…

leez
- 85
- 8