<?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 C3D 2014 Problem with Surface Analysis in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/c3d-2014-problem-with-surface-analysis/m-p/3944981#M49246</link>
    <description>&lt;P&gt;What is changed about setting user defined contours, contourdata and elevationdata to a TinSurface in C3D 2014?&lt;/P&gt;&lt;P&gt;When we use the same code that works fine in C3D 2013, we don't get errors but it just don't seems to work???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code that doesn't work:&lt;/P&gt;&lt;PRE&gt;For i = 0 To UBound(srf_contours)
	Dim xmin As Double = ana_elev.Rows(i).Cells(1).Value 'Minimum van de zone
	Dim xmax As Double = ana_elev.Rows(i).Cells(0).Value 'Maximum van de zone
	Dim frmcol As Drawing.Color = ana_elev.Rows(i).Cells(2).Style.BackColor
	'Dbug(xmin &amp;amp; " - " &amp;amp; xmax &amp;amp; " : RGB(" &amp;amp; frmcol.R &amp;amp; "," &amp;amp; frmcol.G &amp;amp; "," &amp;amp; frmcol.B &amp;amp; ")")
	Dim xcol As Autodesk.AutoCAD.Colors.Color = Autodesk.AutoCAD.Colors.Color.FromRgb(frmcol.R, frmcol.G, frmcol.B)
	srf_contours(i) = New SurfaceAnalysisContourData(xmin, xmax, z1)
	srf_elevation(i) = New SurfaceAnalysisElevationData(xmin, xmax, xcol)
Next

csurf.Analysis.SetContourData(srf_contours)
csurf.Analysis.SetElevationData(srf_elevation)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;When we get the Data back in the same transaction "csurf.Analysis.GetContourData" we get the correct data back.&lt;/P&gt;&lt;P&gt;After a tr.commit() it seems that the data we've set is lost?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2013 12:50:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-06-03T12:50:55Z</dc:date>
    <item>
      <title>C3D 2014 Problem with Surface Analysis</title>
      <link>https://forums.autodesk.com/t5/net-forum/c3d-2014-problem-with-surface-analysis/m-p/3944981#M49246</link>
      <description>&lt;P&gt;What is changed about setting user defined contours, contourdata and elevationdata to a TinSurface in C3D 2014?&lt;/P&gt;&lt;P&gt;When we use the same code that works fine in C3D 2013, we don't get errors but it just don't seems to work???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code that doesn't work:&lt;/P&gt;&lt;PRE&gt;For i = 0 To UBound(srf_contours)
	Dim xmin As Double = ana_elev.Rows(i).Cells(1).Value 'Minimum van de zone
	Dim xmax As Double = ana_elev.Rows(i).Cells(0).Value 'Maximum van de zone
	Dim frmcol As Drawing.Color = ana_elev.Rows(i).Cells(2).Style.BackColor
	'Dbug(xmin &amp;amp; " - " &amp;amp; xmax &amp;amp; " : RGB(" &amp;amp; frmcol.R &amp;amp; "," &amp;amp; frmcol.G &amp;amp; "," &amp;amp; frmcol.B &amp;amp; ")")
	Dim xcol As Autodesk.AutoCAD.Colors.Color = Autodesk.AutoCAD.Colors.Color.FromRgb(frmcol.R, frmcol.G, frmcol.B)
	srf_contours(i) = New SurfaceAnalysisContourData(xmin, xmax, z1)
	srf_elevation(i) = New SurfaceAnalysisElevationData(xmin, xmax, xcol)
Next

csurf.Analysis.SetContourData(srf_contours)
csurf.Analysis.SetElevationData(srf_elevation)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;When we get the Data back in the same transaction "csurf.Analysis.GetContourData" we get the correct data back.&lt;/P&gt;&lt;P&gt;After a tr.commit() it seems that the data we've set is lost?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2013 12:50:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c3d-2014-problem-with-surface-analysis/m-p/3944981#M49246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-03T12:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: C3D 2014 Problem with Surface Analysis</title>
      <link>https://forums.autodesk.com/t5/net-forum/c3d-2014-problem-with-surface-analysis/m-p/3945630#M49247</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;
&lt;P&gt;Just a reminder that there is a &lt;A title="forum linkage" href="https://forums.autodesk.com/t5/AutoCAD-Civil-3D-Customization/bd-p/190" target="_blank"&gt;forum specifically for C3D&lt;/A&gt; customization where you might have more of us C3D types looking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for your question, is it possibly related to the &lt;A title="Rebuild resets analysis" href="https://forums.autodesk.com/t5/AutoCAD-Civil-3D/Civil-3D-2014-Bug-in-Surface-Rebuild/m-p/3908171#M203117" target="_blank"&gt;mostly unwanted change&lt;/A&gt; introduced with 2014?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2013 20:41:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/c3d-2014-problem-with-surface-analysis/m-p/3945630#M49247</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2013-06-03T20:41:26Z</dc:date>
    </item>
  </channel>
</rss>

