Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetParamAtPoint in C#

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
521 Views, 2 Replies

GetParamAtPoint in C#

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,

2 REPLIES 2
Message 2 of 3
rjay75
in reply to: Anonymous

Try making the call as

 

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

Message 3 of 3
Anonymous
in reply to: rjay75

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

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

Post to forums  

Autodesk Design & Make Report