@ivelin.peychev It worked like a charm
I used the string version of your suggestion:
nameTree = DataTree[type(str())]()
where the data looked something like this:
name = (5, 2.0, 3.0, 'point')
…and added to the tree like this (converting the above to a string):
FYI, The export script I made custom names ‘sets’ of objects. The name of every object in each set begins with the same number. When importing the objects I use that number to add those matching objects to the same tree branch. Basically I’m exporting/ importing groups without having to use groups.
The exported object name also contains other useful data about the objects besides what set they belong to that was generated in the Grasshopper file that created them. Bringing that data in through the import process saves me having to regenerate the information in the new Grasshopper file.
Thanks again for your help.