Sign in to follow this  
bigprody

Tool Description

Recommended Posts

I am looking for the variable that returns the value from Tool Description in the tool database. MC 2019.

Share this post


Link to post
Share on other sites

Typically, you can use the NCI predefined String Variable:

strtool$

If that isn't the string you want, the 20,000 series parameters contain the Tool Data strings.

It might be 20001, 20002, or 20003. (Other lines contain "space delimited numbers, in 'string' format").

For stings that have no predefined variable, you capture the value like this:

First, define a String Variable to hold the value:

stool1 : ""

Then, add a line to 'pparameter$' Post Block:

(Inside pparameter -)

# make sure there are six space characters in front of the 'if' statement!

      if prmcode$ = 20003, stool1 = sparameter$

Share this post


Link to post
Share on other sites

Thanks Colin, I am sure you were working from memory but, strtool seems to return the name, I need the description.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

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