Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Khary

Post Dev Team
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Khary

  1. One thing that you could try is defining two string values, an input variable and an output variable.

    Instead of passing it as a variable, you set the value of the input variable immediately before calling the function. The function will then use this variable to modify the value of the output variable.

    For example:

    sinput : ""
    soutput : ""
    
    pfunction
          soutput = regex(sregexExpression, sinput, 2)
    
    potherPostBlock
        sinput = "Whatever"
        pfunction
        result = mprint(soutput)
    

     

    • Like 1

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...