Laden...

Forenbeiträge von hafem Ingesamt 3 Beiträge

09.05.2022 - 08:01 Uhr

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

06.05.2022 - 05:04 Uhr

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

03.05.2022 - 08:13 Uhr

i populate a listbox with some files which fullfill the search variables
then i like to use the listbox.items + path which i tried to do like this


string itemIn = string.Empty;
            foreach (Object item in listbox1.Items)
            {
                if (itemIn.Length > 0) itemIn += ", ";
                itemIn += tbPath.Text + "\\" + listbox1.GetItemText(item);
            }

which i use like this


string[] inputs = new string[] { itemIn };

.....

but i get a sytax error because of directory or filename

Fehlermeldung:
System.IO.IOException: "Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch. : 'C:\Users\Me\Desktop\dxfmergetest\autoCAD2018\001typ07sik1.dxf, C:\Users\Me\Desktop\dxfmergetest\autoCAD2018\001typ07sik10.dxf, ......

it looks good but result is still an error
iam a newbee to c# hope to find someone who is able to explain it to me.