Hameed Posted May 17, 2012 Posted May 17, 2012 I designed AutoLISP code to calculate the length of sheet rolled on known roll... How to make this code as autoCAd command Quote
MSasu Posted May 17, 2012 Posted May 17, 2012 Hameed, please check the DEFUN function. (defun [color=blue][b]c:[/b][/color]MyCommand() ;;; add your code here ) Also, it was better to start a new thread for your issue instead of appending to this one; may ask a moderator to fix this for you. Quote
Tharwat Posted May 17, 2012 Posted May 17, 2012 I wonder how can you write codes without being known how to invoke it . Quote
MSasu Posted May 17, 2012 Posted May 17, 2012 I wonder how can you write codes without being known how to invoke it . There is nothing that prevents one to run a block of code lines instead of a function/command. Quote
Tharwat Posted May 17, 2012 Posted May 17, 2012 They said , that they designed it , so that might be copy and paste of code nothings more . Quote
Hameed Posted May 17, 2012 Author Posted May 17, 2012 Thanks MSasu I work with Defun C:XXX proberly but I want the command to be like Autocad command for example line command or pline command when i check the properties the cad tell me that is line ... I want cad to tell me my the XXX command Regards Quote
MSasu Posted May 17, 2012 Posted May 17, 2012 Seems that you are looking to register a custom entity type, not to define a command. I'm afraid that this isn't available in AutoLISP - you should investigate the ARX technology instead (i.e. ARCALIGNEDTEXT from Express pack). Quote
BIGAL Posted May 18, 2012 Posted May 18, 2012 Make the object a block when you click on it Autocad can say block "roll of plate" an attribute will display "Xm long" 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.