Thanks for that Thomas,
I also found another way - I just changed the G Code Editor path in the General Config options from Notepad to my CAD program, and hey presto, clicking Edit G-Code opens my CAD program.
Think I'll use your method though, so I don;t lose the option of opening Notepad for minor edits.
Cheers
Mark