Assembly: Introduce 'Exploded Views'

This commit is contained in:
PaddleStroke
2024-03-08 09:58:12 +01:00
committed by Yorik van Havre
parent 6a834422e7
commit 687843ff41
18 changed files with 2402 additions and 1 deletions

View File

@@ -603,6 +603,20 @@ def getJointGroup(assembly):
return joint_group
def getViewGroup(assembly):
view_group = None
for obj in assembly.OutList:
if obj.TypeId == "Assembly::ViewGroup":
view_group = obj
break
if not view_group:
view_group = assembly.newObject("Assembly::ViewGroup", "Exploded Views")
return view_group
def isAssemblyGrounded():
assembly = activeAssembly()
if not assembly: