We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4a3c78 commit b3fe5a9Copy full SHA for b3fe5a9
1 file changed
lib/panelUtils/panel_command.py
@@ -129,8 +129,9 @@ def generatePanel(args: adsk.core.CommandEventArgs):
129
130
# group features in timeline
131
count = panelComponent.sketches.count + panelComponent.features.count + panelComponent.constructionAxes.count + panelComponent.constructionPlanes.count
132
- panelGroup = des.timeline.timelineGroups.add(newCmpOcc.timelineObject.index, newCmpOcc.timelineObject.index + count)
133
- panelGroup.name = componentName
+ if count > 1:
+ panelGroup = des.timeline.timelineGroups.add(newCmpOcc.timelineObject.index, newCmpOcc.timelineObject.index + count)
134
+ panelGroup.name = componentName
135
except Exception as err:
136
args.executeFailed = True
137
args.executeFailedMessage = getErrorMessage()
0 commit comments