Hello, I would like to write a PythonParts, which place the reinforcement per meter and give the length factor. But I can't find required parameter in documentation. Can you give me some hints? Where should I look for this?
Das Wissen aller Anwender nutzen
Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.
Es erwarten Sie:
- Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
- Tipps von User für User
- international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch
Melden Sie sich jetzt an und diskutieren Sie mit!
- Forum
- CAD Parametric Modelling
- PythonParts
[Frage] How can I set a length factor for bars?
Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen
Hello!
To create a per meter placement, you have to look for a setter method called SetPlacePerLinearMeter(). This method is available in the classes:
- BarPlacement
- CircularAreaElement
- SpiralElement
my_placement = BarPlacement(...) my_placement.SetPlacePerLinearMeter(True)
Refer to the example:
PythonParts Examples -> ReinforcementExamples -> GeneralShapeCreation
to see, how it is done.
However, setting a length factor through Python API is currently possible only for SpiralElement. This property has yet to be exposed to other types of placements.
Hello!
To create a per meter placement, you have to look for a setter method called SetPlacePerLinearMeter(). This method is available in the classes:
- BarPlacement
- CircularAreaElement
- SpiralElement
my_placement = BarPlacement(...) my_placement.SetPlacePerLinearMeter(True)
Refer to the example:
PythonParts Examples -> ReinforcementExamples -> GeneralShapeCreation
to see, how it is done.
However, setting a length factor through Python API is currently possible only for SpiralElement. This property has yet to be exposed to other types of placements.
Quote by alexgavr97Hello, I would like to write a PythonParts, which place the reinforcement per meter and give the length factor. But I can't find required parameter in documentation. Can you give me some hints? Where should I look for this?
Hello!
To create a per meter placement, you have to look for a setter method called SetPlacePerLinearMeter(). This method is available in the classes:
BarPlacement
CircularAreaElement
SpiralElement
After you have constructed an object, you can set this value to true, like:
my_placement = BarPlacement(...)
my_placement.SetPlacePerLinearMeter(True)Refer to the example:
PythonParts Examples -> ReinforcementExamples -> GeneralShapeCreation
to see, how it is done.
However, setting a length factor through Python API is currently possible only for SpiralElement. This property has yet to be exposed to other types of placements.
Please consider for Longitudial bars of SweepBarPlacement.
When used SweepBarPlacement i usually get a separate bars which no rules and that why permeter bar can help which only mark number.