Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Edit dwg like text file.

10 REPLIES 10
Reply
Message 1 of 11
valotaire_emile
423 Views, 10 Replies

Edit dwg like text file.

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

10 REPLIES 10
Message 2 of 11
Message 3 of 11
cadffm
in reply to: valotaire_emile

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

Message 4 of 11

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

Message 5 of 11

Here is the result
valotaire_emile_0-1724250618368.png
 
Message 6 of 11
pendean
in reply to: valotaire_emile


@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 

 

Message 7 of 11
cadffm
in reply to: valotaire_emile

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

Message 8 of 11
cadffm
in reply to: valotaire_emile

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

Message 9 of 11

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

Message 10 of 11
cadffm
in reply to: valotaire_emile

 

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

Message 11 of 11
valotaire_emile
in reply to: cadffm

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report