Jump to content

Recommended Posts

Posted

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

Posted

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.

  • SLW210 changed the title to Changed aliases and CUI, now many commands don't work
Posted

How do i make the lisp functions that i will write, instead of changing the acad.pgp, to be first?

 

Posted
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.

Posted

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))

 

Posted

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.  

  • Like 1
Posted

"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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...