<?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 model builder, in-line variable substitution, use of 2 for one param in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-in-line-variable-substitution-use-of/m-p/676127#M22483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am setting up a geoprocessing service in ArcGIS Server v10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to be able to use 2 variables in-line for an output parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What currently works for me is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;%scratchworkspace%\FileName.zip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this one, FileName is a hard coded name, and the file always has to be named 'FileName.zip'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I would like to be able to do is concatenate the scratch workspace var and a file name var, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;%scratchworkspace%\%FileName%.zip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where %FileName% is an input parameter defined by the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My attempts so far have failed.&amp;nbsp; The model builder seems to ignore the first in-line var, and only sees the second one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone had any luck stringing something like this together? Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2012 15:06:25 GMT</pubDate>
    <dc:creator>LorenMueller</dc:creator>
    <dc:date>2012-01-11T15:06:25Z</dc:date>
    <item>
      <title>model builder, in-line variable substitution, use of 2 for one param</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-in-line-variable-substitution-use-of/m-p/676127#M22483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am setting up a geoprocessing service in ArcGIS Server v10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to be able to use 2 variables in-line for an output parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What currently works for me is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;%scratchworkspace%\FileName.zip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this one, FileName is a hard coded name, and the file always has to be named 'FileName.zip'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I would like to be able to do is concatenate the scratch workspace var and a file name var, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;%scratchworkspace%\%FileName%.zip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where %FileName% is an input parameter defined by the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My attempts so far have failed.&amp;nbsp; The model builder seems to ignore the first in-line var, and only sees the second one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone had any luck stringing something like this together? Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 15:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-in-line-variable-substitution-use-of/m-p/676127#M22483</guid>
      <dc:creator>LorenMueller</dc:creator>
      <dc:date>2012-01-11T15:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: model builder, in-line variable substitution, use of 2 for one param</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-in-line-variable-substitution-use-of/m-p/676128#M22484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This workflow is supported and should work as you've outlined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, you have a simple model, with only buffer in it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The output path of your buffer tool can point at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;%scratchworkspace%\%MyName%.shp&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You can have an input variable as a string, in the model called &lt;/SPAN&gt;&lt;STRONG&gt;MyName&lt;/STRONG&gt;&lt;SPAN&gt;, and as you'd expect, the input value of this string gets used in the 2nd output inline variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you say Modelbuilder is ignoring the first inline variable (scratchworkspace) - how so? I assume you're trying to run the model you created? Whats the output path look like from execution? Remember when running in ArcMap, the scratchworkspace inline variable is based off the Scratch Workspace environment setting. Where ever this environment setting points at, the inline variable will evaluate to that at run time and in the above example, write output there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 16:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-in-line-variable-substitution-use-of/m-p/676128#M22484</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-01-11T16:47:06Z</dc:date>
    </item>
  </channel>
</rss>

