<?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: add profile programatically using .net in 2012? in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409473#M19813</link>
    <description>&lt;P&gt;I guess when LDT gets retired, so does its definitions of what objects are.&lt;/P&gt;&lt;P&gt;Who needs EG profiles anyway.....&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2012 20:54:38 GMT</pubDate>
    <dc:creator>JamesMaeding</dc:creator>
    <dc:date>2012-04-11T20:54:38Z</dc:date>
    <item>
      <title>add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407629#M19798</link>
      <description>&lt;P&gt;I'm not finding any way to add a profile to an alignment using .net api.&lt;/P&gt;&lt;P&gt;Is com the only way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get at pvis via .net, so seems off they would leave out ability to add profiles.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 21:32:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407629#M19798</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-10T21:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407685#M19799</link>
      <description>&lt;P&gt;You can do this in .NET.&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A title="Help and sample code" href="http://docs.autodesk.com/CIV3D/2012/ENU/API_Reference_Guide/net/Index.html" target="_blank"&gt;THIS&lt;/A&gt;....&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 22:12:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407685#M19799</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2012-04-10T22:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407697#M19800</link>
      <description>&lt;P&gt;I have to say, you have me stumped.&lt;/P&gt;&lt;P&gt;I looked around ofr use of civilwrapper and found Isaac Rodriguez saying its only for internal use:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://civilizeddevelopment.typepad.com/civilized-development/2012/01/updated-civil-3d-2012-api-reference-guide.html"&gt;http://civilizeddevelopment.typepad.com/civilized-development/2012/01/updated-civil-3d-2012-api-reference-guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the VAlignment class, but is this some accidental documentation that we really should not rely upon for production apps?&lt;/P&gt;&lt;P&gt;any examples of its use?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 22:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407697#M19800</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-10T22:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407711#M19801</link>
      <description>&lt;P&gt;Well, that link should have taken you to the correct spot. Let's try this:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://docs.autodesk.com/CIV3D/2012/ENU/API_Reference_Guide/net/html/e60366cd-561b-cc32-923b-159763f02d20.htm" target="_blank"&gt;http://docs.autodesk.com/CIV3D/2012/ENU/API_Reference_Guide/net/html/e60366cd-561b-cc32-923b-159763f02d20.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 22:35:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407711#M19801</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2012-04-10T22:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407731#M19802</link>
      <description>&lt;P&gt;exactly, but see anything that lets you make a profile given a list of pvis or array of doubles for sta, elev...? You can only create via layout or surface.&lt;/P&gt;&lt;P&gt;Then add that profile to the profileIDs collection of the alignment? Notice the profile collection of an alignment is only exposed via a get function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I am missing the obvious, but both things point towards com only.&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 23:05:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407731#M19802</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-10T23:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407743#M19803</link>
      <description>&lt;P&gt;Once you create the profile you add the ProfilePVI's to the ProfilePVICollection of the Profile you just created. It took me a bit to figure out the steps needed, and that code I have at home so this just going by what I'm seeing in that help and memory. But, it does work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 23:24:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407743#M19803</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2012-04-10T23:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407745#M19804</link>
      <description>&lt;P&gt;You can also add Profile Entities.&lt;/P&gt;
&lt;P&gt;There is a VB.NET example of how to do this in the 2012 Samples folder.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 23:28:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407745#M19804</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2012-04-10T23:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407749#M19805</link>
      <description>&lt;P&gt;ok, that makes sense.&lt;/P&gt;&lt;P&gt;I guess I thought CreatebyLayout did something different, but the params seem to indicate it just makes the basic profile object. Good enough, thanks a bunch.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 23:31:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407749#M19805</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-10T23:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407751#M19806</link>
      <description>&lt;P&gt;nice, the stupid examples are different between vb and C#. I never ever would have though to look under VB folder if not in C# one.&amp;nbsp; its the wild west indeed.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 23:33:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407751#M19806</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-10T23:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407773#M19807</link>
      <description>&lt;P&gt;Glad I could help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you find a response which answers your question, &lt;FONT color="#008000"&gt;please be sure to accept the actual post which helped you as the solution&lt;/FONT&gt;. This will help future searchers quickly find answers to their own questions. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 00:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407773#M19807</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2012-04-11T00:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407783#M19808</link>
      <description>&lt;P&gt;done, good reminder.&lt;/P&gt;&lt;P&gt;I started another thread on when and where to use a documentlock, that is another issue i am working through.&lt;/P&gt;&lt;P&gt;Seems like every tool that does something will be locking the doc.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 00:08:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407783#M19808</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-11T00:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407865#M19809</link>
      <description>&lt;P&gt;I'm far from being an expert, but I've found I only need to use the Document lock when 1.) I use a modeless dialog, 2.) I use a palette, 3.) I use the CommandFlags.Session parameter. There may be other times, but I'm not recalling anything at the moment.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 02:09:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3407865#M19809</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2012-04-11T02:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3408707#M19810</link>
      <description>&lt;P&gt;yah, that modeless dialog one is big for me, since I have a few main dialogs that float.&lt;/P&gt;&lt;P&gt;Guess I just put a using doclock at the top of the button callback.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 15:06:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3408707#M19810</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-11T15:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409407#M19811</link>
      <description>&lt;P&gt;how about adding an EG profile by list of PVIs?&lt;/P&gt;&lt;P&gt;Do we just forget EG profiles by user?&lt;/P&gt;&lt;P&gt;I guess Autodesk is deciding they can only be generated by a (C3D) surface....&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 20:32:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409407#M19811</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-11T20:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409459#M19812</link>
      <description>&lt;P&gt;Well, you can't do that directly in C3D, either, so it's no surprise there's no API for it. Instead, you can mimic what one would do in C3D....create a 3dpoly from the known points, offset (I know you can't directly offset a 3dpoly, but we all have helper functions to do this, don't we?), create surface from the 3 3dpolys, create the profile from this surface, change it to Static, delete the surface and 3 3dpolys.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that I have not actually used this approach, but it's the first thing I'd test.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 20:50:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409459#M19812</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2012-04-11T20:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409473#M19813</link>
      <description>&lt;P&gt;I guess when LDT gets retired, so does its definitions of what objects are.&lt;/P&gt;&lt;P&gt;Who needs EG profiles anyway.....&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 20:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409473#M19813</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-11T20:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409505#M19814</link>
      <description>&lt;P&gt;Actually, what is an EG profile other than a type and a name? Oh, and VC's can't be added to EG types, anything else? So to create a profile by PVI, create a FG profile by the PVI's and assign it an EG style. I can't think of any reason why this wouldn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 21:09:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409505#M19814</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2012-04-11T21:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: add profile programatically using .net in 2012?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409513#M19815</link>
      <description>&lt;P&gt;I recall that in LDT, you could have tons of pvis in an EG prof, while an FG would choke at about 200 or something.&lt;/P&gt;&lt;P&gt;I don;t expect those limitations in C3D.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 21:11:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/add-profile-programatically-using-net-in-2012/m-p/3409513#M19815</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2012-04-11T21:11:22Z</dc:date>
    </item>
  </channel>
</rss>

