Hello
My Python part code evaluates the reinforcement ratings across multiple partial views and then writes one line per position to an external text file.
If I enter the reinforcement using the quantity factor, as before for multiple identical elements in Allplan, the quantity in the file is correct. However, if I have the element factor generated in the detailed partial view based on the model partial view, the element factor is not taken into account when outputting the reinforcement to the text file.
With the "normal" bending schedule, I was able to add the required attribute, and the placed reinforcement quantities are multiplied by the element quantity factor and written to the bending schedule accordingly.
This only fails with the Python part for outputting the reinforcement to the text file. I think I know which line to insert the factor on, but I'm still too new to Python part programming to know which `import` variable I need to use at the beginning, which `from "***Service"` I need, which `def` I need to create, and so on.
I would be grateful if someone could give me some pointers so I can further adapt it for use with precast elements and constructive prefabricated parts.
Thanks in advance for your help.
Regards,
Remo
Guten Tag
Mein Python Part Code wertet mir die Bewertungen über mehrere Teilbilder aus und schreibt dann pro Position eine Zeile in ein externes Textfile.
Wenn ich die Bewehrung mittels Stückzahlfaktor wie früher für mehrere, identische Elemente in Allplan erfasse, stimmt die Stückzahl im File. Wenn ich aber den Elementfaktor im Detail Teilbild anhand des Modellteilbildes erstellen lasse, wird der Elementfaktor bei der Eisenausgabe ins Text File nicht berücksichtigt.
Bei der "normalen" Biegeliste konnte ich das benötigte Attribut hinzufügen und die verlegten Eisen-Stückzahlen werden entsprechend mit dem Faktor der Elementstückzahl multipliziert auf die Biegeliste geschrieben.
Nur beim Pythonpart für die Eisenausgabe ins Textfile klappt das nicht. Ich schätze, ich weiss zwar in welcher Zeile ich den Faktor einfügen muss, bin aber noch zu neu bei der Pythonpart Programmierung um zu wissen, welche "import" ich zu Beginn als Variable machen muss, welche from "***Service" ich benötige, welche "def" ich machen muss, usw.
Ich wäre froh, wenn mir da jemand Hinweise geben könnte, damit ich das weiter anpassen kann auf die Nutzung mit Precast Elementen und Konstruktiven Fertigteilen.
Besten Dank für die Hilfe.
Gruess
Remo