So I tried a very simple macro:
- Code: Select all
MessageBox.Show("Macro ID: " + this.macronumber);
MessageBox.Show("Profile Name: " + exec.macroprofilename);
MessageBox.Show("UCCNC Path: " + Application.StartupPath.ToString());
and I get this error:
- Code: Select all
UCCNC macro compiler error log file
--------------------------------------
Last error dated: 10/17/2024 8:35:12 AM
In macro: M2000
--------------------------------------
CS1061 | in line: 10 | error text: 'Macroclass' does not contain a definition for 'macronumber' and no extension method 'macronumber' accepting a first argument of type 'Macroclass' could be found (are you missing a using directive or an assembly reference?)
CS1061 | in line: 12 | error text: 'UCCNC.Executer' does not contain a definition for 'macroprofilename' and no extension method 'macroprofilename' accepting a first argument of type 'UCCNC.Executer' could be found (are you missing a using directive or an assembly reference?)
--------------------------------------
So, the "Application.StartupPath.ToString()" works - but the "this.macronumber" and "exec.macroprofilename" does not. (I tried them both as a function (appending "()") and as a variable (as shown))
Am I missing something?