Questions tagged [dxf]

DXF (Drawing Interchange Format, or Drawing Exchange Format) is a CAD data file format developed by Autodesk for enabling data interoperability between AutoCAD and other programs.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Insert image in a DXF file using pyqgis

I have created a DXF file using dxfWrite library with a plugin in QGIS. I want to know if it’s possible to insert an image using a function of dxfWrite library?
1
vote
0answers
24 views

Inserting image in DXF File with PyQGIS [closed]

I am using a DXFwrite library to create a DXF File using a plugin in QGIS. I tried to search in the official documentation of this library about adding or insert an image file into the DXF. Manually ...
2
votes
0answers
37 views
+100

Setting DXF colors via Fiona

One might expect that the "Color" CAD field would control this, but the driver doesn't allow it to be set. schema = {'Layer': 'str', 'Color': 'int'} with fiona.open(path, 'w', 'DXF', schema=schema) ...
1
vote
0answers
28 views

Unable to Merge Multiple .DXF Files and Output .DXF Using Merge Vector Layers

I'm using QGIS 3.8.3 with GRASS 7.6.1 to merge multiple .dxf files into a single .dxf file. When I attempt to use the Merge Vector Layers via Vector>Data Management tools>Merge Vector Layers, I get ...
1
vote
1answer
40 views

Export to DXF from Multipoint Z geometry in PostgreSQL using ogr2ogr

I want to export a PostgreSQL table of geometries in Multipoint Z to DXF using ogr2ogr I tried this command ogr2ogr -f "DXF" output.dxf PG:"host='127.0.0.1' port='5432' \ dbname='dbname' user='user'...
3
votes
1answer
60 views

Exporting attributes from QGIS to .dxf/dwg

I have a QGIS point layer with attributes in table. I want to export a layer with some of the attributes as a CAD block with attributes. Is it possible to do something like this?
2
votes
1answer
48 views

Read CRS from DXF/DWG in QGIS

I want to import DXF/DWG files in QGIS, therefore I use the import function. The problem is, that I have to know the crs of the CAD file. Is there any way to get the crs in QGIS, because I have no ...
1
vote
0answers
19 views

Importing 3D DXF and using LRS

I've got a dxf in AutoCAD with a different Z value in each vertex. I'm importing this dxf to QGIS and running the LRS plugin to work with some chainages. My problem is that when running the chainage ...
2
votes
2answers
68 views

Converting .dxf to .dgn using QGIS?

I am new to QGIS and am trying to convert a .dxf file to a .dgn file. This is my first time working with .dxf files so I'm not even sure what the difference is. Working with Version 3.8.1.
1
vote
0answers
42 views

Large offset between two identical vector layers

I want to have a dxf layer to overlay another layer. The dxf layer is already saved to a shapefile with the needed crs. The layer has a large offset and nothing happens when I set the crs to the ...
1
vote
0answers
52 views

Use pyQGIS to extract QGIS style as geometry in a DXF

I have a qgis point layer with a complex data driven style: This is the style without other layers: When exporting the layer as Dxf I would like to also export the style so the symbols are visible ...
0
votes
0answers
160 views

PyQGIS QgsDxfExport() not exporting Labels?

I'm using python to export all layers within each layer group out to a single DXF. Effectively replicating the Export Project to DXF... option in the Import / Export menu. The code exports all layers ...
0
votes
1answer
85 views

Converting DXF to KML with ogr2ogr

I want to convert DXF from AutoCAD to KML. It works but the coordinates don't come out right when I compare them to a KML produced with global_mapper and consequently it is shifted some when uploading ...
0
votes
0answers
30 views

Converting CorelDraw to AutoCAD?

I'm trying to convert cdr. (CorelDraw) to dxf. (AutoCad) for use in ArcMap, but new converted dxf file is not same as cdr. There is missing colors inside all polygons (polygons have only colored ...
0
votes
0answers
279 views

Convert shapefile to DXF using ogr2ogr?

I want to convert shapefile with/without EPSG Code to DXF format. I've tried following commands ogr2ogr -f DXF output.dxf -t_srs EPSG:2004 stations.shp ogr2ogr -f DXF output.dxf stations.shp But ...
1
vote
0answers
141 views

QGIS to .DXF export: labels do not appear

I have been trying to export a shp layer in QGIS 2.18 to dxf with some labels using the export to DXF tool included in QGIS, but somehow, the labels won't appear on the export. I have tried changing ...
0
votes
0answers
125 views

Convert DXF file to RasterLayer

I am an R user and have a .dwg file of city buildings that I wish to transform into a RasterLayer using the heights as elevation data. The metadata for the DXF file states: DXF File Metadata: ...
0
votes
0answers
83 views

Chinese encoding problem in ogr2ogr from DXF file to GeoJSON?

I have a dxf format file named test.dxf which has some Chinese characters inside. I tried to transform it to GeoJSON file using ogr2ogr -f GeoJSON test.geojson test.dxf and returned GeoJSON showing ...
1
vote
2answers
300 views

Importing a georeferenced DWG/ DXF into QGIS

I work in an ecological consultancy and we would save money on mapping tiles if we could import DWG files into QGIS, they must be georeferenced however as we need to draw on various habitats ...
0
votes
0answers
65 views

Using QGIS or GRASS API in custom application

I've already read in this link that is not possibile to use QGIS or other GIS application API (GRASS, ArcGIS) without rebuild all libraries into my custom code. First I would like to know if that ...
1
vote
0answers
135 views

Exporting from QGIS to .dxf as blocks?

I'm exporting from QGIS 3.4 to ACAD .dxf format. Since I made this in QGIS 2.18 all features exported were blocks in Autocad, but now I find out that every single geometry is exported exploded in the ....
0
votes
2answers
156 views

Font size in DXF export QGIS

I am trying to export our Property layer to DXF but am running into issues with labels. I have tried each of the three ways that I have seen described about DXF export, and none of them work for me. ...
1
vote
0answers
41 views

Export marker line to DXF [duplicate]

I was wondering if there is a way to export in DXF from QGIS (version 3.4.4) this type of line (The one with the "E" as a pattern). Here is how the line was created Currently, when I export this ...
0
votes
0answers
88 views

QGIS 3.4 export DXF creating incorrect polylines

The layers are exported to dxf on QGIS. When that is imported back to QGIS or visualise on AutoCAD, incorrect Polylines can be seen. Can you please help me to fix this?
1
vote
0answers
287 views

Èxport DXF from shapefile with layer styles in QGIS

I have Mastermaps 3 layers with layer styles on QGIS. This is exported with Project -> Import/ Export -> Export project to DXF with the following settings; However when this is imported to ...
1
vote
0answers
105 views

Creating polygon from DXF file using QGIS?

I want to create a polygon from a DXF file. I used v.in.dxf to convert the DXF file to GRASS vector map format. when I run the polygonize algorithm, it gives me the following error message(here I used ...
1
vote
1answer
197 views

Exporting symbols rather than points in .dxf

I have a map I've made in QGIS which is points from a .csv file. These have then be turned into different symbols based on what they represent and then the sizes of said symbols based on values in the ...
0
votes
1answer
52 views

arcpy memory error while using ExportCAD_conversion

I try to convert CSV point data to DXF CAD data. CSV file has about 270,000 points. I searched this issue and it is because ArcGIS is 32bit, and Background Processing Tool 64bit software is required ...
0
votes
1answer
235 views

Existing C++ libraries that convert ESRI shapefile to DXF/DWG [closed]

Is there any C++ library that can convert ESRI Shapefile to DXF/DWG file? I seek a link/or sample on how this can be done with the said C++ library. I'm aware that one can do this with ArcGIS ...
1
vote
1answer
27 views

Creating new layers and DXF export

I have a small .OSM map which has some rules set up based of whether it's deemed a primary road, secondary road, path etc. What I would like to do is branch each one of these out to its own layer for ...
0
votes
3answers
328 views

DXF export from QGIS is not exporting all features

I'm trying to export multiple layers from QGIS 2.18 to DXF format for opening in CAD. I am using the native DXF Exporter (Project -> DXF Export). Here are the parameters I'm setting: And the result ...
1
vote
0answers
46 views

CAD file creation in custom software

I've worked a little with basic exporting of CAD .DXF files from our software using GDAL. We want to do more sophisticated things, like importing and creating georeferenced files with multiple layers,...
1
vote
1answer
58 views

Error when trying to convert dxf to shapefile?

I m using QGIS 2.18. I am getting the following error when I try to convert dxf to shapefile. The other software like online convertor and arcgis give no errors in converting the same shapefile. The ...
4
votes
0answers
196 views

How to export “solid” 3D objects from QGIS to DXF?

I work in architecture and we often have to create urban contexts for our projects which involves obtaining a building footprint file and then extruding them by hand. I have attempted to use QGIS (v3....
1
vote
0answers
72 views

Export label to dxf from postgresql by ogr2ogr

I need to export label to dxf from postgresql by ogr2ogr command, label information is text field in PG, but it is always unsuccessful, I always lose the text label information. Those commands are ...
2
votes
1answer
386 views

Converting dxf to shp and keep elevation information QGIS

I want to create a QGIS plugin that convert dxf files to shp. I didn't use DXF2SHP plugin in QGIS because I have some specific needs. I'm using gdal_ogr library. dxfdat="*.dxf" shpLinestring="*.shp" ...
0
votes
1answer
230 views

Distortion when exporting from QGIS to DXF?

I'm rather new in the GIS world, and I'm having a weird problem that I have no idea how to solve. I received a GIS map and I wanted to export one of the layers as DXF; I selected the correspondent ...
1
vote
1answer
87 views

Too many features in QGIS DXF import: 1 Feature per Column

The company I work for do a considerable amount of field surveys, and export the data directly from the GPS (Leica GS08) to DXF files. Whenever I try to open a DXF file (with lines and points), the ...
1
vote
1answer
524 views

Convert shapefile into DXF file including Hebrew labels in QGIS 2.18

I try to convert this polygon shapefile into DXF including Hebrew labels (this is the QGIS screenshot): The data source encoding is UTF8 I opened the dxf file in AutoCad - but there no features in ...
0
votes
0answers
222 views

Formatting CSV file to export it as DXF?

I want to use this online converter to convert a csv file to a dxf file. The data I have in my database goes like this: | Point | Poligono | Name | Coords X | Coords Y | Level(Z) | |------...
1
vote
0answers
169 views

can you convert multiple shapefiles to a single dxf using ogr2ogr?

I would like to create a dxf from several shapefiles using ogr. The only way I can see to do this would be to create the dxf from one file and then convert the others to the same file using the append ...
1
vote
0answers
136 views

Getting Shaded relief from DXF mesh using QGIS?

I am stuck with a problem in QGIS. I have a three-dimensional mesh as DXF from AutoCAD, which I imported into QGIS. Now I wanted to create a shaded relief map. I think I need to create a raster from ...
1
vote
1answer
435 views

Exporting georeferenced image (jpeg, png) to .dxf file in QGIS?

Is it possible to export a georeferenced image, such as a jpeg with a world file, to a .dxf file using QGIS version 2.14.21? The resulting .dxf file would only be the georeferenced image with no ...
5
votes
3answers
932 views

Export DXF from QGIS layer using PyQGIS?

I want to export a DXF file from a QGIS layer. Sample code: dialog = QtGui.QFileDialog() dialog.setFileMode(QtGui.QFileDialog.Directory) dialog.setOption(QtGui.QFileDialog.ShowDirsOnly) ...
1
vote
1answer
81 views

Changing python code, to only import points from dxfs (or to only import lines)?

edit - This code no longer works in the new version of QGIS (QGIS 3.0) If I paste it into the python console it generates a series of requests for the CRS but then imports nothing. QGIS 3.0 has moved ...
1
vote
2answers
230 views

Batch import all vector types of hundreds of DXF files?

When importing dxfs, you get a window asking you to select vector layers to add. With all the dxfs I've imported so far, that has had two layers called entities, one of which is points and one of ...
2
votes
3answers
141 views

Export ArcGIS Feature Class to CAD produces overlapping polygons

I'm experiencing problems when exporting a polygon feature class: The original feature class has no overlapping polygons (as shown below, image 1), it's been topology checked, so no potential errors ...
3
votes
1answer
163 views

Add DXF text to shape as attribute

I have a DXF with text and I have a shapefile with some squares. Is it possible, in QGIS, to add the text from the DXF to a new column in the shapefile?
1
vote
1answer
184 views

Exporting a DXF file to be geolocated in QGIS

My cave survey freeware can export its cave map in DXF format, where XYZ coordinates are orthogonal meters from the origin station (0,0,0 by default). A user asks me to export this DXF so that it ...
1
vote
0answers
54 views

Overlay Text Generated in Illustrator Over Map And Export to KML in QGIS

I have some text that I generated in Illustrator, outlined, and then exported to a DXF. I need to assign spatial data so that I can export that DXF from QGIS to KML with correct lat/lon coordinates. ...