The code below was written a while back while learning about querying part families with the NXOpen API. When run, the code below will look at the current work part and take one of several possible actions. No matter what, the code will report the current part family save directory.
If the work part is a family template, it will report such and attempt to list the members. If a member part is open in the current session, the journal will check to see if it is up to date. If the member is not up to date, the journal will attempt to update it.