<?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: How to create feature lines from objects (alignments) using the C# API in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11903625#M3763</link>
    <description>&lt;P&gt;Sorry, I don't explain myself well.&lt;BR /&gt;What I have is an alignment, with several profiles.&lt;BR /&gt;What I want is to make a characteristic line using one of the profiles of said alignment.&lt;BR /&gt;Mention that it is very important that the new characteristic line is dynamic.&lt;BR /&gt;Anyway thanks for your answer.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 07:36:57 GMT</pubDate>
    <dc:creator>daniel_rosell_moreno</dc:creator>
    <dc:date>2023-04-18T07:36:57Z</dc:date>
    <item>
      <title>How to create feature lines from objects (alignments) using the C# API</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11900949#M3761</link>
      <description>&lt;P&gt;Good morning, I've been trying to do this for a while now but I haven't been able to do it.&lt;BR /&gt;The idea is that given a list of alignments, convert each of them into a dynamic feature line.&lt;BR /&gt;From the interface it is very easy, in home, click "Feature line"&amp;gt;"Create Feature Lines from Alignment".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I look forward to your responses and thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 08:20:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11900949#M3761</guid>
      <dc:creator>daniel_rosell_moreno</dc:creator>
      <dc:date>2023-04-17T08:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create feature lines from objects (alignments) using the C# API</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11903252#M3762</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13560584"&gt;@daniel_rosell_moreno&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HI ... TRY&lt;/P&gt;&lt;P&gt;1-GET&amp;nbsp;&lt;A href="https://help.autodesk.com/view/CIV3D/2022/ENU/?guid=03cc7ed4-4cb3-f0b9-a9ec-9f364b990f9c" target="_blank" rel="noopener"&gt;Polyline&lt;/A&gt; FROM&amp;nbsp;Alignment WITH &amp;nbsp; &lt;A href="https://help.autodesk.com/view/CIV3D/2022/ENU/?guid=03cc7ed4-4cb3-f0b9-a9ec-9f364b990f9c" target="_blank" rel="noopener"&gt;GetPolyline&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2- Creates a FeatureLine from the Polyline WITH&amp;nbsp; &lt;A href="https://help.autodesk.com/view/CIV3D/2022/ENU/?guid=847c818b-b459-5390-9c55-cf5903b995c0" target="_blank" rel="noopener"&gt;Create(String, ObjectId)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3- Set an elevation to existing Feature Point FROM profile &amp;nbsp;WITH&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;A href="https://help.autodesk.com/view/CIV3D/2022/ENU/?guid=f285572e-698e-a8b0-e6d4-75389c94077e" target="_blank" rel="noopener"&gt;&amp;nbsp;&amp;nbsp; SetPointElevation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4- Inserts a PI point along the FeatureLine FROM&amp;nbsp; (profile entities&amp;nbsp; WITH&amp;nbsp;&amp;nbsp; &lt;A href="https://help.autodesk.com/view/CIV3D/2022/ENU/?guid=3d606963-1c01-431e-b25e-0c92658ee95f" target="_blank" rel="noopener"&gt;Entities&lt;/A&gt;&amp;nbsp; ) WITH &lt;A href="https://help.autodesk.com/view/CIV3D/2022/ENU/?guid=618cb9b0-c917-f14b-13b7-ebccd6c44329" target="_blank" rel="noopener"&gt;InsertPIPoint&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="3.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1203488iCC2821D17C7F4E44/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.jpg" alt="3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 03:11:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11903252#M3762</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2023-04-18T03:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create feature lines from objects (alignments) using the C# API</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11903625#M3763</link>
      <description>&lt;P&gt;Sorry, I don't explain myself well.&lt;BR /&gt;What I have is an alignment, with several profiles.&lt;BR /&gt;What I want is to make a characteristic line using one of the profiles of said alignment.&lt;BR /&gt;Mention that it is very important that the new characteristic line is dynamic.&lt;BR /&gt;Anyway thanks for your answer.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 07:36:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11903625#M3763</guid>
      <dc:creator>daniel_rosell_moreno</dc:creator>
      <dc:date>2023-04-18T07:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create feature lines from objects (alignments) using the C# API</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11904001#M3764</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can you attached example drawing and explain your idea&lt;/P&gt;&lt;P&gt;I am understanding you correctly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 10:31:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11904001#M3764</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2023-04-18T10:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create feature lines from objects (alignments) using the C# API</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11904117#M3765</link>
      <description>&lt;P&gt;I have this alignment:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2023-04-18 132952.png" style="width: 272px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1203659iF231F63767184E2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de pantalla 2023-04-18 132952.png" alt="Captura de pantalla 2023-04-18 132952.png" /&gt;&lt;/span&gt;&lt;BR /&gt;And the steps I follow to create the characteristic line are the following:&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6325319174112w960h540r344" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6325319174112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6325319174112w960h540r344');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6325319174112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 11:37:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11904117#M3765</guid>
      <dc:creator>daniel_rosell_moreno</dc:creator>
      <dc:date>2023-04-18T11:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create feature lines from objects (alignments) using the C# API</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11904538#M3766</link>
      <description>&lt;P&gt;Try&amp;nbsp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13560584"&gt;@daniel_rosell_moreno&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get ngl profile&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change this line&lt;/P&gt;&lt;P&gt;(prof.ProfileType == ProfileType.FG)&lt;/P&gt;&lt;P&gt;Here's one way ... code by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;@&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// https://forums.autodesk.com/t5/civil-3d-customization/get-the-design-profile/m-p/10080874

public ObjectId GetDesignProfile(Alignment align)
        {
            var retval = ObjectId.Null;
            foreach(ObjectId id in align.GetProfileIds())
            {
                var prof = (Profile)id.Open(OpenMode.ForRead);
                if (prof.ProfileType == ProfileType.FG)
                    retval = id;
                prof.Close();
                if (retval != ObjectId.Null)
                    break;
            }
            return retval;
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 14:01:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11904538#M3766</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2023-04-18T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create feature lines from objects (alignments) using the C# API</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11906609#M3767</link>
      <description>&lt;P&gt;Ok thanks, I already have the profile with which I want to make the characteristic line. But my doubt is how to create the feature line&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:15:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11906609#M3767</guid>
      <dc:creator>daniel_rosell_moreno</dc:creator>
      <dc:date>2023-04-19T09:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create feature lines from objects (alignments) using the C# API</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11906773#M3768</link>
      <description>&lt;P&gt;&lt;SPAN&gt;what do you mean b characteristic line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I didn't understand you .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You better share some of the code&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:31:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11906773#M3768</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2023-04-19T10:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create feature lines from objects (alignments) using the C# API</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11906797#M3769</link>
      <description>&lt;P&gt;I meant feature line not&amp;nbsp;&lt;SPAN&gt;characteristic line&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:44:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-create-feature-lines-from-objects-alignments-using-the-c/m-p/11906797#M3769</guid>
      <dc:creator>daniel_rosell_moreno</dc:creator>
      <dc:date>2023-04-19T10:44:15Z</dc:date>
    </item>
  </channel>
</rss>

