Update UtilsAssembly.py

This commit is contained in:
PaddleStroke
2026-01-26 11:35:38 +01:00
committed by GitHub
parent 31abd38514
commit 9b6de80231

View File

@@ -43,6 +43,10 @@ def activePartOrAssembly():
if doc is None or doc.ActiveView is None:
return None
activeAssembly = doc.ActiveView.getActiveObject("assembly")
if activeAssembly:
return activeAssembly
return doc.ActiveView.getActiveObject("part")