<?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 AliasNames as input for TIN in_feature_class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/aliasnames-as-input-for-tin-in-feature-class/m-p/151247#M11684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a TIN from a cross section layer and then turn that TIN into a raster. The catch is, the TIN tool uses the alias name not the field name (I wish I knew why), and the data has different alias names for the same fields. Does anyone know if you can use the field.aliasName as an input for the TIN tool (or for that matter as an output for the raster tool)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script seems to work if I hard code the paths, however I get a syntax error by using the field.aliasName. I tried making field.aliasName a variable and substituting that way, however no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
# Set Enviromnent Settings
from arcpy import env
env.overwriteOutput = True

# Check out any necessary licenses
arcpy.CheckOutExtension("3D")

# Argument 1 is the XSCutlines Feature Class
Input_Feature_Class = arcpy.GetParameterAsText(0)
# Argument 2 is the Directory Rasters will be stored in
Output_Raster = arcpy.GetParameterAsText(1)



fieldList = arcpy.ListFields(Input_Feature_Class,"P00*","Double")
for field in fieldList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Field Name: " + field.name
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Alias: " + field.aliasName
&amp;nbsp;&amp;nbsp;&amp;nbsp; if "FEMA" in field.aliasName:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Process: Create TIN
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Creating " + field.aliasName + " TIN"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateTin_3d(Output_TIN, "", Input_Feature_Class field.aliasName hardline &amp;lt;NONE&amp;gt;, "True")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages()

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: TIN to Raster
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Converting TIN to RASTER"
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TinRaster_3d(Output_TIN, Output_Raster + "\\" + fieldaliasName, "FLOAT", "LINEAR", "CELLSIZE 3", "1")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages()
print "Complete"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 20:39:08 GMT</pubDate>
    <dc:creator>Kevin_Smith</dc:creator>
    <dc:date>2013-10-21T20:39:08Z</dc:date>
    <item>
      <title>AliasNames as input for TIN in_feature_class</title>
      <link>https://community.esri.com/t5/python-questions/aliasnames-as-input-for-tin-in-feature-class/m-p/151247#M11684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a TIN from a cross section layer and then turn that TIN into a raster. The catch is, the TIN tool uses the alias name not the field name (I wish I knew why), and the data has different alias names for the same fields. Does anyone know if you can use the field.aliasName as an input for the TIN tool (or for that matter as an output for the raster tool)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script seems to work if I hard code the paths, however I get a syntax error by using the field.aliasName. I tried making field.aliasName a variable and substituting that way, however no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
# Set Enviromnent Settings
from arcpy import env
env.overwriteOutput = True

# Check out any necessary licenses
arcpy.CheckOutExtension("3D")

# Argument 1 is the XSCutlines Feature Class
Input_Feature_Class = arcpy.GetParameterAsText(0)
# Argument 2 is the Directory Rasters will be stored in
Output_Raster = arcpy.GetParameterAsText(1)



fieldList = arcpy.ListFields(Input_Feature_Class,"P00*","Double")
for field in fieldList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Field Name: " + field.name
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Alias: " + field.aliasName
&amp;nbsp;&amp;nbsp;&amp;nbsp; if "FEMA" in field.aliasName:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Process: Create TIN
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Creating " + field.aliasName + " TIN"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateTin_3d(Output_TIN, "", Input_Feature_Class field.aliasName hardline &amp;lt;NONE&amp;gt;, "True")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages()

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: TIN to Raster
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Converting TIN to RASTER"
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TinRaster_3d(Output_TIN, Output_Raster + "\\" + fieldaliasName, "FLOAT", "LINEAR", "CELLSIZE 3", "1")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages()
print "Complete"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 20:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliasnames-as-input-for-tin-in-feature-class/m-p/151247#M11684</guid>
      <dc:creator>Kevin_Smith</dc:creator>
      <dc:date>2013-10-21T20:39:08Z</dc:date>
    </item>
  </channel>
</rss>

