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

Create DXF file from polygon of points using Java

Apologies in advanced for my lack of experience in Java programming. I'm trying to create a profile generator for drawing the 2D outline of a gear as a polygon of many points, and am looking for a means of storing this profile in a DXF format.…
Involute
  • 111
  • 4
0
votes
1 answer

Can you access the same data on a DXF as on a PDF version of the DXF?

I am searching for info regarding the technical limitations of the PDF vis a vis DXF for programming purposes. I need to know whether there are operations or data embedded within the DXF that cannot be accessed via the PDF standard. Any guidance…
0
votes
1 answer

In created programmatically dxf dashed lines with custom type displays like solid

I have some trouble with opening created programmatically (netdxf library) dxf document. When I open single document from AutoCAD this document opens correctly. But if some document was opened from AutoCAD and I try to open my documen dashed lines…
Jakobinec
  • 63
  • 13
0
votes
0 answers

sorting an Iterator in Java

I am a newbie and need some help with this function because I am not a real Java programmer. Iterator layers = getDocument().getDXFLayerIterator(); while (layers.hasNext()) { DXFLayer layer = layers.next(); // somethings to do on…
Robin Cris
  • 11
  • 4
0
votes
1 answer

Autocad SHX: What format is it, and how to convert it?

I've tried to find out what format Autocad SHX is, but had no luck so far. What kind of format is it actually (I mean like image, vector, a mix of this, else)? And how can I convert this to say a bitmap image?
benjist
  • 2,740
  • 3
  • 31
  • 58
0
votes
2 answers

DXF/DWG internals: Is a block's name unique?

I'm writing a DXF/DWG object dumper. The dumper exports all data hierarchically, and later converts this full data set into GeoJson or CSV-WKT alternatively. One thing I stumble on is that my internal hierarchy stores all dumped blocks on the same…
benjist
  • 2,740
  • 3
  • 31
  • 58
0
votes
2 answers

Adding text to a dxf file

I'm trying to add a label to my dxf file using TEXT entity, the problem is that I'm not able to change text style (group 7) and thickness (group 39) ;it always appears in the standard style and thickness. When I try to use AcdbText entity my file…
Ucef
  • 555
  • 1
  • 5
  • 10
0
votes
0 answers

Are DXF polyface mandatory?

I'm dealing with DXF files in Python. Reading only. So far every file I've opened has Polyfaces defined (besides of Lines, arcs and circles...). I'm planning to do all my calculations using polyfaces only. But I'm afraid that some other 3D software…
Gustavo Vargas
  • 2,497
  • 2
  • 24
  • 32
0
votes
1 answer

How to organize data from a .DXF file

I need to take apart a GDS file to do more detailed analysis on it. In particular I need to count the numbers of design layers, the number of polylines in each layer and the vertices of each of the polyline for a design. My trouble is creating…
Matt G
  • 1
  • 1
0
votes
1 answer

unable to retrieve layer detail using dxfgrabber

In my Python script, I am reading dxf file using dxfgrabber and able to get layer's name and other information. One of my layer has text information in it and I am not able to get that text information via my code. So far I have tried below - import…
Amar
  • 321
  • 3
  • 14
0
votes
1 answer

How to turn DXF into image and add it into MS Word?

I have DXF files like this: And I want to copy it into MS Word, like this: How can I do it? How I do it manually: Open DXF file by AutoCad, Copy the DXF using BetterWMF, BetterWMF will turn it into image and I can then paste it in MS Word, and…
ZK Zhao
  • 19,885
  • 47
  • 132
  • 206
0
votes
1 answer

how to quickly create large dxf from geometrical shapes

I have a 2D pattern consisting of ~10 million circles, stored in the form of a list [[x, y, radius], [x, y, radius], ...] I want to turn it into a DXF (a common CAD file format). I tried dxfwrite and ezdxf and they both work but very slowly. (If I…
Steve Byrnes
  • 2,210
  • 1
  • 20
  • 25
0
votes
1 answer

Segmentation fault using libdxf

I am trying to use libdxf library. I have created a small program running which I am getting a segmentation fault. I have debugged my code using gdb and have located the code line causing the core to be dumped. My code snippet is as written…
Kamalpreet Grewal
  • 822
  • 1
  • 13
  • 28
0
votes
1 answer

Processing create DXF from inside Eclipse

this works in processing and it's IDE of version 2.2. Moved that to Eclipse and the drawing part works import processing.core.*; import processing.dxf.*; public class ShowCameraParts extends PApplet { /** * */ private static…
user3732793
  • 1,699
  • 4
  • 24
  • 53
0
votes
1 answer

scheme/racket solving simultaneous equations

Given 2 points and a signed bulge factor (whether the arc connects from the first point to the second point in a CW or CCW manner), calculate the center point of the arc. (define (solver x1 y1 x2 y2 bulge) (let* ((arc-angle (* 4 (atan bulge))) …
KRC
  • 328
  • 2
  • 16