Kerry,
Nice!
I was hoping there was an out of the box function like your kdub:dotted-pair-p. Apparently not. Thanks for posting that.
Your comment about my ToList routine returning nested lists sent me into an in depth review of ToList. I have never identified a case where tolist returned nested lists, but it certainly looks like that is a possibility. Because of that, I changed ToList to use ssname instead of ssnamex. I had originally used ssnamex with the thought that it may return sub-entities, but I'm not seeing it now. It's strange. SSGET gives one the ability to select sub-entities, but I see no way to get to those. I thought ssnamex would do that but I don't see how.
Thanks for the help