- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anyone help and explain to me what I'm doing wrong here? I am defiantly a macro noob and really want to get better at them.
I am working on a macro to write my datum locations to the nc program notes so I don't have to retype it every job for the guys in the shop to get more clarification of location
DIALOGS MESSAGE OFF
DIALOGS ERROR OFF
//CREATES SELECTABLE OPTIONS IN A USER INPUT WINDOW
STRING ARRAY A[] = {"Top","Centered","Bottom"}
//NAME OF USER INPUT WINDOW
INT Z = INPUT CHOICE $A "Select Z Location?"
//CHOOSES Z OPTION 1
if $z == 0 {
TOP
//CHOOSES Z OPTION 2
} elseif $z == 1 {
CENTER
//CHOOSES Z OPTION 3
} elseif $z == 2 {
BOTTOM
EDIT NCPROGRAM $active_NCPROGRAM NOTES "Z" HOW DO I GET THIS LINE TO WRITE THE CHOSEN TEXT FROM $z VARIABLE
DIALOGS MESSAGE ON
DIALOGS ERROR ON
If anyone would lend their expertise I would be grateful
Thank You
Solved! Go to Solution.