<?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: Profile View Band Update in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3621368#M19509</link>
    <description>&lt;P&gt;Here's the a complete code example that should work without modification. The previous code utilized some extensions on the CivilDocument to make cleaner code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://blog.civil3dreminders.com/2012/09/adding-profile-pvi-through-api.html"&gt;http://blog.civil3dreminders.com/2012/09/adding-profile-pvi-through-api.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christopher&lt;/P&gt;</description>
    <pubDate>Sat, 15 Sep 2012 08:55:01 GMT</pubDate>
    <dc:creator>Civil3DReminders_com</dc:creator>
    <dc:date>2012-09-15T08:55:01Z</dc:date>
    <item>
      <title>Profile View Band Update</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3593702#M19503</link>
      <description>&lt;P&gt;When I edit a profile by adding a PVI, the profile view bands update poorly. The band down station is removed and the new PVI band label isn't added. Is there a way to force Civil 3D to refresh the bands programattically? Going into the profile view properties refreshes the band to show correctly, but I don't think that's an acceptable solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christopher&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2012 22:23:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3593702#M19503</guid>
      <dc:creator>Civil3DReminders_com</dc:creator>
      <dc:date>2012-08-23T22:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Profile View Band Update</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3605606#M19504</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don’t see ProfileView has any API to Refresh or ForcreRefresh. &lt;BR /&gt;Did you try to use send command “&lt;STRONG&gt;regen&lt;/STRONG&gt;” via API ? Does that help ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 08:22:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3605606#M19504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-04T08:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Profile View Band Update</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3607288#M19505</link>
      <description>&lt;P&gt;Yes, I tried regen, but that didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christopher&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 04:53:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3607288#M19505</guid>
      <dc:creator>Civil3DReminders_com</dc:creator>
      <dc:date>2012-09-05T04:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Profile View Band Update</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3609002#M19506</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you send me the code snippet and related DWG file to investigate this issue ? You can drop me an email with these files, I will look into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 04:52:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3609002#M19506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-06T04:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Profile View Band Update</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3609576#M19507</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Partha,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an extraction of the code that I am using. There are also some transient graphics that get drawn, but the code is below. The Regen and UpdateScreen was primarily used to get rid of any lingering temporary objects. Replace the station and elevation to a value that works with the profile you test this on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private void RunCommand()&lt;BR /&gt;{&lt;BR /&gt;Database db = acadApp.Application.DocumentManager.MdiActiveDocument.Database;&lt;BR /&gt;Editor ed = acadApp.Application.DocumentManager.MdiActiveDocument.Editor;&lt;BR /&gt;using (Transaction tr = db.TransactionManager.StartTransaction())&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ObjectId profileObjId = civDoc.SelectProfile("Select profile section to edit: ", out profView);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Profile profSection = profileObjId.GetObject(OpenMode.ForRead) as Profile;&lt;/P&gt;&lt;P&gt;profSection.PVIs.AddPVI(editPtForm.PointStation, editPtForm.PointElevation);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ed.Regen();&lt;BR /&gt;ed.UpdateScreen();&lt;/P&gt;&lt;P&gt;tr.Commit();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static ObjectId SelectProfile(this CivilDocument civDoc, string prompt, out ProfileView profView)&lt;BR /&gt;{&lt;BR /&gt;Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;&lt;BR /&gt;PromptEntityOptions pops = new PromptEntityOptions("\n" + prompt);&lt;BR /&gt;profView = null;&lt;BR /&gt;PromptEntityResult profileRes = ed.GetEntity("AeccDbVAlignment", pops, "\nYou must select a Profile:");&lt;BR /&gt;if (profileRes.Status == PromptStatus.OK)&lt;BR /&gt;{&lt;BR /&gt;// Get the profile view of the profile.&lt;BR /&gt;Profile prof = profileRes.ObjectId.GetObject(OpenMode.ForRead) as Profile;&lt;BR /&gt;Alignment align = prof.AlignmentId.GetObject(OpenMode.ForRead) as Alignment;&lt;BR /&gt;profView = align.GetProfileViewByPoint(profileRes.PickedPoint).GetObject(OpenMode.ForRead) as ProfileView;&lt;BR /&gt;&lt;BR /&gt;return profileRes.ObjectId;&lt;BR /&gt;}&lt;BR /&gt;return ObjectId.Null;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christopher&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 14:34:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3609576#M19507</guid>
      <dc:creator>Civil3DReminders_com</dc:creator>
      <dc:date>2012-09-06T14:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Profile View Band Update</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3619974#M19508</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not able to compile your code using Civil 3D 2013 assemblies. Which release of Civil 3D are you using ?&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff6600"&gt;civDoc&lt;/FONT&gt;.SelectProfile("Select profile section to edit: ", out profView);&lt;/P&gt;
&lt;P&gt;what is this civDoc ? COM ? or .NET ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some other unresolved variables - &lt;FONT color="#ff6600"&gt;editPtForm&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;rofView = align.&lt;FONT color="#ff6600"&gt;GetProfileViewByPoint&lt;/FONT&gt;(profileRes.PickedPoint).GetObject(OpenMode.ForRead) as ProfileView;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your input required here to resolve the above issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2012 08:59:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3619974#M19508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-14T08:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Profile View Band Update</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3621368#M19509</link>
      <description>&lt;P&gt;Here's the a complete code example that should work without modification. The previous code utilized some extensions on the CivilDocument to make cleaner code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://blog.civil3dreminders.com/2012/09/adding-profile-pvi-through-api.html"&gt;http://blog.civil3dreminders.com/2012/09/adding-profile-pvi-through-api.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christopher&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2012 08:55:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/profile-view-band-update/m-p/3621368#M19509</guid>
      <dc:creator>Civil3DReminders_com</dc:creator>
      <dc:date>2012-09-15T08:55:01Z</dc:date>
    </item>
  </channel>
</rss>

