<?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 Re: ModelBuilder use of Variable in Output Filename possible? in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740354#M1034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes to both, and neither have made any difference.  I have written a python script that does the same thing using arcpy.mapping and am going to test that today.  I saw a comment elsewhere that you can use calculate value and arcpy.mapping to add a layer to the TOC, but I wasn’t able to get that to work.  Either I couldn’t get the syntax quite right, or you just can’t do it using calculate value.  This kinda became a puzzle to solve for me.  I have spent way too much time playing with this lol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using 10.3 if that makes any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura Becht, CFE&lt;/P&gt;&lt;P&gt;GIS Analyst – Geoprocessing&lt;/P&gt;&lt;P&gt;Representing Rick Singh, CFA | Orange County Property Appraiser&lt;/P&gt;&lt;P&gt;200 S. Orange Ave | Suite 1700 | Orlando, FL 32801&lt;/P&gt;&lt;P&gt;407.836.5908 work  | 407.836.5985 fax&lt;/P&gt;&lt;P&gt;lbecht@ocpafl.org&amp;lt;mailto:lbecht@ocpafl.org&amp;gt;  | www.ocpafl.org&amp;lt;http://www.ocpafl.org&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;http://www.ocpafl.org/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://www.facebook.com/ocpafl&amp;gt;[cid:twitter_6cdbc742-1f4d-4e8a-9574-da593d6220f1.png]&amp;lt;https://twitter.com/ricksinghocpa&amp;gt;[cid:youtube_8082825c-0b33-4ebb-80c3-d490b789ebca.png]&amp;lt;https://www.youtube.com/user/OCPAFL&amp;gt;[cid:instagram_eddac590-fdb8-4599-aa07-0677c65b9ad6.png]&amp;lt;https://instagram.com/ricksinghocpa&amp;gt;[cid:Flickr_9a626e46-c468-4d00-a657-dd7094e9b498.jpg]&amp;lt;https://www.flickr.com/photos/151885696@N03/albums&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2019 12:45:44 GMT</pubDate>
    <dc:creator>LauraBecht</dc:creator>
    <dc:date>2019-04-17T12:45:44Z</dc:date>
    <item>
      <title>ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740347#M1027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've setup a model with a variable named &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Survey_Number&lt;/SPAN&gt;&lt;SPAN&gt;, it is set as a parameter.&amp;nbsp; I use this variable in a &lt;/SPAN&gt;&lt;STRONG&gt;Select Layer by Attribute&lt;/STRONG&gt;&lt;SPAN&gt; function.&amp;nbsp; I then use &lt;/SPAN&gt;&lt;STRONG&gt;Make Feature Layer&lt;/STRONG&gt;&lt;SPAN&gt; and check it to &lt;/SPAN&gt;&lt;STRONG&gt;Add to Display&lt;/STRONG&gt;&lt;SPAN&gt;.&amp;nbsp; I have a number of surveys I want query and I was hoping I could use the variable in &lt;/SPAN&gt;&lt;STRONG&gt;Output Layer&lt;/STRONG&gt;&lt;SPAN&gt; name of the &lt;/SPAN&gt;&lt;STRONG&gt;Make Feature Layer&lt;/STRONG&gt;&lt;SPAN&gt; function.&amp;nbsp; Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Output Layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select_by_survey_result_&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Survey_Number&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you use variables to create dynamic layer names or output file names in this manner?&amp;nbsp; Or do I need to just set the &lt;/SPAN&gt;&lt;STRONG&gt;Output Layer&lt;/STRONG&gt;&lt;SPAN&gt; as a parameter as well and manually change the name?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 18:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740347#M1027</guid>
      <dc:creator>TysonSchoepflin</dc:creator>
      <dc:date>2012-11-22T18:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740348#M1028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you've got a variable called Survey_Number, you can use it in your output filename by naming it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select_by_survey_result_%Survey_Number%
 &lt;/PRE&gt;&lt;SPAN&gt;See the examples of &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Examples_of_inline_model_variable_substitution/002w0000005w000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;inline variable substitution&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:30:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740348#M1028</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-12T07:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740349#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you've got a variable called Survey_Number, you can use it in your output filename by naming it:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select_by_survey_result_%Survey_Number%
 &lt;/PRE&gt;See the examples of &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Examples_of_inline_model_variable_substitution/002w0000005w000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;inline variable substitution&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't work though. I've tried it a few times.&amp;nbsp; I get the warning message select_by_survey_result_%Survey_Number% already exists.&amp;nbsp; Regardless of the variable number.&amp;nbsp; I also have geoprocessing options set to Overwrite the outputs of geoprocessing operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, it doesn't add the layer to the map.&amp;nbsp; If I manually enter select_by_survey_result_1 for the Output Layer it works and adds it to the map.&amp;nbsp; It appears the tool is treating %Survey_Number% as a string and not a variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The variable %Survey_Number% DOES work in the sql statement.&amp;nbsp; But it doesn't work in the Output Layer text field of the Make Feature Layer tool.&amp;nbsp; Is there some other method to add the variable to the text field?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740349#M1029</guid>
      <dc:creator>TysonSchoepflin</dc:creator>
      <dc:date>2021-12-12T07:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740350#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This doesn't work though. I've tried it a few times.&amp;nbsp; I get the warning message select_by_survey_result_%Survey_Number% already exists.&amp;nbsp; Regardless of the variable number.&amp;nbsp; I also have geoprocessing options set to Overwrite the outputs of geoprocessing operations.&lt;BR /&gt;&lt;BR /&gt;Also, it doesn't add the layer to the map.&amp;nbsp; If I manually enter select_by_survey_result_1 for the Output Layer it works and adds it to the map. &lt;STRONG&gt; It appears the tool is treating %Survey_Number% as a string and not a variable.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The variable %Survey_Number% DOES work in the sql statement.&amp;nbsp; But it doesn't work in the Output Layer text field of the Make Feature Layer tool.&amp;nbsp; Is there some other method to add the variable to the text field?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you've hit the culprit in the bold text. Yes, in many instances, the variable is treated / passed / must be a string, and you will need to account for this in your code to make it work properly. E.g. convert numbers to strings or the other way around before using them in some parts of your code, like for this case with a filename.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used string variables successfully in tools of multiple models.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 21:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740350#M1030</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2012-11-22T21:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740351#M1031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think you've hit the culprit in the bold text. Yes, in many instances, the variable is treated / passed / must be a string, and you will need to account for this in your code to make it work properly. E.g. convert numbers to strings or the other way around before using them in some parts of your code, like for this case with a filename.&lt;BR /&gt;&lt;BR /&gt;I have used string variables successfully in tools of multiple models.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tired adding ' and " but neither work. I have a feeling this is not possible to have a variable in the Output Layer text field.&amp;nbsp; From other threads on this topic people seem to be using Calculate Value or creating their own script for the modelbuilder.&amp;nbsp; At this point I'm just going to run the queries by hand as I don't have time to pursue writing my own script at this point in time.&amp;nbsp; It would be great if they would support variables in all text fields of the tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10 Model Builder In-line variable substitution for input data path&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.stackexchange.com/questions/14149/arcgis-10-model-builder-in-line-variable-substitution-for-input-data-path"&gt;http://gis.stackexchange.com/questions/14149/arcgis-10-model-builder-in-line-variable-substitution-for-input-data-path&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Integrating scripts within a model&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Integrating_scripts_within_a_model/002w0000006n000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Integrating_scripts_within_a_model/002w0000006n000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 21:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740351#M1031</guid>
      <dc:creator>TysonSchoepflin</dc:creator>
      <dc:date>2012-11-22T21:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740352#M1032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a test model that selects from a layer in ArcMap and makes a feature layer.&amp;nbsp; I made the number variable as a multivalue string that I iterated over.&amp;nbsp; When I ran the model, it selected each - in this case building - number and showed it in the existing feature layer.&amp;nbsp; Only problem is it wouldn't create a new feature layer in the table of contents for some reason.&amp;nbsp; It had no problem using the variable in the new layer name, just wouldn't display the new layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 14:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740352#M1032</guid>
      <dc:creator>LauraBecht</dc:creator>
      <dc:date>2019-04-16T14:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740353#M1033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;It had no problem using the variable in the new layer name, just wouldn't display the new layer.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Have you set add to display on the output feature layer model element? If running as a tool, have you set the model element as an output parameter so it will be added to the map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 23:17:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740353#M1033</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-04-16T23:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740354#M1034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes to both, and neither have made any difference.  I have written a python script that does the same thing using arcpy.mapping and am going to test that today.  I saw a comment elsewhere that you can use calculate value and arcpy.mapping to add a layer to the TOC, but I wasn’t able to get that to work.  Either I couldn’t get the syntax quite right, or you just can’t do it using calculate value.  This kinda became a puzzle to solve for me.  I have spent way too much time playing with this lol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using 10.3 if that makes any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura Becht, CFE&lt;/P&gt;&lt;P&gt;GIS Analyst – Geoprocessing&lt;/P&gt;&lt;P&gt;Representing Rick Singh, CFA | Orange County Property Appraiser&lt;/P&gt;&lt;P&gt;200 S. Orange Ave | Suite 1700 | Orlando, FL 32801&lt;/P&gt;&lt;P&gt;407.836.5908 work  | 407.836.5985 fax&lt;/P&gt;&lt;P&gt;lbecht@ocpafl.org&amp;lt;mailto:lbecht@ocpafl.org&amp;gt;  | www.ocpafl.org&amp;lt;http://www.ocpafl.org&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;http://www.ocpafl.org/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://www.facebook.com/ocpafl&amp;gt;[cid:twitter_6cdbc742-1f4d-4e8a-9574-da593d6220f1.png]&amp;lt;https://twitter.com/ricksinghocpa&amp;gt;[cid:youtube_8082825c-0b33-4ebb-80c3-d490b789ebca.png]&amp;lt;https://www.youtube.com/user/OCPAFL&amp;gt;[cid:instagram_eddac590-fdb8-4599-aa07-0677c65b9ad6.png]&amp;lt;https://instagram.com/ricksinghocpa&amp;gt;[cid:Flickr_9a626e46-c468-4d00-a657-dd7094e9b498.jpg]&amp;lt;https://www.flickr.com/photos/151885696@N03/albums&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740354#M1034</guid>
      <dc:creator>LauraBecht</dc:creator>
      <dc:date>2019-04-17T12:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740355#M1035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran my model with the add layer script and got the same error I was getting with calculate value&lt;/P&gt;&lt;P&gt;Executing (Add Layer): AddLayer Adara_World_Gateway_BLDG_NO_1000&lt;/P&gt;&lt;P&gt;Start Time: Wed Apr 17 09:35:52 2019&lt;/P&gt;&lt;P&gt;Running script AddLayer...&lt;/P&gt;&lt;P&gt;Failed script AddLayer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;  File "D:\Scripts\Add_Layer.py", line 5, in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;http://www.ocpafl.org/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://www.facebook.com/ocpafl&amp;gt;[cid:twitter_6cdbc742-1f4d-4e8a-9574-da593d6220f1.png]&amp;lt;https://twitter.com/ricksinghocpa&amp;gt;[cid:youtube_8082825c-0b33-4ebb-80c3-d490b789ebca.png]&amp;lt;https://www.youtube.com/user/OCPAFL&amp;gt;[cid:instagram_eddac590-fdb8-4599-aa07-0677c65b9ad6.png]&amp;lt;https://instagram.com/ricksinghocpa&amp;gt;[cid:Flickr_9a626e46-c468-4d00-a657-dd7094e9b498.jpg]&amp;lt;https://www.flickr.com/photos/151885696@N03/albums&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740355#M1035</guid>
      <dc:creator>LauraBecht</dc:creator>
      <dc:date>2019-04-17T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder use of Variable in Output Filename possible?</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740356#M1036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Add Feature Layer to TOC using Calculate Value" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/479030_Add_Feature_Layer_to_TOC.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the Calculate Value tool and insert this expression below, but using your layer file name from the output of the Select Layer by Attribute tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #0000ff;"&gt;arcpy.mapping.AddLayer(arcpy.mapping.ListDataFrames(arcpy.mapping.MapDocument("CURRENT"))[0],arcpy.mapping.Layer(&lt;STRONG&gt;"%NameFormat%_Layer"&lt;/STRONG&gt; ),"TOP")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. name variable&lt;/P&gt;&lt;P&gt;2. Make Feature Layer tool (maybe you don't need this one, but for my model i do)&lt;/P&gt;&lt;P&gt;3. Select Layer By Attribute tool&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Calculate Value tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you might get a bit closer to what you are trying to do....For myself i'm having issues with trying to do this in ArcPro since things have changed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 21:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-use-of-variable-in-output-filename/m-p/740356#M1036</guid>
      <dc:creator>CSR_GarinHirata</dc:creator>
      <dc:date>2020-01-22T21:19:54Z</dc:date>
    </item>
  </channel>
</rss>

