Need Code for drawing legally adopted child in genogram

I must say that it’s hard for me to help you when your code is not formatted properly. Surround your code with lines consisting only of three backquote characters. Code Formatting

My suggestion about setting or binding Shape.strokeDashArray was assuming that you were using a normal Shape as the Link.path.
If that Shape is being drawn with a path pattern, you will need to augment your conversion function so that it returns the desired pattern.