It appears that the parts list object doesn't have a .Count property which it should. You may be able to get the parent and then query the parent. It would still be a good idea to send in an ER to try and get them to add a .Count property to the parts list object.
Posted by: Terry Tyson Post date: 12/10/2012 8:02:24 AM
Let me just pop out a little solution that may work for you. I used this basic concept to auto-dimension drawings. It's somewhat involved and you shouldn't have to go to so much trouble but it should work.
The drawing view object simply contains all the lines that make up the view. Each line has a .Parent property. Create a List(Of T) and then start reading through the lines one at a time and look at the parent. If the parent doesn't exist in your List() add it, if it does, ignore it and go on to the next line. Once this process has run, your List().Count will tell you how many parts are in the view.
Posted by: Terry Tyson Post date: 12/10/2012 11:22:49 AM