* Display Multiple Relationships in Pedigree Diagrams

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
BobWard
Superstar
Posts: 413
Joined: 18 Nov 2012 01:50
Family Historian: V6.2
Location: Mesa, Arizona, USA

Display Multiple Relationships in Pedigree Diagrams

Post by BobWard » 21 Nov 2018 17:54

My family tree goes back nearly 1700 years and includes numerous royal families in Medieval times. Due to marriages between relatives within some of these ancient families, I have multiple relationship paths to these ancient people and their descendants.

Is there a way to specify which of these multiple relationships to display ( to me as the Root person) in the people boxes in an All Relatives diagram? I know this is easy when just tracing a single path between me and a given relative (using the How Related tool). But I am searching for a way to do it in an All Relatives diagram.

User avatar
LornaCraig
Megastar
Posts: 2996
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Display Multiple Relationships in Pedigree Diagrams

Post by LornaCraig » 21 Nov 2018 19:27

This topic may be redundant now, but as described in How to Suppress Spouse's Family from All Relatives Diagram (16412) you could click the expansion buttons to close off the unwanted descendant lines from some ancestors, or
you could use the Family Connection Mapper to mark all the routes you don't want to display, then Select Route Boxes, then Hide Selected Boxes.
Lorna

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Display Multiple Relationships in Pedigree Diagrams

Post by tatewise » 21 Nov 2018 20:00

I'm not sure Bob necessarily wants to doctor the tree branches.
What he wants is to choose which relationship to show in each Diagram box.

The Diagram Text Scheme Items involve the =Relationship(...) function that allows the relationship of each person to be shown with respect to any Individual such as the File Root or the Diagram Root or any Record Id. It also allows the closest, or 2nd closest, or 3rd closest, etc, relationship to be shown.

In Diagram > Options > Text > Edit the Available Items include Relationship to File Root.
(It also includes Relationship to Chart Root but its Template is blank for some unknown reason.)

The general Template expression is:
=Relationship(FileRoot(),%INDI%,TEXT,1)
Where FileRoot() is the person against whom the relationship applies; the File Root in this case.
Instead %CUR_DGM_ROOT% would produce the relationship against the Diagram/Chart Root person.
The last digit identifies whether the 1st, 2nd, 3rd, etc, closest relationship is shown.

Is this the sort of information you need?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
BobWard
Superstar
Posts: 413
Joined: 18 Nov 2012 01:50
Family Historian: V6.2
Location: Mesa, Arizona, USA

Re: Display Multiple Relationships in Pedigree Diagrams

Post by BobWard » 21 Nov 2018 21:05

Perhaps it would be best to give a specific example of what is happening, versus what I would like to happen.

With me as the Root individual, Henry I Beauclerc (c.1068-1135) is listed in the All Relatives diagram property box as Relationship to L. Ward (me): "wife's great (x28) grandfather".

That is a true relationship, but I also have several direct relationships to Henry, not connected to my wife. For example, Henry is also my "1st cousin 29 times removed of Robert Lee Ward".

What I am trying to do is force the All Relatives diagram to list Henry's direct relationship to me rather than listing him as a relative of my wife. If I understand Mike's suggestion correctly, I think it will do this.

Update: I just implemented Mike's suggestion and it did produce Henry's direct relationship to me rather than my wife. The only problem is that I have these multiple relationship paths through hundreds of people back in that era - sometimes they list me as the first direct relative and other times they list my wife.

Therefore, if I set the "TEXT," digit to say "2", it will work correctly for some ancestors, but not others, i.e., in other relationships I may have to set the digit to 5, 7, 8, etc. to find a direct relationship to me, other than my wife. Do not believe there is a solution for that issue.

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Display Multiple Relationships in Pedigree Diagrams

Post by tatewise » 21 Nov 2018 21:27

Yes, the relationship shown is the closest, which is via your wife and ~28 generations.
What you want is probably 2nd closest, as it involves your cousin and ~29 generations.
So to show both you will need:
1st Rel to me: =Relationship(FileRoot(),%INDI%,TEXT,1)
and
2nd Rel to me: =Relationship(FileRoot(),%INDI%,TEXT,2)
and perhaps also
3rd Rel to me: =Relationship(FileRoot(),%INDI%,TEXT,3)
If the latter relationships do not exist then nothing is produced.

You need all of them, because for each Individual you don't know which relationship is what you consider the direct one.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Display Multiple Relationships in Pedigree Diagrams

Post by tatewise » 21 Nov 2018 22:02

It may be possible to eliminate relationships via you wife by using the =RelationCode(...) function.
=RelationCode(FileRoot(),%INDI%,SPOUSE_START,1) has the value 0 if your wife is not involved, and 1 if she is.

So these might work:
=TextIf(RelationCode(FileRoot(),%INDI%,SPOUSE_START,1) = 0,Text("Rel: " . Relationship(FileRoot(),%INDI%,TEXT,1)),)
and
=TextIf(RelationCode(FileRoot(),%INDI%,SPOUSE_START,2) = 0,Text("Rel: " . Relationship(FileRoot(),%INDI%,TEXT,2)),)
and
=TextIf(RelationCode(FileRoot(),%INDI%,SPOUSE_START,3) = 0,Text("Rel: " . Relationship(FileRoot(),%INDI%,TEXT,3)),)
et seq...

If the first one of those that displays anything is what you want, then it should be possible to suppress all the rest, by ticking the option to Only output if previous item blank.

My experiments seem to suggest it should work, and just show the closest relationship NOT via you wife.

After plenty of those conditional Used Items, you could add as a backstop:
Rel: =Relationship(FileRoot(),%INDI%,TEXT,1) with Only output if previous item blank ticked.
Then if there is no direct relationship to you, the relationship via your wife is shown.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
BobWard
Superstar
Posts: 413
Joined: 18 Nov 2012 01:50
Family Historian: V6.2
Location: Mesa, Arizona, USA

Re: Display Multiple Relationships in Pedigree Diagrams

Post by BobWard » 21 Nov 2018 23:51

Great suggestions, Mike. I will play around with those and see what I can generate.

Many thanks,
Bob

avatar
BobWard
Superstar
Posts: 413
Joined: 18 Nov 2012 01:50
Family Historian: V6.2
Location: Mesa, Arizona, USA

Re: Display Multiple Relationships in Pedigree Diagrams

Post by BobWard » 23 Nov 2018 20:25

Mike, I was going to experiment with your suggestions today, but quickly realized that I am unsure as to how to implement these expressions.

Are these expressions supposed to be typed into the Diagram Options>Text>Edit> Edit Text Scheme Item box under Template for the Relationship to File Root box?

In other words, am I supposed to overwrite the default Template expression?

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Display Multiple Relationships in Pedigree Diagrams

Post by tatewise » 23 Nov 2018 20:51

Yes, but it might be wise to first use the Diagram > Options > Text tab and Clone your current Text Scheme giving it a meaningful name involving ... Relationships.

Then Edit that cloned Text Scheme as illustrated below:
EditRelationshipTemplate.png
EditRelationshipTemplate.png (65.38 KiB) Viewed 5499 times
You will need to add multiple Relationship to File Root items to the Used Items pane, then Edit each one.
Start with the first one as shown above for the closest (1st) relationship.
Then Copy & Paste the Template into each subsequent item and increase the 'closeness' digit in two places each time.
Also tick the Only output if previous item blank option in all but the first Relationship to File Root item.

You may need more Relationship to File Root items than I have shown above to cater for the most deviant connections.

The last Relationship to File Root item Template will be similar to the default Template:
Rel: =Relationship(FileRoot(),%INDI%,TEXT,1)
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
BobWard
Superstar
Posts: 413
Joined: 18 Nov 2012 01:50
Family Historian: V6.2
Location: Mesa, Arizona, USA

Re: Display Multiple Relationships in Pedigree Diagrams

Post by BobWard » 23 Nov 2018 23:31

Very good, thank you! I will give that a try and see what happens.

Post Reply