🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

unsupported operation in function

User: "PaolaAG"
Altair Employee
Updated by PaolaAG

Hello, I have this error "unsupported operation in function OmlBlockFunction at line number 8 in file OmlBlockFunction_1.oml ( -1 )"

This is my function

image

I was wondering if somebody knows how to solve it. Thank you!

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "João Marabisa"
    Altair Employee
    Updated by João Marabisa

    Hi Paola,

    Once you are setting a function, you must include an 'end' command after line 18 (this 'end' is referring to the if's).

    I changed what I mentioned above, and it worked (attached).

    Hope it helps you,

    João.

    User: "PaolaAG"
    Altair Employee
    OP
    Updated by PaolaAG

    Hi Paola,

    Once you are setting a function, you must include an 'end' command after line 18 (this 'end' is referring to the if's).

    I changed what I mentioned above, and it worked (attached).

    Hope it helps you,

    João.

    Thank you so much! The function now works, but when I place it inside the Oml Block doesn´t work, do you know if I have to stablish some state or parameter?

    User: "João Marabisa"
    Altair Employee
    Accepted Answer
    Updated by João Marabisa

    Thank you so much! The function now works, but when I place it inside the Oml Block doesn´t work, do you know if I have to stablish some state or parameter?

    Hi Paola,

    When you use "OmlCustomBlock" you must use "vssGetInputData" function to get the block's input data, and to export them you must use "vssSetOutputData" function.

    I'm attaching a .SCM file with your desired function.

    Below you have the results between the previous (.OML) vs. actual (.SCM) files:

    image

    Hope it helps you,

    João.

    User: "PaolaAG"
    Altair Employee
    OP
    Updated by PaolaAG

    Thank you!