You need to get the Clusters property from the EditorControl object, it's not directly on the document.
Change pcbDoc.Clusters to pcbDoc.EditorControl.Clusters and it should work well.
We found this yesterday afternoon. I wished Mentor would update their Online Help to show the object hierarchy! The object modelchart is nice and all, but too large to be functional.
How would you suggest the online help be updated? I usually open the automation manual PDF file, and open the bookmarks view, so I can see all the properties/methods from the object. Search works great, and you can search in the object model document too, and zoom into the interesting area very easily.
1 of 1 people found this helpful
I'm thinking if the Table of Contents was hierarchical, it would be easier to visualize.
- PCB Data Objects
- Editor Control Objects
I would think that with the Search functionality, there would be no need for the alphabetical list to elimintae any confusion.
Just my 2 cents ...