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?
- Forum
- CAD Parametric Modelling
- PythonParts
[Question] How can I set a length factor for bars?
Show most helpful answer Hide most helpful answer
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.