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
27
votes
1 answer

How to read lines from Blocks in Kabeja?

I am using Kabeja to read data from an DXF file. I can read all the Lines and Polylines without any issues. However, I am not able to find the Lines from a Block. I can find the Block along with the Insert entity that places the Block in the…
Doug
  • 279
  • 2
  • 4
21
votes
7 answers

Reading .DXF files

Does anyone know of source code, ideally in C# or similar, for reading .DXF files (as used by AutoCAD etc)? If not code, then tables showing the various codes (elements / blocks / etc) and their meanings? I am writing a reader myself, and have dead…
Joel in Gö
  • 7,460
  • 9
  • 47
  • 77
18
votes
2 answers

DXF Parser : Ellipses angle direction

I wrote my own ASCII DXF file parser and I encounter a problem with ellipses in some particular documents. It seems that there is no "Group Code" defining the angle direction (Clockwise or Counterclockwise) for Start and End Parameters. In most…
ingham
  • 1,636
  • 15
  • 30
11
votes
3 answers

Reading a Dxf file with Java

I am trying to write/find some code in Java which reads dxf files and stores geometry from the "Entities" section into arrays so that I can later import that information into Oracle 11g in terms of tables. Thank you in advance!
Spyros
  • 111
  • 1
  • 1
  • 3
7
votes
3 answers

How does AutoCAD calculate end tangents for splines defined only by fit points?

AutoCAD allows to store SPLINE entities in the DXF files defined only by fit points, the problem is, that such a spline definition has infinite numerical correct solutions and Autodesk does not provide the necessary information to calculate the…
mozman
  • 2,001
  • 8
  • 23
6
votes
4 answers

Converting RGB Colors to closest ACI Color in C#

I am currently writing a Programm that interacts with dxf files. Therefore I need a Routine that takes RGB Color Values and gives back the closest Color in the AutoCAD Color Index (ACI) Has anybody some Code or an example how to do that? It would…
Hendrik Unger
  • 61
  • 1
  • 2
6
votes
2 answers

Finding the size of a DXF file using EZDXF Python

I am using the Python package ezdxf to extract information from a dxf file. Is there a way I can find out the height and width of the file, so than I can create an image of the same size and draw the entities on it for my reference. I tried to…
Anuradha
  • 1,089
  • 4
  • 18
  • 29
5
votes
4 answers

Python converting DXF files to PDF or PNG or JPEG

Does anyone know any way of converting DXF files to either PNG or PDF? I have a huge list of DXF Files and I want to convert them to Images to view them quicker. If its possible, how could you extract the DXF file values, like the thickness or…
JareBear
  • 467
  • 9
  • 27
5
votes
1 answer

Draw an arc by using end-points and bulge distance. In OpenCV or PIL

Working on a script to convert dxf to png, I need to draw arc which are having only three parameters, i.e. Start point of arc, end point of arc and bulge distance. I have checked OpenCV and PIL both, and they require start and end angle to draw this…
5
votes
4 answers

DXF File - Won't Open in Autodesk Viewer

We're building a DXF exporter and from what I've read, this extremely simple file should be valid. We don't have any CAD tools to test with, so I'm very limited in my abilities to debug. This opens fine in the Proficad online viewer but I get an…
jenni-mm2
  • 185
  • 1
  • 2
  • 11
4
votes
1 answer

How to render PNG image from DFX file by using kabeja package?

I'm new to this kabeja package so please can some one provide code example or reading material to render PNG from DXF file using Java?
SL_User
  • 1,934
  • 5
  • 24
  • 45
4
votes
4 answers

Converting Autocad DXF to Microsoft XAML

Anyone got a good and preferably cheap and easy way to do this? The closest I got was to save a file to .SVG and use Inkscape to convert it to XAML. All lines and such converted nicely, but all the text was just a pile of text on top of the…
sindre j
  • 4,404
  • 5
  • 31
  • 32
4
votes
2 answers

.svg to .dxf (using Inkscape?)

For a project I need to automate the conversion of plenty .svg-files to .dxf-files for further processing. Situation: One directory with plenty .svg-files which should be converted to .dxf (no matter if the .dxf files are in the same diretory or in…
C.Joe
  • 51
  • 1
  • 3
4
votes
3 answers

svg 2 dxf conversion

I would like to know where I can find a reliable tool/library for conversion of svg to dxf. In between formats are also allowed as long as the dxf output is an exact replica of the svg. So that means conversion of the paths (and in particular…
dr jerry
  • 9,768
  • 24
  • 79
  • 122
4
votes
2 answers

How do I create a dxf spline curve using fitpoints?

I'm trying to create a spline curve programmatically in a dxf file. I need to use fit points as the curve needs to pass through the specified points. I understand I also need to use control points. Is there a formula to calculate what these should…
AesculusMaximus
  • 195
  • 3
  • 14
1
2 3
21 22