Modify Geosoft.GX.Database.InterpolateChannel

Options
TimArcher
TimArcher Posts: 6 Topaz Rank Badge
edited May 2023 in Oasis montaj
Hi All,

I would like to modify Geosoft.GX.Database.InterpolateChannel, to pop up a window on completion that displays the number of dummies that have been interpolated. I could get this information from comparing the statistics of the old and new channels, but that's not very elegant.

Is there a way to modify this GX? In the past, Geosoft supplied source code for individual GXs. But I'm not sure if they still do that for GXs that are encapsulated in geogxnet.dll.

Cheers
Tim

Answers

  • [Deleted User]
    [Deleted User] Posts: 0 mod
    Hi @TimArcher I've moved your question into the GXDeveloper forum. I think you are more likely to get an answer here.
  • Thanks, @IanMacLeod.

    I can't spot where the refiddb GX calls the InterpolateChannel method.
  • Thank you.
  • I've thought about this a bit more.

    Could I meet my original objective by creating a Geosoft script that does the following?

    + calls the InterpolateChannel method after setting appropriate parameters
    + generates a text report for the original and interpolated channels using xyzstat.gx

    That way, I wouldn't have to get my head around GXC syntax, which I'm not currently familiar with. As you can probably tell, I'm just starting out on my GX Developer adventure!

    The problem is that I don't know:

    + what parameters to specify for the InterpolateChannel method
    + how to call the InterpolateChannel method from within my Geosoft script.

    Is there somewhere that I can find out those missing pieces of information?
  • Thanks, @JacquesBeaurain.

    Actually, I was hoping to somehow call the InterpolateChannel method from the GS script (after setting its parameters in the way that you've helpfully described). Perhaps in a similar fashion to the following example:

    SETINI MATHEXPRESSIONBUILDER.CHANNELINPUTBOX="C0 = C1 - C2;"
    SETINI MATHEXPRESSIONBUILDER.CHANNELEXPRESSIONFILE=""
    SETINI MATHEXPRESSIONBUILDER.CHANNELSTOREDID0="C2"
    SETINI MATHEXPRESSIONBUILDER.CHANNELSTOREDVALUE0="Drape"
    SETINI MATHEXPRESSIONBUILDER.CHANNELSTOREDID1="C0"
    SETINI MATHEXPRESSIONBUILDER.CHANNELSTOREDVALUE1="dDRAPE"
    SETINI MATHEXPRESSIONBUILDER.CHANNELSTOREDID2="C1"
    SETINI MATHEXPRESSIONBUILDER.CHANNELSTOREDVALUE2="altitude"
    SETINI MATHEXPRESSIONBUILDER.CHANNELNUMSTORED="3"
    SETINI MATHEXPRESSIONBUILDER.CHANNELTRIGUNITS="Radians"
    GX geogxnet.dll(Geosoft.GX.MathExpressionBuilder.MathExpressionBuilder;RunChannel)

    SETINI XYZSTAT.CHAN="dDRAPE"
    SETINI XYZSTAT.FILE=".\\dDRAPE.txt"
    SETINI XYZSTAT.SHOWLOG="1"
    SETINI EDIT.FILE=".\\dDRAPE.txt"
    SETINI EDIT.CHILD="Yes"
    SETINI EDIT.CHILD=""
    SETINI EDIT.WAIT=""
    GX xyzstat.gx

    Or would you recommend that I use C# instead?
  • Hi Jacques,

    Thanks again. I'll experiment when time permits.

    Cheers,
    Tim
This discussion has been closed.