Jump to content

Recommended Posts

Posted

I designed AutoLISP code to calculate the length of sheet rolled on known roll... How to make this code as autoCAd command

Posted

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.

Posted

I wonder how can you write codes without being known how to invoke it . :roll:

Posted
I wonder how can you write codes without being known how to invoke it . :roll:

 

There is nothing that prevents one to run a block of code lines instead of a function/command.

Posted

They said , that they designed it , so that might be copy and paste of code nothings more .

Posted

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

Posted

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

Posted

Make the object a block when you click on it Autocad can say block "roll of plate" an attribute will display "Xm long"

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