[Question] [SmartPart] Ändern Sie Dokumenttextwerte mit smartpart? [Résolu]


Hello,

Can 'smartpart' be programmed so that it changes document values?

For example, I have a .txt document which says A, and if I open a smartpart in allplan and put B in it, it'll change the A to B in that specific document?
Is that possible?
Thank You.

_____________________
Hallo,

Kann 'smartpart' so programmiert werden, dass es Dokumentwerte ändert?

Zum Beispiel habe ich ein TXT-Dokument mit der Aufschrift A, und wenn ich ein Smartpart in allplan öffne und B setze, wird A in B geändert.
Ist das möglich?
Vielen Dank.

Show solution Hide solution

Mit PythonParts / Visual-Scripting sollte das innerhalb von Allplan funktionieren...

Ein SmartPart ist kein Text-Editor.
Für so etwas empfehle in NotePad++.

Yeah, I figured, just thought if there was a possibility to change values within an external file while inside of Allplan.

Thank You for the quick response!

Mit PythonParts / Visual-Scripting sollte das innerhalb von Allplan funktionieren...

Wow,
thank You a lot Nemo!

Time to learn some Python,
this should be interesting.

Aus einem SmartPart heraus kann eine TextDatei oder XMLDatei gelesen und geschrieben werden. damit können ganz coole sachen gemacht werden ..

der zweck ist nur die frage.

Namenlos gezeichnet in vollem Bewusstsein - ignorant, in eigen Augen vermutlich höflich, dennoch unhöflichst, unfreundlichst wer einen/viele vermutete - sich von alters erschließende Namen nennt.
08.01.2024 - Gegen Bauernsperren! -> Boykott der direktverkaufenden Bauern - kauft nicht mehr direkt bei Bauern!

Die Frage war: Suchen und Ersetzen von A durch B in einer Text-Datei.
Öffnen läßt sich eine Text-Datei mit einem SmartPart zwar, aber dann wird'es etwas schwierig.
Sicher könnte man das Ersetzen irgendwie hinkriegen, aber es ist nicht zu empfehlen, eine Textdatei mit einem SmartPart zu bearbeiten!

Ich kenne Leute, die mit Excel Bauantrage zeichnen.
Aber besser, man macht das mit einem Programm, welches dafür gedacht ist...

für so einen Fall benutzt man doch den Windows-Befehl "STRG-H".
Der Befehl funktioniert auch in Allplan für die selektierten Texte und Positionsnummern.

War die Frage ob man das für eine geschossene *.txt-Datei automatisieren kann?
Wenn ja, ist da keine Aufgabe für Allplan.

Gruß Martin

Yeah, so there's a possibility to write a .txt or xml from within in the smartpart?
Can You tell me which smartpart function does that, or is there an example of smartpart that does that?
I would be very grateful!

Thank You all in advance!


https://campus.allplan.com/ utilise des cookies  -  Plus d'informations

Accepter