Hello,
I have a question about the script in mechanical.
For example, I have a contact object in model A, which includes many settings. I want to reuse these settings as a contact template in some other models.
Is there any good way to export a tree object as a reusable file? Then I can import the file and modify the geometry scope to use it in a new model.
I tried to export the data like below, but the file not importable. It does not include and information.
import pickle
with open(r"A.pickle", 'wb') as f:
a=Tree.FirstActiveObject
pickle.dump(a, f)
Thanks!