Message 1 of 3
Macro not showing query to overwrite existing file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi respected seniors
I have aquestion, I have created a macro to create nc programs of selected toolpaths and then write them, It is working good but when selected nc program already write then there is no query to ovewrite it and it write it strightly
macro attached below
I want that when i run this macro if nc programe already write then it ask me to overwrite it if i say yes it write if i say no it don't
DIALOGS MESSAGE ON
DIALOGS ERROR ON
FOREACH $Selected_TP IN (explorer_selected_entities()) {
CREATE NCPROGRAM $Selected_TP.name EDIT NCPROGRAM $Selected_TP.name APPEND TOOLPATH $Selected_TP.name DEACTIVATE NCPROGRAM
}
FOREACH $Selected_ncp IN (explorer_selected_entities()) {
ACTIVATE NCPROGRAM $Selected_ncp KEEP NCPROGRAM ;
YES
}