Laden...

How to open dxf and change text

Erstellt von hafem vor einem Jahr Letzter Beitrag vor einem Jahr 306 Views
H
hafem Themenstarter:in
3 Beiträge seit 2020
vor einem Jahr
How to open dxf and change text

i want to open a dxf file remove the old Text(not Mtext) and add a new Text.
using netDXF

A
764 Beiträge seit 2007
vor einem Jahr

Hallo hafem

Where is the problem? Describe what you tried and what does not work.

Regards
Alf

H
hafem Themenstarter:in
3 Beiträge seit 2020
vor einem Jahr

i have millions of old dxf files every file contains a 2d part of a Product in that part is a marking (partnumber, projekt, typ of part) this 3 lines of Text i like to delete and add my own text to make it understandable for our new cutter machine. how to add the new text i know. i just dont understand how to pick that old Text and delete it.

  1. Document.Load (OK)
  2. delete all TEXT (???) (not MText)
  3. add new MText (OK)
  4. then save under same filename same directory (OK)

i just have knowledge gap about that 2. point

A
764 Beiträge seit 2007
vor einem Jahr

The first you should try, is to check if u can edit the 3 text lines with an editor, like Notepad++. If that works, you can run a search and replace over all the files.

If that doesn't work, you should show some code and error-messages.