hexagon logo

I have stp file that has a lot of parts in it, but I want to disable them to begin with. I thought I could do this easily with a python script but the enable method that should be inherited from object is not usable for some reason (code in details)

import Adams
 
myModel = Adams.getCurrentModel()
 
# myParts is a PartManager Class
myParts = myModel.Parts
 
 
for p in myParts:
  pp = myParts.get(p)
   
  pp.enable = 0 # This does not work. What do I use?