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
4
votes
0 answers

YCad DXF Library code example

I'm currently working on a java project and need to export a DXF with lines and text. Especially MTEXT which is a multi-line text in AutoCAD DXF files. I was hoping that anyone here already used the "Ycad" Library. I can't find any code example and…
GeoGecco
  • 437
  • 4
  • 21
4
votes
2 answers

Drawing DXF Arc using WPF ArcSegment

I'm trying to draw an imported DXF file using WPF over a canvas. I've been using DXFLib (available here) to read and parse various files and it seems to work really well. I'm now in the process to draw all the entities in the DXF but I'm stuck with…
Dan
  • 1,060
  • 13
  • 39
4
votes
2 answers

Convert a B-Spline into Bezier curves

I have a B-Spline curve. I have all the knots, and the x,y coordinates of the Control Points. I need to convert the B-Spline curve into Bezier curves. My end goal is to be able to draw the shape on an html5 canvas element. The B-Spline is coming…
TimSum
  • 738
  • 2
  • 8
  • 21
3
votes
3 answers

How to get details from AutoCAD DXF file to java application?

I'm developing application which needs to get details from AutoCAD DXF file. Is there any specific API which support this task. Actually in my project I need to get building structures to my java application and I need to add some more details to…
SL_User
  • 1,934
  • 5
  • 24
  • 45
3
votes
2 answers

Why are circle center coordinates (key 10) not relative to the origin in DXF data?

I need this piece of information for a filter that I'm creating. So let's say I set my grid and snap to 1 for example and then I place the origin with UCS. And then I draw a circle with center 5, 0. Here is what I get: ( (-1 .
3
votes
1 answer

How to find which Lines and Arcs are connected when imported from DXF?

I am using ezdxf to import a .dxf file into Python. It works smoothly. I get a list of lines and arcs. How do I figure out which lines and arcs are connected to each other? Are they somehow indexed or do I need to search start and end points of…
Tola
  • 254
  • 3
  • 17
3
votes
2 answers

What does it mean when a dxf vertex with a bulge factor is not followed by an end point?

I have a DXF file that was exported from a drawing of a simple arc that starts at (0, 0), ends at (2, 0) and has a radius of 1.0. I would expect the LWPOLYLINE to be made up of two vertices with the first containing the start point and bulge factor,…
3
votes
1 answer

How to find dimensions of a shape in DXF in python?

I am trying to get the shape's dimensions, from dxf files. I tried looking into dxfgrabber and ezdxf libraries, I took the lowest and highest points to get the dimensions, but the result was wrong. Using dxfgrabber: import dxfgrabber import numpy as…
Akash Jobanputra
  • 322
  • 1
  • 3
  • 16
3
votes
0 answers

netDxf .net library Read and write AutoCAD dxf files

I try this netDxf .net library programmed in C# to read and write AutoCAD dxf files. I need in this moment only read AutoCAD dxf file from the web server without success because I don't have error but only white and empty webpage. How to do resolve…
Antonio Mailtraq
  • 1,397
  • 5
  • 34
  • 82
3
votes
2 answers

Getting Entity data from Autocad

This is a two part question. 1) Is there any way to get a csv file of all the entity data, including xdata, for an autocad dwg, either using autocad or some other method? 2) Is there an easy way to parse a autocad dxf file to get the entity data…
JPB
  • 51
  • 1
  • 3
3
votes
1 answer

How to Select and highlight lines of a dxf file using three.js, dxf-parser, and three-dxf?

I'm using both the following libraries to parse and view dxf drawings into a webpage I am building: https://github.com/gdsestimating/dxf-parser https://github.com/gdsestimating/three-dxf They are built to use the three.js library. I was able to…
Michael Azer
  • 63
  • 1
  • 9
3
votes
1 answer

Convert DXF to SVG in Inkscape CLI while keeping layers

In the Inkscape GUI, there is this awesome feature, that lets me 'save as -> file type -> layers as individual SVGs' (the last one at the bottom). Is there any way of doing the same thing from the CLI? What I have so far: inkscape -z -l output.svg…
Christoph Bühler
  • 2,795
  • 2
  • 28
  • 43
3
votes
2 answers

how to find length of entity from dxf file using dxfgrabber or ezdxf packages

I am trying to find total length(perimeter),area of a spline from dxf file. Is there any function in dxfgrabber or ezdxf to find total length of an entity from dxf file ?
3
votes
1 answer

Is there a pure java library for converting DXF to PNG?

Need to convert DXF files to PNG. Found a library called kabeja -- http://kabeja.sourceforge.net/ The conversion however is limited. It does not work with fill patterns. Any better tools?
Jayan
  • 18,003
  • 15
  • 89
  • 143
3
votes
1 answer

Parse the extrusion direction vector DXF

I am parsing a DXF (Autocad) file. In this file there are several entities with an extrusion vector different from the "default" (0, 0, 1). I am having a lot of trouble parsing these entities because their coordinates have to be mapped in order to…
Nick
  • 10,309
  • 21
  • 97
  • 201
1
2
3
21 22