<?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: criteriaNameMapping.MapCorridorShape: How to skip shapecode not in the corridor in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11192829#M5378</link>
    <description>&lt;P&gt;Creating QTOCriteria from the corridor shapes and map that isn't an option for you?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I am looking for how to use this method for months, and you post it just when I figured it out &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 16:10:57 GMT</pubDate>
    <dc:creator>kovacsv1</dc:creator>
    <dc:date>2022-05-25T16:10:57Z</dc:date>
    <item>
      <title>criteriaNameMapping.MapCorridorShape: How to skip shapecode not in the corridor</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11188277#M5376</link>
      <description>&lt;P&gt;In QuantityTakeoffCriteria,&lt;/P&gt;
&lt;P&gt;There are four shape name :&lt;/P&gt;
&lt;P&gt;Base1、Base2、Base3、Transition，&lt;/P&gt;
&lt;P&gt;In corridor，the shape are&amp;nbsp;Base1、Base2、Base3、Ditch,&lt;/P&gt;
&lt;P&gt;When I&amp;nbsp;Import Criteria manually，&lt;/P&gt;
&lt;P&gt;I can skip the “Transition”，&lt;/P&gt;
&lt;P&gt;Create&amp;nbsp; the&amp;nbsp;Material List successfully。&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="465340553_0-1653358519526.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1070925i2F6253231CEA475F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="465340553_0-1653358519526.png" alt="465340553_0-1653358519526.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="465340553_1-1653358563754.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1070926i907628CAB0DD0F87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="465340553_1-1653358563754.png" alt="465340553_1-1653358563754.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Achieve the same operation using C#，&lt;/P&gt;
&lt;P&gt;If I skip the Transition(Wihtout mapping),&lt;/P&gt;
&lt;P&gt;sampleLineGrp.MaterialLists.ImportCriteria(criteriaNameMapping)&amp;nbsp;fails because the mapping is not complete。&lt;/P&gt;
&lt;P&gt;How to modify the code to achieve the results of manual operations？&lt;/P&gt;
&lt;P&gt;Thanks！！！&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="465340553_2-1653358722001.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1070927i53BCC3B186A43CD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="465340553_2-1653358722001.png" alt="465340553_2-1653358722001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;QTOCriteriaNameMapping criteriaNameMapping = new QTOCriteriaNameMapping(cdoc.Styles.QuantityTakeoffCriterias[0], sl.GroupId);
if (!criteriaNameMapping.isMappingCompleted)
{
    criteriaNameMapping.MapSurface("挖方", "原始地形曲面", surfaceId[0]);
    criteriaNameMapping.MapSurface("挖方", "开挖面", surfaceId[1]);
    criteriaNameMapping.MapCorridorShape("基床表层", "Base1", corridorId, "Base1");
    criteriaNameMapping.MapCorridorShape("基床底层", "Base2", corridorId, "Base2");
    criteriaNameMapping.MapCorridorShape("基床以下路堤", "Base3", corridorId, "Base3");
    // 如何跳过没有的造型代码？
    criteriaNameMapping.MapCorridorShape("过渡段", "Transition", corridorId, "Transition");

}
try
{
    QTOMaterialList qtoMaterialList = sampleLineGrp.MaterialLists.ImportCriteria(criteriaNameMapping);
}
catch (System.Exception ex)
{

}

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 02:23:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11188277#M5376</guid>
      <dc:creator>465340553</dc:creator>
      <dc:date>2022-05-24T02:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: criteriaNameMapping.MapCorridorShape: How to skip shapecode not in the corridor</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11192794#M5377</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May this help you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/civil-3d-customization/add-qtomateriallistcollection-to-samplelinegroup/td-p/11099311" target="_blank"&gt;https://forums.autodesk.com/t5/civil-3d-customization/add-qtomateriallistcollection-to-samplelinegroup/td-p/11099311&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 15:53:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11192794#M5377</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2022-05-25T15:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: criteriaNameMapping.MapCorridorShape: How to skip shapecode not in the corridor</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11192829#M5378</link>
      <description>&lt;P&gt;Creating QTOCriteria from the corridor shapes and map that isn't an option for you?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I am looking for how to use this method for months, and you post it just when I figured it out &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 16:10:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11192829#M5378</guid>
      <dc:creator>kovacsv1</dc:creator>
      <dc:date>2022-05-25T16:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: criteriaNameMapping.MapCorridorShape: How to skip shapecode not in the corridor</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11193670#M5379</link>
      <description>&lt;P&gt;Thanks！&lt;/P&gt;
&lt;P&gt;The QTOCriteria&amp;nbsp;is prepared in advance and includes a variety of situations that may be encountered，&lt;/P&gt;
&lt;P&gt;If c&lt;SPAN&gt;reate QTOCriteria from the corridor shapes&amp;nbsp;，&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Then&amp;nbsp;import the&amp;nbsp;&lt;SPAN&gt;QTOCriteria,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is better to create a list of materials directly。&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What I want to know is how to complete the mapping...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 23:55:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11193670#M5379</guid>
      <dc:creator>465340553</dc:creator>
      <dc:date>2022-05-25T23:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: criteriaNameMapping.MapCorridorShape: How to skip shapecode not in the corridor</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11193674#M5380</link>
      <description>&lt;P&gt;What we didn't solve was the same problem。&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="465340553_0-1653523054304.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1072083iD02CABBB9B5282B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="465340553_0-1653523054304.png" alt="465340553_0-1653523054304.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 23:57:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11193674#M5380</guid>
      <dc:creator>465340553</dc:creator>
      <dc:date>2022-05-25T23:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: criteriaNameMapping.MapCorridorShape: How to skip shapecode not in the corridor</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11195029#M5381</link>
      <description>&lt;P&gt;Okay, I'm not sure if it is possible to make it complete, I just wanted suggest a workaround. You could create QTOCriteria from the preferred shapes and map them within one code, so you dont have to deal with this.&lt;/P&gt;&lt;P&gt;Anyway if you find the answer pls share.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 14:24:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11195029#M5381</guid>
      <dc:creator>kovacsv1</dc:creator>
      <dc:date>2022-05-26T14:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: criteriaNameMapping.MapCorridorShape: How to skip shapecode not in the corridor</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11201216#M5382</link>
      <description>&lt;P&gt;I've been trying to get Autodesk to provide this information for YEARS. So far&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/523981"&gt;@TimYarris&lt;/a&gt;&amp;nbsp;and the rest of the Autodesk development team have been unable to provide an answer or provide a change in the API for it. It is sad that Autodesk&amp;nbsp; Infrastructure group has lost the ability to create, and support, an API.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 00:18:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/criterianamemapping-mapcorridorshape-how-to-skip-shapecode-not/m-p/11201216#M5382</guid>
      <dc:creator>Civil3DReminders_com</dc:creator>
      <dc:date>2022-05-30T00:18:05Z</dc:date>
    </item>
  </channel>
</rss>

