[Frage] How can I set a length factor for bars?

Schlagworte:
  • PythonParts
  • Reinforcement
  • Engineering
  • [AIDP-215521]

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?

Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen

Zitiert von: alexgavr97
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?

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.

Zitiert von: alexgavr97
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?

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.

Zitiert von: bmarciniec

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.