[Frage] 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?

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.


Verwendung von Cookies:
Um die Webseite optimal gestalten und fortlaufend verbessern zu können, verwendet Allplan Cookies.
Durch die weitere Nutzung der Webseite erklären Sie sich mit der Verwendung von Cookies einverstanden.  -  Mehr Informationen

Schließen