Here is the next in my series of posts explaining how common tasks in DTS can now be implemented in SSIS.
Get a reference, within a script, to the package using DTSGlobalVariables.Parent
In DTS ActiveX scripting it was common to get a reference to the package itself using the following line of code:
Dim pkg = DTSGlobalVariables.Parent
This was used to navigate over the DTS object model, usually in order to dynamically alter the package while it is executing.
People have rightly been asking how to do the same thing in SSIS. Well, there isn't actually a SSIS equivalent. The main reason for this is that, as stated here, it is not possible to manipulate an executing package using script code. You will find that all the requirements you used to achieve in DTS are still achievable in SSIS, you just need to learn the new methods of achieving them.
-Jamie