![]() (while (setq ent (entsel "\nPick an object: ")) loop until user picks nil object or just press enter (command ".linetype" "load" "hidden" "acad.lin" "") if hidden linetype is not exist, load it (setvar "cmdecho" 0) disable command echo The AutoLISP Reference is also a good place to start leaning AutoLISP If you meant a mouse button this involves a much more sophisticated technique called ReactorsĪnd for you at this stage of learning i suggest to you focus only simple AutoLISP/VIsualLISP code You can invoke AHL from the KB or define it in a toolbar button When you say i want to press a button did you mean a toolbar button? I added a descriptive help to each code line to make it easy for you to understand. The attached program defines an AutoCAD Command AHL that do what you want
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |