Hello - in a number of P Stand Alone Python examples associated with a number of geoprocessing tools (e.g. Add Feature Class to Terrain), there is some syntax that uses curly brackets that I dont understand and dont see documentation. In general Python I understand curly brackets are used to define "dictionaries", however use in geoprocessing tools with ArcPy seems different. Can anyone explain their use or point me to documentation?
Below is example from a tool example that uses curly brackets
Thanks
Neal
Add Feature Class To Terrain (3D Analyst)
<SPAN class="comment token"># Create the file gdb that will store the feature dataset </SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>management<SPAN class="punctuation token">.</SPAN>CreateFileGDB<SPAN class="punctuation token">(</SPAN>gdbLocation<SPAN class="punctuation token">,</SPAN> gdbName<SPAN class="punctuation token">)</SPAN>
gdb <SPAN class="operator token">=</SPAN> <SPAN class="string token">'{0}/{1}'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>gdbLocation<SPAN class="punctuation token">,</SPAN> gdbName<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Obtain spatial reference from TIN </SPAN>
SR <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Describe<SPAN class="punctuation token">(</SPAN>tin<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN>spatialReference
<SPAN class="comment token"># Create the feature dataset that will store the terrain </SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>management<SPAN class="punctuation token">.</SPAN>CreateFeatureDataset<SPAN class="punctuation token">(</SPAN>gdb<SPAN class="punctuation token">,</SPAN> fdName<SPAN class="punctuation token">,</SPAN> SR<SPAN class="punctuation token">)</SPAN>
fd <SPAN class="operator token">=</SPAN> <SPAN class="string token">'{0}/{1}'</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>gdb<SPAN class="punctuation token">,</SPAN> fdName<SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>