In Allplan 2026, we have the execution_event API to separate the reactivation PythonPart and the association PythonPart using eConnection and eProperties. However, in Allplan 2025, I can’t find any way to separate these events. Could you please give me some advice on how to achieve this?
Support Forum
- Forum
- CAD Parametric Modelling
- PythonParts
Issue with Separating Reactivation and Association Events Using execution_event in Allplan 2025
Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen
Hi,
These events appeared in ALLPLAN 2026 in the BaseScriptObject and replaced the "is_only_update" property for better granularity when a PythonPart is being updated. IN ALLPLAN 2025 you can use "is_only_update" to distinguish between the case of a PythonPart being modified by the user or being updated. But note, that "being updated" can occur also in other situations, like change of plane references (if the PythonPart connects to any). I guess, it should be fine for your case.
- In case of new PythonPart being created: both is_only_update and modification_ele_list.is_modification_element() evaluate to False
- In case of reactivation, the first one evaluates to False, the second to True.
- In case of an update (e.g. due to an association) both evaluate to True
Cheers,
Bart
Hi,
These events appeared in ALLPLAN 2026 in the BaseScriptObject and replaced the "is_only_update" property for better granularity when a PythonPart is being updated. IN ALLPLAN 2025 you can use "is_only_update" to distinguish between the case of a PythonPart being modified by the user or being updated. But note, that "being updated" can occur also in other situations, like change of plane references (if the PythonPart connects to any). I guess, it should be fine for your case.
- In case of new PythonPart being created: both is_only_update and modification_ele_list.is_modification_element() evaluate to False
- In case of reactivation, the first one evaluates to False, the second to True.
- In case of an update (e.g. due to an association) both evaluate to True
Cheers,
Bart