I have done a quick search for this in the Q&A/bugs but cannot find something that accomplished what I am trying to do.

I have several files which define packages of classes, each of which I include into its own diagram, and into an overview diagram.

In the overview diagram I hide the members so that I can get a view of the interrelations, but in the individual files, I'd like to be able to include the related packages, but hide anything that is not being used. Below is a minimal example - In pkg1.uml I'd like to be able to say 'hide package utils.log' to have the package removed as it is not relevant to the individual diagram.

The suggestions for using a transparent skinparam do not help, as the link between utils.cli and utils.log also needs to be removed...

The workaround route probably involves using a set of !defines, but that seems like more work than necessary. Any other suggestions?