I am automating JMP using C#. I am trying to get a Bivariate Fit Y by X Analysis with a Log Fit. ( The curve I want to use as a fit is: y = a + b*ln(x) )

I have:

JMP.Application myJMP;

JMP.Bivariate biv;

JMP.Document doc;

JMP.bivarFitTransformConstants Xtransform;

JMP.bivarFitTransformConstants Ytransform;

doc = myJMP.OpenDocument(excelFilePath);

And I think the correct function to call would be:

biv.FitTransformed(Xtransform, Ytransform, 1);

The only problem I have is I am not able to assign values for the bivarFitTransformConstants '**Xtransform'** and '**Y****transform'**. I can see in the JMP Automation Reference for the Bivariate Platform Constants that the possible Values are: None, Log, Sqrt, Square, Reciprocal and Exp.

I have tried:

Xtransform = Log;

Xtransform = "Log";

Xtransform = (JMP.bivarFitTransformConstants) "Log";

Xtransform = myJMP. (Here, I could not find the appropriate function to use to assign the value 'Log' to Xtransform.

Xtransform.Equals(Log);

Xtransform.Equals("Log");

None of these options work, and the Common message is that "I cannot convert 'string' to 'JMP.bivarFitTransformConstants' ".

What is the correct way to assign values to the JMP.bivarFitTransformConstants ?

Help is appreciated!