Willkommen auf myCSharp.de! Anmelden | kostenlos registrieren
 | Suche | FAQ

Hauptmenü
myCSharp.de
» Startseite
» Forum
» Suche
» Regeln
» Wie poste ich richtig?

Mitglieder
» Liste / Suche
» Wer ist online?

Ressourcen
» FAQ
» Artikel
» C#-Snippets
» Jobbörse
» Microsoft Docs

Team
» Kontakt
» Cookies
» Spenden
» Datenschutz
» Impressum

  • »
  • Portal
  • |
  • Mitglieder
Beiträge von hafem
Thema: How to open dxf and change text
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

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

Thema: How to open dxf and change text
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

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

Thema: use files + path of a Listbox
Am im Forum: Basistechnologien und allgemeine .NET-Klassen

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

Fehler
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.