* Standardized Place in Diagram

Questions about creating, customising and using diagrams and charts
Post Reply
User avatar
McHooty
Platinum
Posts: 43
Joined: 18 Jun 2021 09:10
Family Historian: V7
Location: North Lincolnshire, UK

Standardized Place in Diagram

Post by McHooty »

Hi

Playing with diagrams for the first time and coming up with a little problem which I hope someone can help me with.
Using the Ancestor & Descendant Diagram I'm trying to modify the text sceme so that the Marriage Event displays the Standardized Place that I have in FH, but not having much luck. I have come up with the following, but this results in 'Marr: 26 Dec 1912 in Holy Trinity Church', whereas the Standardized Place is 'Holy Trinity Church, Goxhill'

=FactText(%CUR~FAMS>MARR%,"CS%FAMS.MARR[1].PLAC>STAN%","E_Marr: _ in _")

Any pointers would be appreciated
Michael Huteson

I may be getting older, but the hills aren't getting higher !
User avatar
tatewise
Megastar
Posts: 28488
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Standardized Place in Diagram

Post by tatewise »

%FAMS.MARR[1].PLAC>STAN% is almost a perfectly correct Data Reference for the Standardized field.
%CUR~FAMS>MARR.PLAC>STAN% is what you should use for the Marriage Standardized place.

However, it is not allowed in the position you have used in a =FactText(...) function, so is ignored.
The =FactText(...) function always operates on the regular fact date and place details.
It is only displaying the first Place part because the parameter CS specifies a Compact date and Short place.

So you need to inhibit the place display and use:
=FactText( %CUR~FAMS>MARR%, "C0", "E_Marr: _ " )

To display the Standardized field after that then append:
=CombineText( " in ", %CUR~FAMS>MARR.PLAC>STAN%, "", "" )

But what if there is no Standardized field?
Do you want to display the regular Place name? If so replace the last "" with:
CombineText( " in ", %CUR~FAMS>MARR.PLAC%, "", "" )

So the full Template expression is:
=FactText( %CUR~FAMS>MARR%, "C0", "E_Marr: _ " )=CombineText( " in ", %CUR~FAMS>MARR.PLAC>STAN%, "", CombineText( " in ", %CUR~FAMS>MARR.PLAC%, "", "" ) )

Those will display the entire Standardized or regular Place field untidied.
If you want them tidied and only some place part fields then the TextPart(...) function needs to be used.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
McHooty
Platinum
Posts: 43
Joined: 18 Jun 2021 09:10
Family Historian: V7
Location: North Lincolnshire, UK

Re: Standardized Place in Diagram

Post by McHooty »

Hi

Have now worked through your suggestions, learning along the way.
All my places have a standardized version as I use these in my customized fact sentences so didn't need to get too complicated.
Diagram now displays as intended, so job done - until the next one !!

Many Thanks
Michael Huteson

I may be getting older, but the hills aren't getting higher !
Post Reply