[Otázka] How can I set a length factor for bars?


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?

Show most helpful answer Hide most helpful answer

Citoval 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.

Citoval 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.


https://campus.allplan.com/ používá cookies  -  Více informací

Souhlasím