* Icons, Expressions 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
Shiriki
Diamond
Posts: 70
Joined: 27 Sep 2014 10:09
Family Historian: V7
Location: Dartford, Kent, UK

Icons, Expressions Diagrams

Post by Shiriki » 21 Nov 2016 17:51

Hi

Have just started trying to use expressions to place icons beneath individual boxes on diagrams. After some time looking at the knowledge base and forums have come up with the following expressions (plagiarised from various forum threads etc.) to show Births; Baptisms, Marriages; Deaths; Burials; Cremations and the Census entries from 1841 through to 1911. For the present, I only want to show icons where I have the relevant record and an associated image so that visually I can see where I need to research further to cover gaps/omissions etc. Census expressions need a bit of work to achieve exactly what I require, but I will enhance those in slower time.
I will most likely have to re-order the INDI and FAMS census expressions so that like census years are in the same place, irrespective of it being applicable to an individual or couple.. I’m using both INDI and FAMS expressions for the various censuses as I am using a Census (co-residence) fact for a couple once they are married……see below for the expressions currently in use in their respective order:

1. =IsTrue((%INDI.BIRT.SOUR>_TYPE% = "Birth Certificate (Original)") and Exists(%INDI.BIRT.SOUR>OBJE>%))
2. =IsTrue((%INDI.BIRT.SOUR>_TYPE% = "Birth Certificate (GRO Certified Copy)") and Exists(%INDI.BIRT.SOUR>OBJE>%))
3. =IsTrue((%INDI.BIRT.SOUR>_TYPE% = "Birth Certificate (Photo Copy)") and Exists(%INDI.BIRT.SOUR>OBJE>%))
4. =IsTrue((%INDI.BAPM.SOUR>_TYPE% = "Baptism Record (Parish Register)") and Exists(%INDI.BAPM.SOUR>OBJE>%))
5. =IsTrue((%CUR~FAMS>MARR.SOUR>_TYPE% = "Marriage Certificate (Original)") and Exists(%CUR~FAMS>MARR.SOUR>OBJE>%))
6. =IsTrue((%CUR~FAMS>MARR.SOUR>_TYPE% = "Marriage Certificate (GRO Certified Copy)") and Exists(%CUR~FAMS>MARR.SOUR>OBJE>%))
7. =IsTrue((%CUR~FAMS>MARR.SOUR>_TYPE% = "Marriage Certificate (Photo Copy)") and Exists(%CUR~FAMS>MARR.SOUR>OBJE>%))
8. =IsTrue((%CUR~FAMS>MARR.SOUR>_TYPE% = "Marriage Record") and Exists(%CUR~FAMS>MARR.SOUR>OBJE>%))
9. =IsTrue((%CUR~FAMS>MARR.SOUR>_TYPE% = "Clandestine Marriage Record") and Exists(%CUR~FAMS>MARR.SOUR>OBJE>%))
10. =IsTrue((%INDI.DEAT.SOUR>_TYPE% = "Death Certificate (Original)") and Exists(%INDI.DEAT.SOUR>OBJE>%))
11. =IsTrue((%INDI.DEAT.SOUR>_TYPE% = "Death Certificate (GRO Certified Copy)") and Exists(%INDI.DEAT.SOUR>OBJE>%))
12. =IsTrue((%INDI.BURI.SOUR>_TYPE% = "Burial Record (Parish Register)") and Exists(%INDI.BURI.SOUR>OBJE>%))
13. =IsTrue((%INDI.BURI.SOUR>_TYPE% = "Burial Record (Cemetery Register)") and Exists(%INDI.BURI.SOUR>OBJE>%))
14. =IsTrue((%INDI.CREM.SOUR>_TYPE% = "Cremation Certificate (Original)") and Exists(%INDI.CREM.SOUR>OBJE>%))
15. =IsTrue((%INDI.CREM.SOUR>_TYPE% = "Cremation Record") and Exists(%INDI.CREM.SOUR>OBJE>%))
16. =IsTrue(%INDI.CENS[year=1841].SOUR>_TYPE% = "Census 1841")
17. =IsTrue(%INDI.CENS[year=1851].SOUR>_TYPE% = "Census 1851")
18. =IsTrue(%INDI.CENS[year=1861].SOUR>_TYPE% = "Census 1861")
19. =IsTrue(%INDI.CENS[year=1871].SOUR>_TYPE% = "Census 1871")
20. =IsTrue(%INDI.CENS[year=1881].SOUR>_TYPE% = "Census 1881")
21. =IsTrue(%INDI.CENS[year=1891].SOUR>_TYPE% = "Census 1891")
22. =IsTrue(%INDI.CENS[year=1901].SOUR>_TYPE% = "Census 1901")
23. =IsTrue(%INDI.CENS[year=1911].SOUR>_TYPE% = "Census 1911")
24. =IsTrue(%INDI.FAMS>CENS[year=1841].SOUR>_TYPE% = "Census 1841")
25. =IsTrue(%INDI.FAMS>CENS[year=1851].SOUR>_TYPE% = "Census 1851")
26. =IsTrue(%INDI.FAMS>CENS[year=1861].SOUR>_TYPE% = "Census 1861")
27. =IsTrue(%INDI.FAMS>CENS[year=1871].SOUR>_TYPE% = "Census 1871")
28. =IsTrue(%INDI.FAMS>CENS[year=1881].SOUR>_TYPE% = "Census 1881")
29. =IsTrue(%INDI.FAMS>CENS[year=1891].SOUR>_TYPE% = "Census 1891")
30. =IsTrue(%INDI.FAMS>CENS[year=1901].SOUR>_TYPE% = "Census 1901")
31. =IsTrue(%INDI.FAMS>CENS[year=1911].SOUR>_TYPE% = "Census 1911")


So far so good, but I have a number of instances where a person has been married twice and one three times. I’m wondering if it is possible to write a separate expression for a first, second and third marriage to show a different icon in each instance (say an M1, M2, M3 or similar) to denote a first, second or third marriage.
Now this is where it becomes complicated (well for me it does!)……consider for example a male individual who has married twice with both his wives (their first marriage in both instances) shown on the diagram. it would be nice to see two icons (say) an M1 icon and an M2 icon underneath his box but just a single M1 underneath his wives.
If the above is feasible, I guess there will have to be quite a few expressions that would have to be compiled in oder to test for the various combinations of marriage.
Any guidance as to whether the above is feasible would be most welcome as I am not sufficiently au fait with expressions to tackle them at the moment.
Additionally I have downloaded a couple of icon sets but have yet to discover suitable matching icons covering burial and cremation for those in the icon sets within the FHUG website. I have downloaded a few found on the internet and reduced those to about 32 pixels across but they are a bit naff, but will do in the short term.
Is there a recommended program (Preferably free) that people have used to design such icons so that I could use to make my own?

Thanks in advance

Best Regards to all

Shiriki

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

Re: Icons, Expressions Diagrams

Post by tatewise » 21 Nov 2016 20:24

Hi, that is an impressive set of Expressions.

Your multiple marriages are not as complex as you think, due to current limitations of the All Relatives Diagram.
I will assume you don't use Diagram > Insert into Diagram to add additional sub-trees.
Only four intermarried spouses and only three %CUR~FAMS>% can be displayed.
i.e. Wife of Relative = Husband = Wife = Husband of Relative
%CUR~FAMS>% Marriage condition Icon for Husband = Wife will appear on their boxes only.
%CUR~FAMS>% Marriage condition Icon for Wife of Relative = Husband will appear on Wife of Relative box only.
%CUR~FAMS>% Marriage condition Icon for Wife = Husband of Relative will appear on Husband of Relative box only.
So your existing expressions will work OK and let you differentiate the various possibilities.

I am as surprised as you that there are no Baptism, Burial, or Cremation Icons in the dowwnoads.

I think the standard Windows Paint utility allows BMP icons to be edited/created.
On my PC if you right-click an existing Icon BMP file and choose Edit it opens in Paint.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Shiriki
Diamond
Posts: 70
Joined: 27 Sep 2014 10:09
Family Historian: V7
Location: Dartford, Kent, UK

Re: Icons, Expressions Diagrams

Post by Shiriki » 22 Nov 2016 09:39

Hi Tatewise

Many thanks for the prompt response. However, I think you are crediting me with more knowledge of expressions than I deserve.
I have read your response a few times and believe I can see what you are getting at but don’t seem to be able to compile the respective expressions that you are alluding to.
I must admit that whilst I was trawling through the Knowledge Base I came across the following expression within ‘Using Flags and Icons and Expressions’ that I thought might do the trick if it was split down into three individual expressions with the relevant associated icons (M1,M2and M3) in each case…..at least as a starting point to build on……

=IsTrue( Exists(%INDI.FAMS>MARR.SOUR%) or Exists(%INDI.FAMS[2]>MARR.SOUR% ) or Exists(%INDI.FAMS[3]>MARR.SOUR%) )

However I seem to have come unstuck somewhere with the syntax
For example

=IsTrue(%INDI.FAMS[2]>MARR.SOUR%)) gives me a response of Expression not Valid as well as a few other combinations I have tried.

Am I barking up the wrong tree in this instance?
Any assistance will be most appreciated in resolving my confusion on these matters.

With regard to amending/designing one’s own icons once I had sent my initial email, I realised that I have a copy of Serif PhotoPlus on one of my machines so by loading in an icon from Simon Daw’s set into that application and changing the background (Pixel by pixel) of the Census icons for the respective years to a pale yellow from the original white, I now have two icons for each census. I can now associate these icons with my relevant census expressions and hence visually distinguish an individual on a census with a white background census icon and a couple with a yellow background census icon…………so from that point of view Happy Days.

Many thanks in advance

Shiriki

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

Re: Icons, Expressions Diagrams

Post by Jane » 22 Nov 2016 09:55

=IsTrue(%INDI.FAMS[2]>MARR.SOUR%)) gives me a response of Expression not Valid as well as a few other combinations I
try

=Exists(%INDI.FAMS[2]>MARR.SOUR%)

As Mike says though you would be best using CUR_FAM so your checks match the Family represented by the Spouse boxes.
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
johnmorrisoniom
Megastar
Posts: 882
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

Re: Icons, Expressions Diagrams

Post by johnmorrisoniom » 22 Nov 2016 10:05

I use the expression:

Code: Select all

=IsTrue(%INDI.FAMS[2]>MARR.SOUR>_TYPE% = "Marriage")
For Individual's 2nd Family with the number altered to cope with each icon. This will show I have a marriage Image for 2nd marriage. I use method 2 sources with type "Generic marriage" where I do not have an actual marriage entry image. I do not use images of the indices.

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

Re: Icons, Expressions Diagrams

Post by tatewise » 22 Nov 2016 11:20

Unfortunately, those FAMS Expressions do not solve Shiriki's problem for several reasons.
When a couple is shown on a Diagram the ONLY way to guarantee an Expression refers to their FAMily record is to use the CUR~FAMS> shortcut, which is why it was introduced.
That FAMily record could be FAMS[2]> for one spouse and FAMS[3]> for the other spouse, or any other combination of indexes depending on whether it is the 1st, 2nd, 3rd, 4th partnership for the two Individuals considered separately.

The FH Sample Project has a perfect example involving Julia FISH, Anthony MUNRO, Susan DOWLING, and Nigel ANDERSON.
The order of marriages is:
1) Anthony MUNRO FAMS[1] = FAMS[1] Julia FISH ... is 1st marriage for both
2) Anthony MUNRO FAMS[2] = FAMS[1] Susan DOWLING ... is his 2nd and her 1st marriage
3) Nigel ANDERSON FAMS[1] = FAMS[2] Susan DOWLING ... is his 1st and her 2nd marriage
Notice how the FAMS[index] is different for different partners for the same FAMily record, whereas CUR~FAMS> always refers to the correct record.

The All Relatives Diagram fragment for those FAMily couples is shown below.
multiplepartners.png
FH Sample Project Multiple Partners
multiplepartners.png (83.2 KiB) Viewed 9818 times
The same CUR~FAMS> based Expressions will add Icons to different boxes for each marriage:
1) will add Icons to Julia FISH on left
2) will add Icons to Anthony MUNRO and Susan DOWLING
3) will add Icons to Nigel ANDERSON on right
So it is easy to identify which marriage each Icon refers to without needing any other tactics involving M1/M2/M3 Icons nor FAMS[n] data refs.
So Shiriki, just keep your existing Expressions 5) to 9) as they are, and the above scheme will work - trust me.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Shiriki
Diamond
Posts: 70
Joined: 27 Sep 2014 10:09
Family Historian: V7
Location: Dartford, Kent, UK

Re: Icons, Expressions Diagrams

Post by Shiriki » 22 Nov 2016 13:11

Hi All

Thanks for the replies.

Please see an image below showing how my icons appear below an individual's box using my current list of Expressions:
The Bible icon represents a Baptism and the Cross/Grave represents a burial (temporary icons until I find or design something more suitable).
Icon.jpg
Boxes with icons
Icon.jpg (107.93 KiB) Viewed 9794 times
A Marriage icon appears below each of the individuals boxes and what I was hoping to achieve is to show a second icon below Robert Charles Kirk representing the second marriage to Maud (with a different icon if necessary) to indicate that I have both Marriage Certificates, without having to deduce the fact from looking for the respective icons below each of his wives........
Would I be correct in saying that this is not possible using%CUR~FAMS>% function?......I must admit to becoming somewhat lost for the moment.

Again, any pointers/advice to help my sanity most welcome....

As an aside the Census expressions for individuals/couples seem to work a treat......see below (Census icons with an off white background represent an individual entry whilst yellow represent a couple......the 01 icon has yet to be sorted out and is work in progress):
Census Icons.jpg
Census Icons.jpg (70.81 KiB) Viewed 9794 times
Best Regards

Shiriki

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

Re: Icons, Expressions Diagrams

Post by tatewise » 22 Nov 2016 14:24

You are correct.
What you request is NOT possible using CUR~FAMS> shortcut, because by definition that refers to the current shown family
(with direct relatives of the Diagram Root taking precedence).

So in your screenshot, as long as all three have a Marriage Icon you have all appropriate Sources.
If any are missing then double-click on the Individual to open their Property Box and check their Marriage facts.

What seems a simple request for your specific example, becomes impossible in the general case, because the Expression is applied to EVERY Individual in the Diagram.
The Expression in your specific example would use the INDI.FAMS[2]>MARR data ref to point to Robert's 2nd Marriage.
But let me give a scenario where it starts to unravel, with both Jane & Maud marrying a 2nd husband.
Robert KIRK FAMS[1] = FAMS[1] Jane ROOT
Robert KIRK FAMS[2] = FAMS[1] Maud KNOW
Albert ONE FAMS[1] = FAMS[2] Jane ROOT
James TWO FAMS[1] = FAMS[2] Maud KNOW
Now Robert, Jane & Maud all have a 2nd Marriage, so the Expression INDI.FAMS[2]>MARR would apply to them all, but referring to three different families, and could easily result in all three gaining the same 2nd Marriage Icon, which would be extremely confusing.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
davidf
Megastar
Posts: 951
Joined: 17 Jan 2009 19:14
Family Historian: V6.2
Location: UK

Re: Icons, Expressions Diagrams

Post by davidf » 22 Nov 2016 16:06

Ultimately any icon relating to a marriage is potentially misleading when attached to an individual. What is required is the ability to add the icon to the "marriage" line!.

At the moment the marriage line can carry a bit of information about the status of the relationship but that is it. I would very much like marriage lines and child/parent lines to be able to indicate some level of "certainty" - so we can sort of "pencil in" a "possible" relative.
David
Running FH 6.2.7. Under Wine on Linux (Ubuntu 22.04 LTS + LXDE 11)

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

Re: Icons, Expressions Diagrams

Post by johnmorrisoniom » 22 Nov 2016 16:15

using the expression I posted before I can achieve this:
Capture.JPG
Capture.JPG (65.39 KiB) Viewed 9760 times
which is what I think shiriki is looking for. No marriage icon means no image for that marriage

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

Re: Icons, Expressions Diagrams

Post by tatewise » 22 Nov 2016 16:22

But John, I don't believe that will work in all scenarios.
It just happens to work in your particular case.
Try the case I posted below where there are 4 marriages involving 5 people.
In your example what happens when Harriet and Ellen have other husbands?
AND check it works when they appear as Ancestors, Descendants, Root, etc, in different Diagrams.

BTW: It is not obvious which icon is which in your screenshot, without a little more explanation.
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

Re: Icons, Expressions Diagrams

Post by johnmorrisoniom » 22 Nov 2016 16:25

I do have a scenario where 2 individuals married 5 times and 4 times, 3 of which were to each other, and the icons work as I expect them to.

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

Re: Icons, Expressions Diagrams

Post by tatewise » 22 Nov 2016 17:07

Reading between the lines John, I assume you have a different Marriage Icon for each family instance.
i.e. for FAMS[1]>, for FAMS[2]>, for FAMS[3]>, et seq...
and no doubt that works for you, but I don't see how the Marriage Icons 'marry-up' for the same Marriage, as I think Shiriki wants.
e.g. In your example:
  1. A FAMS[1]> Icon on Charles Hind represents the same Marriage as a FAMS[1]> Icon on Harriet Smith, unless she had an earlier husband, in which case hers would be a FAMS[2]> Icon, but she might have a FAMS[1]> Icon as well for her husband not shown on Diagram.
  2. A FAMS[2]> icon on Charles Hind represents the same Marriage as a FAMS[1]> Icon on Ellen Bradshaw, unless she had an earlier husband, in which case it would be her FAMS[2] Icon too, and she might have a FAMS[1]> Icon as well for her husband not shown on Diagram.
Or perhaps I have misunderstood.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Shiriki
Diamond
Posts: 70
Joined: 27 Sep 2014 10:09
Family Historian: V7
Location: Dartford, Kent, UK

Re: Icons, Expressions Diagrams

Post by Shiriki » 22 Nov 2016 18:53

Hi Everyone

There certainly is a lot more to these expressions than I first thought.
What a fantastic resource this forum is......
Thanks for all of your ideas and guidance........will have to go away and digest the information and edit/design a few more icons.
I think my present expressions will be Ok for the moment and will have a review when I have a lot more sources (particularly census info') and images loaded into FH.
In the meantime I think I will have a lie down to recover.

Cheers

Shiriki

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

Re: Icons, Expressions Diagrams

Post by johnmorrisoniom » 23 Nov 2016 07:26

Mike,
That is what I wanted. if for example, Ellen Bradshaw did have a earlier marriage for which I had no image, then only an M2 icon would show for her, meaning I have more work to do on that branch.

I have had this box scheme since V5, and it works for me.

Post Reply