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

Java: parse dxf file using Ycad / Kabeja or any other simmilar library

I'm pretty new to programming so any help would be much appreciated. I'm trying to parse a .dxf file in order to get the coordinates of the entities and plot them to a JPanel. Basically I would need a graphical presentation of the dxf file. So far…
karedwer
  • 21
  • 3
2
votes
2 answers

How to find the bounding box of a TEXT element from AutoCAD DXF file

I fear this is one of those questions with no simple answer. I have AutoCAD drawings in ASCII DXF format. I am scanning them for text elements. I need to calculate the coordinates of the vertices of the bounding box for each text element. (In…
Josh
  • 189
  • 1
  • 12
2
votes
2 answers

Serve DXF (and other types) files in IIS

I've got a problem with one of the pages within a website. This page will serve images according to the selection a user makes like PDF, GIF, DWG and.. DXF I understand why PDF and GIF will attempt to open in a browser, but the DXF files will (using…
riffnl
  • 3,248
  • 1
  • 19
  • 32
2
votes
0 answers

Calculating text width for DXF

I am using netDXF (https://netdxf.codeplex.com/) to generate a DXF file for use with AutoCAD. However, I have an issue with getting the width of MText correct. I want to be able to define a width that the text should fit into, and change the width…
Asagohan
  • 583
  • 5
  • 19
2
votes
1 answer

Parse incomplete ellipses from DXF files

I am developing a DXF parser by using the dxflib library. I have a problem parsing ellipses. When I parse an ellipse I receive the following data: struct DL_EllipseData { /*! X Coordinate of center point. */ double cx; /*! Y Coordinate…
Nick
  • 10,309
  • 21
  • 97
  • 201
2
votes
1 answer

Find the angle of a rotated ellipse

I am developing a DXF parser by using the dxflib library. I have a problem parsing ellipses. When I parse an ellipse I receive the following data: struct DL_EllipseData { /*! X Coordinate of center point. */ double cx; /*! Y Coordinate…
Nick
  • 10,309
  • 21
  • 97
  • 201
2
votes
1 answer

What is Fortran 14 output?

I am writing a javascript lexer/parser for DXF files and have come across this from the AutoDesk Drawing Interchange and File Formats document: The first line of a group is a group code, which is a positive nonzero integer output in FORTRAN…
oorst
  • 909
  • 2
  • 7
  • 29
2
votes
1 answer

Units vs real world

I've got a DXF (rev 10) CAD file with some 2D drawings and I'm implementing a reader. Until now I've successfully loaded everything and rasterized with ImageMagick. But the point is, I have manually set the zoom on the coordinates to a number that…
aledalgrande
  • 5,167
  • 3
  • 37
  • 65
2
votes
2 answers

Writing text styles into DXF from a Delphi application

I'm writing DXF files from a Delphi application and trying to understand text styles. I have text styles working in general, but i'm struggling to find information in the DXF reference literature out there about how the 1071 group code works. The…
2
votes
1 answer

Biarc Rendering

I am creating a DXF parser for use by an industrial robot. The robot can only move in lines and arcs, so I've had to decompose ellipse entities into a series of biarcs (thanks to Keeper for the arc function). The conversion works perfectly, but when…
Crazymoomin
  • 305
  • 2
  • 9
2
votes
1 answer

Application specfic data in DXF Entities

I'm looking for a way to tag entities (for example arc) in a DXF with an numeric ID of my choosing. Is there a good (standard complient) way of doing this? Looking at the DXF format reference, I see there is a "common group code" 102 that is…
dagur
  • 432
  • 4
  • 16
2
votes
2 answers

Select whole drawing in AutoCAD without prompting user

I'm trying to plot using "Window" as PlotType in AutoCad. This is the code: ViewBorder border = new ViewBorder(); Point3d first = new Point3d(border.Width, 0, 0); Point3d second = new Point3d(border.Height, 0, 0); Extents2d window =…
Flávio Schuindt
  • 403
  • 1
  • 7
  • 15
2
votes
0 answers

Is there a SWT widget to display DFX/Autocad Files? (or a converter to convert it to Draw2D)

I have some DXF or Autocad files, and need those to display in a eclipse rcp application. Is there a widget which provides such functionality? Or is there a library to convert these somehow to draw2d objects?
Mauli
  • 16,863
  • 27
  • 87
  • 114
1
vote
1 answer

dxf to pdf in asp.net

Do you know a library that can convert a dxf file to pdf without having the autocad program installed ? I'm looking to convert microsoft document too, but i know I can use the microsoft dll installed when you have office Thanks
GregM
  • 2,634
  • 3
  • 22
  • 37
1
vote
2 answers

Python: export to DXF file the Shapely objects

How to export the results come from spatial operations such as buffer function on points using Shapely package for Python to a DXF file? BTW, googling wasn't so helpful this time.
Developer
  • 8,258
  • 8
  • 49
  • 58