08.12.2022 - 11:30
Hi,
I'm developping a script for ceiling (sandwich panel).
It works fine, I've got an 3D model and a different 2D view as I want (all are in a PythonPart element in Allplan).
Now, I'd like to propose a rotation for the slopes but I don’t know the most effective way.
I want my 2D view keeps different from model and only 3D objects will be affected by the rotation.
...
# Create views
views = []
...
views.append(View2D([rect]))
...
views.append(View3D([polyh]))
...
# Create pythonpart
pythonpart = PythonPart("Elements",
build_ele.get_params_list(),
self._hash_value,
self._python_file,
views,
AllplanGeo.Matrix3D(),
com_prop,
self.create_reinforcement(build_ele),
self.create_attribute_list()
)
self.model_ele_list = pythonpart.create()
Best