R2004:
In my Acad.mnl file I have a line to check for a custom .mns file and if the file is found, I use the menuload command to load it using autolisp. When I make changes to my .mns and delete the old .mnc and .mnr and start autocad, I can see when autocad starts that it is recompiling an .mnc and.mnr, but the changes to the .mns are not evident. I put some (princ "**Hello**") in my .mnl file, but I don't see the prompt on the sceen. It's seems as if my acad.mnl is being ignored. This is the code I put in my acad.mnl:
(if (setq mnuloc (findfile (strcat "G:/autolisp/autocad_2004_support/" (getvar "loginname") "_acad.mns"))) (progn (princ mnuloc) (command ".menuunload" "acad") (command ".menuload" mnuloc) (princ (strcat "\nG:/autolisp/autocad_2004_support/" (getvar \"loginname\") "_acad.mns Loaded.")) ) ) My support paths are correct and there are no other matching files in any of the support paths. If I manually load the .mns file after autocad is up, then I see the changes. Why?
Bill
In my Acad.mnl file I have a line to check for a custom .mns file and if the file is found, I use the menuload command to load it using autolisp. When I make changes to my .mns and delete the old .mnc and .mnr and start autocad, I can see when autocad starts that it is recompiling an .mnc and.mnr, but the changes to the .mns are not evident. I put some (princ "**Hello**") in my .mnl file, but I don't see the prompt on the sceen. It's seems as if my acad.mnl is being ignored. This is the code I put in my acad.mnl:
(if (setq mnuloc (findfile (strcat "G:/autolisp/autocad_2004_support/" (getvar "loginname") "_acad.mns"))) (progn (princ mnuloc) (command ".menuunload" "acad") (command ".menuload" mnuloc) (princ (strcat "\nG:/autolisp/autocad_2004_support/" (getvar \"loginname\") "_acad.mns Loaded.")) ) ) My support paths are correct and there are no other matching files in any of the support paths. If I manually load the .mns file after autocad is up, then I see the changes. Why?
Bill