Message 1 of 2

Not applicable
06-03-2013
05:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.