Jump to content

xline lisp multiple function on a layer


jim78b

Recommended Posts

hello i want a lisp that create a xline on a layer (example XL colour 1) : AND LET ME TO SELECT :horizontal , vertical etc etc

then return on layer 0 even if i press esc to exit command.

 

Another thing, is possible to make a short cut in lisp SHIFT + F to make offset xline always on xl layer and then return on layer 0?

 

thanks in advance

 

however i have this lisp but not work if i select ...a choice ...not return on layer 0

 

(defun c:xlS (/ p1 p2)
(setq cl (getvar "clayer"))
(command "-layer" "m" "XL" "_Color" "1" "" "")

(command "xline" \ "")
(setvar "clayer" "0")
);defun

 

Link to comment
Share on other sites

  • 3 weeks later...

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