Skip to content

Create PythonPart

The PythonPartUtil class is used to create the PythonPart as follows:

from PythonPartUtil import PythonPartUtil

...

view_ele_3d = []

polyhed = ...

...

pyp_util = PythonPartUtil()

pyp_util.add_pythonpart_view_2d3d(AllplanBasisEle.ModelElement3D(com_prop, polyhed))
pyp_util.add_pythonpart_view_3d(view_ele_3d)

model_ele_list = pyp_util.create_pythonpart(build_ele)