This is a helper class/context manager used with the pdg.WorkItem.makeActive method. The method returns an instace of this context manager, which makes the specified work item the active item for parameter evaluation. The work item is only active for the thread that called the method. Any parameters evaluated using both PDG and HOM APIs for the duration of the block will use this work item when evaluating @ operator and pdgattribute
functions.
For example:
with work_item.makeActive(): val = hou.parm("/obj/geo1/tx").eval()