GetParamAtPoint in C#

GetParamAtPoint in C#

Anonymous
Not applicable
619 Views
2 Replies
Message 1 of 3

GetParamAtPoint in C#

Anonymous
Not applicable

Hi,

I would like to use the function GetParamAtPoint in C#, but there's something wrong with my code.

Code is like this;

 

                    double[] oCor = new double[3];
                    oCor[0] = -0.2;
                    oCor[1] = 0;
                    oCor[2] = 0;
                    double[] geussParam = new double[2];     //initializing this as 0,0 didn't make much difference
                    double[] maxDev = new double[2];
                    double[] paramsdf = new double[2];
                    
                    SurfaceEvaluator OSE = default(SurfaceEvaluator);
                    OSE = oface.Evaluator;
                    SolutionNatureEnum[] soluNatur = new SolutionNatureEnum[1];
                    OSE.GetParamAtPoint(oCor, geussParam, maxDev, paramsdf, soluNatur);

 

Currently I use this function via a dll written in vb.net, but that's not really ideal.

Does anybody have a real solution?

 

thanks,

0 Likes
Accepted solutions (1)
620 Views
2 Replies
Replies (2)
Message 2 of 3

rjay75
Collaborator
Collaborator

Try making the call as

 

OSE.GetParamAtPoint(oCor, geussParam, out maxDev, out paramsdf, out soluNatur);

0 Likes
Message 3 of 3

Anonymous
Not applicable
Accepted solution

Unfortunately the "out" parameter didn't work,

but it got me thinking, and when I use a "ref" in stead, it works.

 

Thanks for your help

0 Likes