Custom Properties (Assembly) & Detail Drawings

I am pretty new to SolidWorks API, but have managed to createa few useful macros. I have 2 questions for you all. As you mayknow, Inventor (sorry for the dirty word) has an addon calledYIPPEE. Is there a way to put something together like this forSolidWorks? Currently, to update a parts custom properties, I mustopen the part and run my macro. The macro is fine, but it issomewhat time consuming when you have a lot of parts. I would likeSolidWorks to go through the tree and open the custom properties ofa part that has a keyword. Lets say this keyword is "prop" Is thispossible?

The second part of my question is about detail drawings. Utilizingthe tree search as I mentioned above, lets say the keyword is"detail". If it finds this keyword, it automatically creates adetail drawing, 3 views - no dimensions. I know how to create thesheet format for this, but I would like the part importedautomatically. When this task is complete, it goes on to the nextpart and so on. At the end, obviously the program stops.

I am not looking for a program handed to me. I just need someinsight on what direction to go. Thank you in advance for yourtime.SolidworksApi macros