Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - spxuser

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Element "ToDo"s
« on: December 28, 2003, 02:58:11 pm »
I'm trying to write an addin that gets a list of all "ToDo's" in a project, both project-wide and each one associated with individual elements. It seems to me somewhat awkward to have to select an element first before going to the Maintenance Tab and seeing whether or not the element has a ToDo associated with it or not. What I want is a list of All ToDos that I can click on and edit from a global list.

The trouble is, getting the list by iterating thru the packages and elements within each package is dog-slow! For a relatively small project, using your sample code for Iterating thru an EAP file, takes 5 - 10 seconds before my dialog box with the completed list of 3 global ToDos and 3 class-associated ToDos will come up. I can only imagine how long it would take for a real-world size project!

I thought of using a query to get at the actual database itself, in the t_objectproblems table for local ToDos, and the t_tasks table for the project-wide ToDos, but I can't find where to get the filename of the database from a Repository object.

Am I overlooking something easy, here? HELP!

TIA

Pages: [1]