Oct-13-2018, 04:36 AM
Thank you for you help. I need to create a script that passes the values for each line of text (like the sample in my previous reply) to create a tree object, and then prints the properties of the object as opposed to keeping the print function in the class. I want to be able to use it differently and repeatedly. At this point I am brain dead so would welcome any suggestions and/or references to use. Preferably something on the Python for Dummies level that I can access via the web. I believe it should be something like this but I feel there is a need for a for loop unless I am trying to make this harder than it needs to be.
import tree2class
mytree2 = tree2class.tree2("DHB", "")
print "Report: ", mytree2.Block, mytree2.Plot, mytree2.Species, mytree2.DHB
myDIB = self.dhb/1.09
print myDIB
import tree2class
mytree2 = tree2class.tree2("DHB", "")
print "Report: ", mytree2.Block, mytree2.Plot, mytree2.Species, mytree2.DHB
myDIB = self.dhb/1.09
print myDIB