uccnc macro text box ?

Results 1 to 4 of 4

Thread: uccnc macro text box ?

  1. #1
    Registered
    Join Date
    Feb 2017
    Location
    United Kingdom
    Posts
    2
    Downloads
    0
    Uploads
    0

    Question uccnc macro text box ?

    Can anyone help a newcomer to UCCNC? Is there a way to get text box input from a macro using C# or is this not possible? Thank you.

    Similar Threads:


  2. #2
    Member
    Join Date
    Mar 2010
    Location
    America
    Posts
    813
    Downloads
    0
    Uploads
    0

    Default Re: uccnc macro text box ?

    Hey petroz,

    Maybe if you explained on what your trying to accomplish we can be of more help.

    Dan



  3. #3
    Member
    Join Date
    Jun 2015
    Location
    Sweden
    Posts
    943
    Downloads
    0
    Uploads
    0

    Default Re: uccnc macro text box ?

    Quote Originally Posted by petroz View Post
    Can anyone help a newcomer to UCCNC? Is there a way to get text box input from a macro using C# or is this not possible? Thank you.
    The easiest is to use the built-in functions, copy from the documentation:

    Function: string TextQuestion(string Questiontext)
    Description: This function shows a Question form waiting for a string as the answer. The text of the question shown on the Form is the parameter.
    Example: string val = exec.TextQuestion("Stop code execution?");

    Function: double Question(string Questiontext)
    Description: This function shows a Question form waiting for a double value as the answer. The text of the question shown on the Form is the parameter.
    Example: double val = exec.Question("What X position to move?");

    but you can also make your own forms if you want.




  4. #4
    Registered
    Join Date
    Feb 2017
    Location
    United Kingdom
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default Re: uccnc macro text box ?

    Thanks
    the example is what I needed.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

uccnc macro text box ?

uccnc macro text box ?