KarolR Posted October 14, 2019 Posted October 14, 2019 It happened on all the Autocad versions along the tears. I modify the PGP file, toolbars and CUI. After a while, some unrelated commands don't work, for example: appload proprties and more I use now Acad 2014 Quote
BIGAL Posted October 14, 2019 Posted October 14, 2019 I stay away from changing anything that is changing out of the box like acad.pgp rather do my own lisp defuns. You can use a command name to do something else there is a command call Undefine to revert a changed command back to original, try "undefine appload" "undefine Properties" If that works then you need to look at what your loading. Quote
KarolR Posted October 14, 2019 Author Posted October 14, 2019 How do i make the lisp functions that i will write, instead of changing the acad.pgp, to be first? Quote
rkmcswain Posted October 14, 2019 Posted October 14, 2019 2 hours ago, KarolR said: How do i make the lisp functions that i will write, instead of changing the acad.pgp, to be first? Lisp functions already overwrite PGP shortcuts. Quote
BIGAL Posted October 14, 2019 Posted October 14, 2019 Here is some samples these are in 1 lisp file that has like 30 defuns. It is added to the appload start up suite. Some are quite complex. (defun c:od () ;;opens new dwg in current dwg directory (startapp "explorer" (getvar "dwgprefix")) (princ) ) (defun C:FD () (setvar "filedia" 1)) (defun c:PTY () (setvar 'pdmode 35) ; turn on ptype (setvar 'pdsize 0.1) ) (defun c:PTYY () ; turn off ptype (setvar 'pdmode 0) ) (defun C:ZE () (command "zoom" "E") ) (defun C:47 ()(setvar "osmode" 47)(setvar "AUNITS" 0)) Quote
tombu Posted October 15, 2019 Posted October 15, 2019 See also: https://forums.augi.com/showthread.php?174119-I-changed-aliaces-and-CUI-now-many-commands-don-t-work&p=1343791 Quote
tombu Posted October 15, 2019 Posted October 15, 2019 Search for acad.pgp, one with UserDataCache in the path should be original unedited version. it should contain: ; Examples of external commands for command windows DEL, DEL, 8,File to delete: , DIR, DIR, 8,File specification: , SH, , 1,*OS Command: , SHELL, , 1,*OS Command: , START, START, 1,*Application to start: , TYPE, TYPE, 8,File to list: , ; Examples of external commands for Windows ; See also the (STARTAPP) AutoLISP function for an alternative method. EXPLORER, START EXPLORER, 1,, NOTEPAD, START NOTEPAD, 1,*File to edit: , PBRUSH, START PBRUSH, 1,, Sounds like some of this has been modified. Safest way to modify Command Aliases and Shell Commands is with the ALIASEDIT Express Tool command by clicking "Command Aliases" from the Express Tools tab in the ribbon where they can easily be added or removed. 1 Quote
ReMark Posted October 15, 2019 Posted October 15, 2019 "It happened on all the Autocad versions along the years." This is where the problem started. But instead of correcting the problem when you first made the changes you decided to ignore it and lived with the consequences. I would recommend restoring everything to its original condition (you kept backup files, right?) then changing one of the files at a time (start with Acad.pgp first). Do not move on to the next file until you are satisfied the changes you have made are working as you expect. When you do move to the next (most likely the more complex file such as the .CUI) work on a copy of it and not on the originally. Test it as you go along instead making wholesale changes that way you will be able to isolate the problem easier. As a last resort the original can be substituted back in while you troubleshoot. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.