Edit dwg like text file.

Edit dwg like text file.

valotaire_emile
Contributor Contributor
940 Views
10 Replies
Message 1 of 11

Edit dwg like text file.

valotaire_emile
Contributor
Contributor

Hello,

 

Is it possible to edit a dwg or dxf as a text file or export all text and attributes to an excel or .txt file and re-import the file to update the dwg or dxf drawing

0 Likes
941 Views
10 Replies
Replies (10)
Message 2 of 11

Valentin_CAD
Mentor
Mentor

@valotaire_emile ,

 

Explore these options:

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 3 of 11

cadffm
Consultant
Consultant

Hi,

you can save dwg files in ascii-dxf files (editable like text files too),

but you should search for tools to do this job.

 

See Emilio above

Sebastian

0 Likes
Message 4 of 11

valotaire_emile
Contributor
Contributor

When I open the dxf 2018 on notepad++ it is not possible to find readable text

0 Likes
Message 5 of 11

valotaire_emile
Contributor
Contributor
Here is the result
valotaire_emile_0-1724250618368.png
 
0 Likes
Message 6 of 11

pendean
Community Legend
Community Legend

@valotaire_emile wrote:

When I open the dxf 2018 on notepad++ it is not possible to find readable text


DXF is coded to draw what you see on screen in a CAD program: learn the code and explore using SEARCH tools to find "text" in that file to edit as you need to do.

 

pendean_0-1724250737640.png

 

 

Here are reference guides to that DXF code if you are interested:

https://help.autodesk.com/view/ACD/2025/ENU/?guid=GUID-3F0380A5-1C15-464D-BC66-2C5F094BCFB9 

https://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf 

 

0 Likes
Message 7 of 11

cadffm
Consultant
Consultant

Hi


If not, you saved not as ascii DXF

(but also in binary dxf, you will be able to FIND your Textstrings!)


binary DXF, first line:

AutoCAD Binary DXF


ascii DXF, first lines:

0
SECTION
2
HEADER
9
$ACADVER
1
AC1032

----

 

EDIT to your last post: This is an ascii DXF, you just looking at the wrong place (line).

Use CTRL+F to find your values..


But again: This is not the way you should go (you should have the knowledge about .dxf structure well, otherside you will create a damaged file)


The way to go: 3rd party tools!

 

Sebastian

0 Likes
Message 8 of 11

cadffm
Consultant
Consultant

For Attributes

Command: ATTOUT and ATTIN (if Expresstools are installed)

Or more modern and powerful  - https://www.lee-mac.com/batte.html

 

For (M)TEXT, you need other tools.

Use your favorite search engine, I am sure you get success

Sebastian

0 Likes
Message 9 of 11

valotaire_emile
Contributor
Contributor

(Batte) lisp works well for attributes, but my problem is with text and mtext.

0 Likes
Message 10 of 11

cadffm
Consultant
Consultant

 

I noticed all 3 and I answered => "


@valotaire_emile  schrieb:
.. all text and attributes

 

 

@cadffm  schrieb:

For Attributes

Command: ATTOUT and ATTIN (if Expresstools are installed)

Or more modern and powerful  - https://www.lee-mac.com/batte.html

 

For (M)TEXT, you need other tools.

Use your favorite search engine, I am sure you get success


 

"

 

Offtopic

Please use the Reply button, so we can see to who you replying.

cadffm_0-1724256815699.png

 

 

Sebastian

0 Likes
Message 11 of 11

valotaire_emile
Contributor
Contributor

Thanks for the advice, I'm not very familiar with the platform yet.

 

Also, I found the solution by asking several people's opinions. You have to use VBA to extract all the text and attributes with the position in the drawings to Excel and vice versa.

The only problem is that it requires VBA programming in Autocad.

0 Likes