Questions tagged [dxf]
DXF (Drawing Exchange Format) is a CAD data file developed by AutoDesk for interoperability between AutoCAD and other CAD applications.
319
questions
0
votes
1
answer
39
views
Extracting entity geometry information in world coordinates
I'm looping through all entities in the modelspace and generating a representative set of points for each entity type and storing them in a json file. Some entities like INSERT entities have an ...
1
vote
1
answer
57
views
Problem with function to generate a DXF with a MTEXT
I'm working on an Excel spreadsheet to generate a DXF. So far I've been able to generate a function for lines, polylines, polygons, circles and simple text but I'm struggling to code a MTEXT function.
...
1
vote
1
answer
44
views
CAD files like dxf/dwg to WMS
I have a really complicated and complex CAD file that ArcGIS can't show me correctly, is there any service that loads the dwg or dxf file and gives it to me in map or raster form? Something like WMS?
...
0
votes
1
answer
44
views
Converting Text to DXF with Laser-Compatible Font (e.g., tl_lasersans) using ezdxf Library in Python
I'm working on a Python project where I need to convert text into DXF format, specifically to create laser-readable text for laser cutting applications. I would like to use the font tl_lasersans for ...
0
votes
1
answer
92
views
Fill a shape (polyline (closed)) with a color and export it in dxf
I need the function in ezdxf to create a polyline and fill it out with colors:
import ezdxf
dwg = ezdxf.new('AC1015') # hatch requires the DXF R2000 (AC1015) format or later
msp = dwg.modelspace() # ...
-1
votes
1
answer
96
views
How do I delete objects on a specific layer in AutoCAD drawing using Python?
Erase line on a layer a layer in a cad, using python
Hi, I want to select objects on a specific layer in my autocad drawning. After, I want to delete them. I tried a couple thing (using python) with ...
1
vote
0
answers
53
views
Kabeja 0.4 How to save changes?
wrote a simple code using the Kabeja library. The code reads an existing dxf file, creates text and adds it to a new layer, the real question is how to save changes to dxf?
public class DXFLayerTest {
...
1
vote
0
answers
69
views
Problem with run vagran dxf-viewer in HTML/Javascript
I need help with running the dxf-viewer (https://github.com/vagran/dxf-viewer/). The available version to run is written in vue.js, which I am not familiar with. I would like to run a simple version ...
1
vote
1
answer
131
views
Dxf file generated using ezdxf doesn't render text in 3d model when viewed in Autodesk Viewer
I have written code that created dxf file with 2 cylinders stacked on top of each other, most of the part is working fine except when I add text into the 3d model it doesn't show in the Autodesk ...
0
votes
1
answer
139
views
Join / merge / combine a DWG / DXF files into single DWG / DXF file in such way that it will fit into a steel plate
Generally the goal is to get a pre-processed file that can be used to import into a cnc plasma cutter to get the time needed for evaluation.
So we ned to join / merge / combine a DWG / DXF files into ...
0
votes
0
answers
23
views
INSERT functionality in dxflib is not working
I am testing out dxflib and have run into a problem. In the BLOCKS section, I tried to create a BLOCK of entities, but this fails to load in AutoCAD. It loads fine in LibreCAD and decaffViewer.
...
1
vote
1
answer
196
views
Trying to convert a DXF file from Release 12 (AC1009) to at least 2000 (AC1015) progrematically
So the company I work for creates countertops and has there own logic and app in Java written in house that makes our dxf files for our countertops. We are now going to be outsourcing some of our work ...
0
votes
0
answers
97
views
Extracting all block attributes with ezdxf
I want to extract all the block attributes and put them on a df. Some of the attributes are default, and some are custom attributes:
Block attributes to extract
import ezdxf as ez
import pandas as pd
...
0
votes
1
answer
324
views
DXF file is not being imported correctly due to arcs & lines not connecting
Our application generates a custom DXF file for glass CNC machines. We have an issue with some of our DXF files not importing correctly into certain program such as AutoCAD, DWG Fastview and others. ...
0
votes
0
answers
41
views
print layer and vertex of DXF file in python
I try to display layers (Sew Lines and Pattern Perimeter) from a dxf file.
As a matter of fact, some points of these layers are exactly at the same place : so I wan't to remove some points of one of ...
1
vote
1
answer
163
views
DXF - AUTOCAD cant open DXF file with text Entity
I'm trying to write some DXF files manually using VBA, the ideia is to create a macro that transform a list of names in text in DXF.The first files i just ploted a simple line and it opens just fine ...
0
votes
1
answer
45
views
Issue to duplicate Ellipse-Arc inside DXF file
I am trying to write a code to generate ellipse/arc using DXF file format. The number of ellipses depend on some parameters. I don't have issue to generate one ellipse or two. But when the number of ...
0
votes
0
answers
64
views
How Do You Get Boundary Box Dimensions Of a DXF File in Python
I'm trying to read a various amount of DXF Files using ezdxf and get each one's boundary box dimensions, It worked until I tried some deferent dxf files.
I have This Snipped of Code That Does ...
0
votes
0
answers
44
views
Create pdf from the paper space of CAD dxf using java
How a PDF from the Paper Space of CAD dxf file can be created using java? I am able to create a pdf from dxf file using ODA Teigha for Java, but I am not sure if it is creating from the paper space or ...
0
votes
0
answers
70
views
Cannot draw line between vertex points in c# using OpenCvSharp library
I have a image in black and white colors. My goal is convert this image(png) to dxf(netDxf library) format.
So I have tried to convert to .dxf but the result is not like I want.
My image png looks ...
0
votes
0
answers
251
views
Creating a DXF polyline from a list of 3D coordinates
I'm trying to create a 3D polyline from a list of coordinates using EZDXF in Python. I modified this script and it works great. I can import it in Fusion and can see the points in 3D space. The thing ...
0
votes
0
answers
105
views
ezdxf - kernel crashed when saving as pdf
I am reading a dxf file using ezdxf in python, so that I can display the file and draw some additional lines on it and then export it as a pdf or png. However, the kernel keeps on crashing when I try ...
0
votes
0
answers
107
views
How to convert JSON file to DXF file using Python?
I have a json file with 88476 lines of code, this is the movement of the robot, I need to convert this to dxf format. Code start: "header": {
"mapType": "2D Map",
...
0
votes
0
answers
47
views
Fill a solid circle with QCAD dxflib
I use QCAD C++ dxflib to create dxf files. I can create circles, but I cannot fill them with a solid hatch. I cannot figure it out from the examples. Any idea?
0
votes
1
answer
173
views
Is it possible to fetch custom linetypes using ezdxf?
I would like to copy over these complex linetypes to a new DXF file.
I can grab most of the information using
doc = ezdxf.addons.odafc.readfile(filepath) for linetype in doc.linetypes: print(linetype....
0
votes
0
answers
204
views
QGIS 3.16+ versions Exported DXF polygon not actually usable when opened in AutoCad Mad
I have a polygon shapefile layer loaded in QGIS (versions used: 3.16 onwards, LTR) out of which I want some selected polygons to be exported in DXF format (not the whole layer). I have tried three ...
0
votes
0
answers
103
views
dxf to shp convert
is there a technology that converts dxf files into shp files in nodejs server?
I looked for a plug-in in qgis to convert dxf files to shp files, but I couldn't find a way to use the appi in nodejs ...
1
vote
0
answers
175
views
How can I mass create a drawing for laser cutting (DXF, DWG, etc.) with different QR codes
I am trying to cut some tags with a laser cutter. Every tag that I cut should have a different QR code.
The cut pattern is the same for all, but I need a way to create an image of a QR code that can ...
1
vote
1
answer
360
views
How to extract entity wise color, transparency, linewidth of AutoCAD dxf file using ezdxf python package?
I'm using ezdxf package in python to read the AutoCAD .dxf file. Can anyone tell me how to extract Line width, Transparency, and Color information of each entity present in modelspace?
I tried the ...
0
votes
0
answers
637
views
convert jpg file to DXF file using Python
Well I'm stuck in a problem of converting my jpg file into dxf file in Python. After dxf file is created I want to open it in MS Visio which is drawing tool for making various types of diagrams.
I've ...
1
vote
1
answer
245
views
change page setup with ezdxf
i would like to change the properties of layouts with ezdxf.
There is a function called page_setup, but it is not working in my case.
This is a minimal example created from the API.
What is wrong with ...
0
votes
0
answers
120
views
How to convert jpeg image to dxf format in JAVA?
Hi I want to convert images (png, jpeg) to dxf format in my graduation project.
I found that I should use Aspose but it's not free .
please is there any open source java library to do that ?
0
votes
0
answers
359
views
Effective way to convert SVG <path d=""></path> to DXF LWPOLYLINE (or suggest other entry)
We need to insert a lot of SVG images into DXF file. We use NodeJS and self-written library for creating DXF files. The problem is that the DXF file is very big - 32 Mb with only one image. There are ...
1
vote
1
answer
133
views
How to change dxf layer color in java using jdxf library?
I have a java code generating dxf files, I am using jdxf library. Almost everything works fine with it, there is only one thing I could not figure out. When I'm adding a new Layer, I wish to do it ...
0
votes
0
answers
242
views
How to go iterate through a DXF File and look at all the layers? C#
I am currently using netDXF for C# to iterate through a DXF File and look at the layers. However, when iterating through this file, I am getting 5 layers, when in fact there should be 3. Here is the ...
0
votes
1
answer
653
views
DXF parser in vanilla JS
I am currently working on a CNC project, I want to be able to parse DXF files into objects in JS.
I started with SVGs instead but the drawings did not export as shapes but as lines (a square as four ...
0
votes
1
answer
888
views
Do you know how to visualize a DXF files in React js? [closed]
I want to display DXF files (2D mechanical drawings) in my react app. I cant find the way to do it. Thank You!
0
votes
0
answers
35
views
Java - Draw Arcs using Quadcurve2D
I managed to read DXF arcs and render them into a 3D Canvas I made. See attached image.
To render the 2D arcs I "cut" them into small linear segments (small lines) and then I draw them on my ...
0
votes
1
answer
440
views
Code optimisation for extracting cloud points from AutoCAD DXF Python
I'm working on processing Lidar data with Python. The test data has about 150 000 data points but the actually data will contain hundreds of millions. Initially, it was exported as .dwg file, however, ...
1
vote
0
answers
65
views
How can I avoid segmentation lines in gdspy?
I am trying to draw and simulate a coplanar waveguide resonator. First I draw the design shown below in gdspy, then I perform an electromagnetic simulation using a finite element software. The ...
1
vote
1
answer
57
views
Autolisp entmake missing parameter
I'm using Autolisp to create an entity (a plugin component).
Custom component
First use entget to collect data of an existing entity, and it shows me this list:
((-1 . <name: 24df3f09820>)
(0 . &...
-1
votes
1
answer
180
views
how to deal with this assertion debug failure
I am debugging a code that generates five dxf files. Everything works correctly for the first generation. As soon as I start creating the second dxf file I get this error.
Could someone help me and ...
1
vote
1
answer
511
views
What is the structure of a DXF BLOCK_RECORD and DICTIONARY and how is it used?
I am creating a feature to convert data into a DXF file. Sadly because of limitations I cannot use one of the existing frameworks, so am very simply trying to write my own.
I am at the point where I ...
2
votes
1
answer
381
views
DXF files - How does the normal vector and position relative to this provide full understanding of block position
I have been scratching my head for days understanding how to fully describe a block to insert in DXF. For background I am interested in the rules and behaviour of how to do this, not simply trying to ...
0
votes
0
answers
560
views
Rotate a block in DXF file format
I am creating a DXF file using XSLT to transform my raw data.
I can create a working DXF file with a block and insert it into my drawing.
The issue is I want to create one block that is used many ...
0
votes
1
answer
302
views
Rasterising only selected area of a CAD DXF file
Given a DXF file (2D CAD drawing), is it somehow possible to rasterise only part of it? Preferably in Python's ezdxf. By the part of it, I mean the selected rectangular area, not a single layer.
...
1
vote
2
answers
314
views
is there any way to name each entity in dxf file?
I want to highlight each line or arc at specific time. Example If mobile design is displayed, I want to highlight only screen dimension to be highlighted one side after the other.
If any identifier/...
1
vote
0
answers
207
views
Geometric Dimensioning and Tolerancing support in EZDXF Python
I am trying to read the GD&T Symbols like Concentricity, Perpendicularity using ezdxf parser on DXF Files. The GDT Symbols get read as TOLERANCE Entity and using the content attribute I have ...
0
votes
1
answer
258
views
Visual components from external libraries not visible in design view of visual studio
I'm doing maintenance on a GUI, made in C#, using Visual Studio (xaml technology).
There are several visual components I don't see in the design view, like the Telerik and DXF visual components. I ...
0
votes
1
answer
587
views
Filter LINES in all LWPOLYLINE in DXF doc using python ezdxf
How can I get the LINES coordinates from a LWPOLYLINE in a dxf doc?
I have the following code:
import sys
import ezdxf
Coordenadas = str()
Coordenadas_texto = str()
try:
doc = ezdxf.readfile(str(...