Jump to content

Defpoint Restored at Opening of Drawing Lisp


Recommended Posts

Posted

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

Posted

Please check this article on automated loading of AutoLISP routines.

 

Regards,

Mircea

Posted
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

Posted

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.

Posted (edited)

Its' working

 

(defun c:layrestore()
(command "_Layon")
(command "_Laythw")
(command "_layer" "_ON" "Defpoints " "_thaw" "Defpoints" "")
(command "_vplayer" "_T" "Defpoints" "_A" "")
(princ))

Edited by nicolas

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