Hello,
In order to do a network analysis without altering the existing data, I am creating a new GDB that will then have the 3 feature classes I need created within and then the data appended to it. However, when I try to create the feature class in my script, I get an error saying invalid characters. I looked up the error but couldn't derive a solution. Any help is greatly appreciated.
Here is my script:
outLocation <SPAN class="operator token">=</SPAN> copied_Geodatabase
fiberFC <SPAN class="operator token">=</SPAN> <SPAN class="string token">'Fiber'</SPAN>
fiberTemplate <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>mapping<SPAN class="punctuation token">.</SPAN>ListLayers<SPAN class="punctuation token">(</SPAN>mxd<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'Fiber Segments'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN>
fiber_geometry <SPAN class="operator token">=</SPAN> <SPAN class="string token">'POLYLINE'</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>CreateFeatureclass_management<SPAN class="punctuation token">(</SPAN>outLocation<SPAN class="punctuation token">,</SPAN> fiberFC<SPAN class="punctuation token">,</SPAN> fiber_geometry<SPAN class="punctuation token">,</SPAN> fiberTemplate<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>