* highlight direct relationships in diagram

Older V4 Queries please post for any version in the General Forum
Locked
User avatar
johnmorrisoniom
Megastar
Posts: 882
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

highlight direct relationships in diagram

Post by johnmorrisoniom » 13 Dec 2011 09:23

At the moment I use a flag to highlight direct relationships in a custom diagram. However I have to set the flag manually, so it is not always up to date.
I have an expression to pick out everyone in pool one, but I want to highlight direct relations only (no matter how distant).
I'm just getting the hang of expressions, but don't know where to dtart with this one.

ID:5642

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

highlight direct relationships in diagram

Post by tatewise » 13 Dec 2011 10:20

I am not sure where you apply your Expressions.
Are you using a Query so that you can use Set Flag on Result Set Records?
Are you using Diagram Options to conditionally alter Box contents/features?

The functions to look at are =IsAncestorOf() and =IsDescendantOf().

If using a Query then on the Rows tab there is the Relations tab where you can specify Ancestor &/or Descendant relationships.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
johnmorrisoniom
Megastar
Posts: 882
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

highlight direct relationships in diagram

Post by johnmorrisoniom » 13 Dec 2011 14:43

It's diagram options to put a shadow round a box o a direct relation (including cousins no matter how distant)of the file root person.
Wouldn't the Ancestor/descendant function just show up/down and not sideways?
or is this the one to use
=IsRelativeOf(FileRoot(), %INDI%)

avatar
delwoodman
Famous
Posts: 125
Joined: 15 Sep 2007 10:42
Family Historian: V6.2
Location: Brighton, East Sussex, UK

highlight direct relationships in diagram

Post by delwoodman » 13 Dec 2011 15:02

If by relatives you mean all ancestors and all descendants of those ancestors can you not achieve what you want simply by editing the box type features for ancestor and descendant boxes in the boxes tab of Diagram Options? If you hit edit features you will see that there is a shadow option.

Derek
Running Windows 7 64 bit

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

highlight direct relationships in diagram

Post by tatewise » 13 Dec 2011 15:12

I thought by direct relation you meant direct ancestors/descendants.
Please describe what you believe is the difference between what you call direct relation as opposed to everyone in the same Pool.
People like Cousins and Brothers-in-law are all in the same Pool if they are related.
Perhaps you mean blood relations, that excludes relations through marriage.

You mention File Root twice. But do you mean Diagram Root, because they are not necessarily the same Individual?
This is important because you can set diagram Box features with Expressions/Functions that use File Root, but not Diagram Root.

File Root is the Individual selected in the Focus Window when you click the Home (Got To File Root) button.

Diagram Root is the Individual (or Couple) selected as the root for a diagram, and can be different in different diagrams, and different from the File Root.

N.B.
delwoodman's suggestion works with respect to Diagram Root not File Root.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
johnmorrisoniom
Megastar
Posts: 882
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

highlight direct relationships in diagram

Post by johnmorrisoniom » 13 Dec 2011 15:31

I am trying to highlight those people who show a relationship to the file [not diagram] root (I always leave the file root as the same person in each project, in my main project it is Me), as shown in the column in the records pane.
These are all in pool 1, but not everyone in pool 1 is classed as a direct (as opposed to indirect) relative.

At the moment I go to the records pane, sort by relationship to root, select all the records with a text entry in that column and then asign a flag to those records.

This is obviousle cumbersome and time consuming, and I was trying to use an expression to do the work for me.

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

highlight direct relationships in diagram

Post by Jane » 13 Dec 2011 16:29

Do you want to flag blood relations only or those related by marriage?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

highlight direct relationships in diagram

Post by PeterR » 13 Dec 2011 16:36

I think you can achieve what you want without needing to set Flags for Individuals, either manually or automatically. You can use the Diagram Options and click the Boxes tab. Then click << Add Condition and click on Expression. The expression you need is indeed:

Code: Select all

=IsRelativeOf(FileRoot(),%INDI%)
You can then select the Box Features you want to see for your direct relatives.
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)

User avatar
johnmorrisoniom
Megastar
Posts: 882
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

highlight direct relationships in diagram

Post by johnmorrisoniom » 13 Dec 2011 17:19

Thanks for the help,
I had tried that expression, and didn't get what I was expecting.
I then realised I had to remove the shadow from the flag before it would work.
Thanks to everyone for your input.

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

highlight direct relationships in diagram

Post by PeterR » 13 Dec 2011 18:21

OK.  What I do, rather than some sort of highlight for direct relationships, is to include the following expression as a Text Scheme Item:

Code: Select all

=Relationship(FileRoot(),%INDI%,TEXT,1)
Peter Richmond (researching Richmond, Bulman, Martin, Driscoll, Baxter, Hall, Dales, Tyrer)

User avatar
johnmorrisoniom
Megastar
Posts: 882
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

highlight direct relationships in diagram

Post by johnmorrisoniom » 14 Dec 2011 09:54

Thanks again,
I have added both, just what I was after.

Locked