<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Lable Expression for relationship featureclasss in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/lable-expression-for-relationship-featureclasss/m-p/409879#M32320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This label expression below works along with a relationship class attachment linked to a line feature class. It only works great when the Domain setup for the Field "DIAMETER" does not include an inch the character. My domain for "DIAMETER" currently reads: 2,3,4&amp;amp;6 but it needs to be corrected to read 2",3"4" &amp;amp; 6". When applying the inch character(") to the domain the script errors. Can someone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Larry &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function FindLabel (&amp;nbsp; [DIAMETER] , [LINETYPE] )&lt;/P&gt;&lt;P&gt;FindLabel = ""&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Fire Service" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "FS"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Domestic" then&lt;/P&gt;&lt;P&gt;if FindLabel&amp;nbsp;&amp;nbsp; = "" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "DS"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Irrigation" then&lt;/P&gt;&lt;P&gt;if FindLabel&amp;nbsp;&amp;nbsp; = "" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "IRR"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Air Valve" then&lt;/P&gt;&lt;P&gt;if FindLabel&amp;nbsp;&amp;nbsp; = "" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "AV"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Sampling Station" then&lt;/P&gt;&lt;P&gt;if FindLabel&amp;nbsp;&amp;nbsp; = "" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "SS"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 19:29:37 GMT</pubDate>
    <dc:creator>LarryAdgate</dc:creator>
    <dc:date>2015-11-24T19:29:37Z</dc:date>
    <item>
      <title>Lable Expression for relationship featureclasss</title>
      <link>https://community.esri.com/t5/python-questions/lable-expression-for-relationship-featureclasss/m-p/409879#M32320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This label expression below works along with a relationship class attachment linked to a line feature class. It only works great when the Domain setup for the Field "DIAMETER" does not include an inch the character. My domain for "DIAMETER" currently reads: 2,3,4&amp;amp;6 but it needs to be corrected to read 2",3"4" &amp;amp; 6". When applying the inch character(") to the domain the script errors. Can someone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Larry &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function FindLabel (&amp;nbsp; [DIAMETER] , [LINETYPE] )&lt;/P&gt;&lt;P&gt;FindLabel = ""&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Fire Service" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "FS"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Domestic" then&lt;/P&gt;&lt;P&gt;if FindLabel&amp;nbsp;&amp;nbsp; = "" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "DS"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Irrigation" then&lt;/P&gt;&lt;P&gt;if FindLabel&amp;nbsp;&amp;nbsp; = "" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "IRR"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Air Valve" then&lt;/P&gt;&lt;P&gt;if FindLabel&amp;nbsp;&amp;nbsp; = "" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "AV"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;if [DIAMETER]&amp;nbsp; AND [LINETYPE] = "Sampling Station" then&lt;/P&gt;&lt;P&gt;if FindLabel&amp;nbsp;&amp;nbsp; = "" then&lt;/P&gt;&lt;P&gt; FindLabel&amp;nbsp; = [DIAMETER]&amp;nbsp; &amp;amp; "" &amp;amp; "SS"&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/lable-expression-for-relationship-featureclasss/m-p/409879#M32320</guid>
      <dc:creator>LarryAdgate</dc:creator>
      <dc:date>2015-11-24T19:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lable Expression for relationship featureclasss</title>
      <link>https://community.esri.com/t5/python-questions/lable-expression-for-relationship-featureclasss/m-p/409880#M32321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had asked something similar in maybe this will help you?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/445573"&gt;Re: Double Quote in Label Expression&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 21:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/lable-expression-for-relationship-featureclasss/m-p/409880#M32321</guid>
      <dc:creator>mneer</dc:creator>
      <dc:date>2015-11-24T21:16:03Z</dc:date>
    </item>
  </channel>
</rss>

