Hello,
I'm trying to solve an issue with my interactor that creates a PythonPartGroup containing reinforcement.
The general idea is to create several PythonParts with geometry and reinforcement, and then group them into a PythonPartGroup, as shown below:
#Create reinforcement as PythonPart pyp_util = PythonPartUtil() pyp_util.add_reinforcement_elements(reinforcement_list) reinf_PP = pyp_util.get_pythonpart(build_ele) #Collect PythonParts to create PythonPartGroup pythonpart_group = PythonPartGroup.from_build_ele(build_ele) pythonpart_group.append(bottom_plate_PP) #bottom_plate_PP created in a different place as PythonPart pythonpart_group.append(reinf_PP) return pythonpart_group.create()
Everything works fine, except for one issue: when I modify the PythonPartGroup, the geometry and reinforcement within the PythonParts are updated correctly, but the reinforcement from the previous state remains visible in the viewport. However, it isn’t "real" reinforcement, as it disappears if I use the "Reorganize Drawing File" command.
I encountered the same behavior when using the "old" method for creating PythonPartGroups (not using pyp_util). I’m wondering if this is "normal" behavior or if there’s a way to refresh the duplicated reinforcement automatically so it clears from the viewport without needing to reorganize the drawing file.
Hope above is clear, any hints would be greatly appreciated!
Kind regards,