What is changed about setting user defined contours, contourdata and elevationdata to a TinSurface in C3D 2014?
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???
This is the code that doesn't work:
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 & " - " & xmax & " : RGB(" & frmcol.R & "," & frmcol.G & "," & frmcol.B & ")") 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)
When we get the Data back in the same transaction "csurf.Analysis.GetContourData" we get the correct data back.
After a tr.commit() it seems that the data we've set is lost?
Regards,
Peter
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
Hi Peter,
Just a reminder that there is a forum specifically for C3D customization where you might have more of us C3D types looking.
As for your question, is it possibly related to the mostly unwanted change introduced with 2014?