@@ -123,8 +123,6 @@ def __init__(self, db_file=None, private_appdata=False, **kwargs):
123
123
if len (INSTANCES ) != 0 :
124
124
self ._app = INSTANCES [0 ]
125
125
self ._app .new ()
126
- self ._version = self ._app .version
127
- self ._disposed = True
128
126
return
129
127
if len (INSTANCES ) > 0 :
130
128
raise Exception ("Cannot have more than one embedded mechanical instance" )
@@ -334,6 +332,12 @@ def _update_all_globals(self) -> None:
334
332
def _print_tree (self , node , max_lines , lines_count , indentation ):
335
333
"""Recursively print till provided maximum lines limit.
336
334
335
+ Each object in the tree is expected to have the following attributes:
336
+ - Name: The name of the object.
337
+ - Suppressed : Print as suppressed, if object is suppressed.
338
+ - Children: Checks if object have children.
339
+ Each child node is expected to have the all these attributes.
340
+
337
341
Parameters
338
342
----------
339
343
lines_count: int, optional
@@ -366,12 +370,6 @@ def print_tree(self, node, max_lines=80, lines_count=0, indentation=""):
366
370
"""
367
371
Print the hierarchical tree representation of the Mechanical project structure.
368
372
369
- Each object in the tree is expected to have the following attributes:
370
- - Name: The name of the object.
371
- - Suppressed : Print as suppressed, if object is suppressed.
372
- - Children: Checks if object have children.
373
- Each child node is expected to have the all these attributes.
374
-
375
373
Parameters
376
374
----------
377
375
node: ExtAPI object
0 commit comments