.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C3D 2014 Problem with Surface Analysis

1 REPLY 1
SOLVED
Reply
Message 1 of 2
RPeter
352 Views, 1 Reply

C3D 2014 Problem with Surface Analysis

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

 

1 REPLY 1
Message 2 of 2
Jeff_M
in reply to: RPeter

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?

Jeff_M, also a frequent Swamper
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost