nicolas Posted February 14, 2012 Posted February 14, 2012 Hi, Is there a way to create a lisp that turn on Defpoints + execute a command (another lisp here called pd.lsp) at the openings of drawings? I believe it must be working in the background and as soon as a drawing is opened, it is automatically executed. Thanks in advanced, Regards, Nicolas Quote
MSasu Posted February 14, 2012 Posted February 14, 2012 Please check this article on automated loading of AutoLISP routines. Regards, Mircea Quote
MSasu Posted February 14, 2012 Posted February 14, 2012 Is there a way to create a lisp that turn on Defpoints Although I will not recommend usage of system generated layers, this simple code may solve your issue: (command "_LAYER" "_ON" "Defpoints" "_THAW" "Defpoints" "") Regards, Mircea Quote
nicolas Posted February 14, 2012 Author Posted February 14, 2012 Hi, Thanks for the info. I wanted to apply a layon, thaw all layers in all spaces and more specifically the defpoints layer. However, in layout it is "Free of Thaw in current viewport" that cannot be restored with the command. Regards, Nicolas. Quote
nicolas Posted February 14, 2012 Author Posted February 14, 2012 (edited) Its' working (defun c:layrestore() (command "_Layon") (command "_Laythw") (command "_layer" "_ON" "Defpoints " "_thaw" "Defpoints" "") (command "_vplayer" "_T" "Defpoints" "_A" "") (princ)) Edited February 15, 2012 by nicolas Quote
MSasu Posted February 14, 2012 Posted February 14, 2012 Please edit your post to add code tags to your code excerpt. Thank you. Regards, Mircea 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.