Page 1 of 1

highlight direct relationships in diagram

Posted: 13 Dec 2011 09:23
by johnmorrisoniom
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

highlight direct relationships in diagram

Posted: 13 Dec 2011 10:20
by tatewise
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.

highlight direct relationships in diagram

Posted: 13 Dec 2011 14:43
by johnmorrisoniom
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%)

highlight direct relationships in diagram

Posted: 13 Dec 2011 15:02
by delwoodman
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

highlight direct relationships in diagram

Posted: 13 Dec 2011 15:12
by tatewise
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.

highlight direct relationships in diagram

Posted: 13 Dec 2011 15:31
by johnmorrisoniom
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.

highlight direct relationships in diagram

Posted: 13 Dec 2011 16:29
by Jane
Do you want to flag blood relations only or those related by marriage?

highlight direct relationships in diagram

Posted: 13 Dec 2011 16:36
by PeterR
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.

highlight direct relationships in diagram

Posted: 13 Dec 2011 17:19
by johnmorrisoniom
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.

highlight direct relationships in diagram

Posted: 13 Dec 2011 18:21
by PeterR
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)

highlight direct relationships in diagram

Posted: 14 Dec 2011 09:54
by johnmorrisoniom
Thanks again,
I have added both, just what I was after.