Hello,
do you know how to assign FaceStyle/Hatch... to BRep3D in PythonPart created with PythonPartUtil?
With older PP definition it could be done like:
brep = AllplanBasisElements.ModelElement3D(self.com_prop, self.texturedef, shell) SectionFill.add_section_filling(brep, sectfill) model_elem_list = [brep] pythonpart_shell = PythonPart("Shell", parameter_list = build_ele.get_params_list(), hash_value = build_ele.get_hash() + "Shell" , python_file = build_ele.pyp_file_name, views = hc_views, common_props = self.com_prop, attribute_list = self.create_attribute_list_shell() )
now, using PythonPartUtil:
model_ele_list = ModelEleList() model_ele_list.set_common_properties(com_prop) model_ele_list.append_geometry_3d(brep) pyp_util = PythonPartUtil() pyp_util.add_pythonpart_view_2d3d(model_ele_list) return pyp_util.get_pythonpart(build_ele)
Cannot figure out how to do this :/
Bests