Questions tagged [dxf]

DXF (Drawing Exchange Format) is a CAD data file developed by AutoDesk for interoperability between AutoCAD and other CAD applications.

320 questions
2
votes
1 answer

DXF ASCII to write multiple text strings

I can't seem to add multiple text strings to a DXF file. It works for when I only have a block of code for 1 line of text. I can't seem to add multiple lines. I created the code shown below. Any help would be very much appreciated.…
Zak
  • 41
  • 1
  • 5
2
votes
2 answers

dxf_input.py returns ZeroDivisionError when opening dxf file

I have a dxf file which I have exported from SolidWorks. I want to use Inkscape to open them up, modify them and send for laser cutting. However, when I open them I get this error: Inkscape has received additional data from the script…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
2
votes
1 answer

How to get/set application name in .dxf for Groupcode 1001?

I convert geodata (coordinates, attributes,...) to a dxf file. I write attributes into extended data, but under the group code 1001 there must be an application name. I tried to write "Test" and some other words in it, but nothing works. I receive…
Benjamin
  • 41
  • 2
2
votes
3 answers

How do I write a DXF code for a POLYLINE?

I´m trying to create a program based on C++ that calculates a function values on a given range and then the program proceeds to create a DXF file in order for it to be Graphed. The issue that I´m having it´s with the DXF part this is the code that…
JDelgado
  • 99
  • 1
  • 6
2
votes
1 answer

XDATA on a Programmatically Created DXF File

I have a small vb.net app that creates DXF files from scratch, containing polylines and some text objects. It is working as intented and does its job at the moment, making use of some "minimum dxf requirements" info I found online. As an upgrade for…
ububabu
  • 23
  • 3
2
votes
1 answer

AutoCAD - Save as DXF in Sub Folder

I found this code online to save a selection from an AutoCAD DWG into a DXF format in the project folder. I am not well versed in AutoLISP. What do I need to change to save all of these drawings in a subfolder called "CNC Parts"? ;save selection as…
2
votes
1 answer

Insert successively two dxf files as blocks does not work

I produced 2 dxf files named "EXPO CVX01.dxf" and "EXPO CVY01 TEST.dxf". Those files are the result of a transformation from a owner format to dxf format. click here to download a zip with those files I am using draftsight 2017 to insert those dxf…
pitivier
  • 23
  • 2
2
votes
1 answer

Importing svg/Dxf files to trimesh

I want to convert dxf/svg files to stl using trimesh. I installed cyassimp as indicated on Github page, however I stil lget the following error: File "C:\Users\X\AppData\Local\Programs\Python\Python35\lib\site-packages\trimesh\io\load.py", line…
edyvedy13
  • 2,156
  • 4
  • 17
  • 39
2
votes
1 answer

Change text line in a file by using Matlab

So I have to modify a .dxf file (an Autocad file) by changing some data in it for another one we choose previously. Changing some lines of a .txt file in Matlab is not pretty difficult. However, I cannot change a specific line when the new input's…
aorestr
  • 21
  • 2
2
votes
3 answers

how does dimension work in ezdxf

I'm making a project in which I need to draw several things into a dxf file. I was using dxfwrite but I needed the HATCH function only available on ezdxf, but I cant figure out how to use the dim functions in ezdxf. any ideas? I have the definitions…
2
votes
2 answers

export cad formats from unity3d

I've been trying to export certain things in my scene as a cad file (like dxf or dwg) but so far nothing. I know dxf is an ASCII format but I couldn't crack it (like I did with fbx). and I've found some resources but they are for the newer versions…
Henjin
  • 528
  • 2
  • 9
  • 19
2
votes
1 answer

Reading a DXF file in R with readOGR

I want to read a DXF in R using RGDAL package. DXF is supported by RGDAL, but I am not able to read the file and I don't find information about this topic. With shapefiles I do not have any problems. Here is my…
Raúl
  • 43
  • 2
  • 4
2
votes
2 answers

Dxf : how to know which layers to show?

I have to parse dxf files to transform it to images in .net. I used DxfLib (https://github.com/mkernel/DXFLib). I have a probleme with layers : I have 3 layers and only one need to be shown (I uploaded my file in some dxf viewer and they only show…
ROCHEDY
  • 85
  • 11
2
votes
1 answer

Group codes 210 220 230 not in DXF file

I have a simple question, I'm saving a DXF file as R12, but I can't find the group codes 210 220 and 230 for arcs. This is a piece of the DXF file: 0 ARC 5 44 8 0 6 CONTINUOUS 62 7 10 0.0 20 0.0 30 0.0 40 180.0 50 0.0 51 180.0 …
Henry
  • 67
  • 8
2
votes
2 answers

autocad dxf files displayed in opengl/opengl es

I'm wondering if there is a way to extract the necessary data out of an autocad .dxf file, so I can visualize the structure in opengl? I've found some old cold snippets for windows written in cpp but since the standard changes I assume 15 yr old…
Icky
  • 1,055
  • 1
  • 12
  • 30