Creating new command

Creating new command

Anonymous
Not applicable
771 Views
1 Reply
Message 1 of 2

Creating new command

Anonymous
Not applicable

Hello All.

 

I come to you, cap in hand begging basically. I'm an IT support guy and one of our customers uses AutoCAD.

 

The one user I am dealing with had some custom commands wherein they would type CX, CY, CZ and this would perform UCS X 90 command and then the relevant command for the other axis. Somehow these commands were deleted, and it seems the only way to put them back is to program them back in using AutoLISP.

 

So my plea is, could anyone tell me how I can just program this command back in, i've followed the introduction to AutoLISP tutorials but these are from a very broad approach and I don't want to have to learn an entire new programming language just to close one ticket.

 

Any assistance would be greatly appreciated.


Thanks 

0 Likes
772 Views
1 Reply
Reply (1)
Message 2 of 2

ВeekeeCZ
Consultant
Consultant

 

(defun c:CX nil (command "_.UCS" "_X" 90) (princ))
(defun c:CY nil (command "_.UCS" "_Y" 90) (princ))
(defun c:CZ nil (command "_.UCS" "_Z" 90) (princ))

 

Guess you know how to use, save, load it, or read HERE

 

0 Likes