Skip to content

PythonPart Transaction

Class PythonPartTransaction offers extended possibilities when creating a PythonPart. The class executes a transaction inside Allplan, which includes:

  • the creation/modification of the elements in the Allplan model
  • the rearranging of the reinforcement position numbers (optional)
  • the creation of a connection between existing elements and the PythonPart (optional)
  • the creation of the undo step

Example

For a complete usage of PythonPartTransaction, see the example ModelPolygonExtrudeInteractor located in:

  • …\etc\Examples\PythonParts\InteractorExamplesGeneral\ModelPolygonExtrudeInteractor.pyp
  • …\etc\PythonPartsExampleScripts\InteractorExamplesGeneral\ModelPolygonExtrudeInteractor.py