<?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 Carto Commander tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/carto-commander-tool/m-p/162430#M12445</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;BR /&gt;&lt;SPAN&gt;I have selected some features in my map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I need to store the selected features in the PLTS_CartoExceptions table located in the current production database and exclude them from cartographic feature processing by the Carto Commander tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is something that the "Exclude Unselected Features" tool does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used some codes like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

 product library and production database workspaces
inProductLibrary = "h:/project/MWQM.mdb"
inProductionDb = "h:/project/MWQM.mdb"

# AIS data model
inDataModel = "AIS Charting::10.1.0.0"

# input carto features
inFeatures = layer

# Instances maintained
inInstance = "Aeronautical::Enroute::Lower::SANFRAN::SANFRAN"

# execute Carto Commander
res = arcpy.CartoCommander_aeronautical(inProductLibrary, inProductionDb, inDataModel, inFeatures, inInstance)

print "Successfully created cartos in " + str(res.getOutput(0))

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but they don't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I use these codes to exclude unselected features in my map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will appreciate it if somebody helps me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Babak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Feb 2013 06:02:15 GMT</pubDate>
    <dc:creator>babakkasraei</dc:creator>
    <dc:date>2013-02-09T06:02:15Z</dc:date>
    <item>
      <title>Carto Commander tool</title>
      <link>https://community.esri.com/t5/python-questions/carto-commander-tool/m-p/162430#M12445</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;BR /&gt;&lt;SPAN&gt;I have selected some features in my map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I need to store the selected features in the PLTS_CartoExceptions table located in the current production database and exclude them from cartographic feature processing by the Carto Commander tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is something that the "Exclude Unselected Features" tool does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used some codes like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

 product library and production database workspaces
inProductLibrary = "h:/project/MWQM.mdb"
inProductionDb = "h:/project/MWQM.mdb"

# AIS data model
inDataModel = "AIS Charting::10.1.0.0"

# input carto features
inFeatures = layer

# Instances maintained
inInstance = "Aeronautical::Enroute::Lower::SANFRAN::SANFRAN"

# execute Carto Commander
res = arcpy.CartoCommander_aeronautical(inProductLibrary, inProductionDb, inDataModel, inFeatures, inInstance)

print "Successfully created cartos in " + str(res.getOutput(0))

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but they don't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I use these codes to exclude unselected features in my map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will appreciate it if somebody helps me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Babak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2013 06:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/carto-commander-tool/m-p/162430#M12445</guid>
      <dc:creator>babakkasraei</dc:creator>
      <dc:date>2013-02-09T06:02:15Z</dc:date>
    </item>
  </channel>
</rss>

