Jump to content
teknomatika

Toggle multilines with autolisp

Recommended Posts

teknomatika

Hello,
Someone can help with the following:

In a job I have different multiline styles. Using a routine will it be possible to toggle current style just picking on one of these multilines?

Thanks

 

Aalmeidah

Share this post


Link to post
Share on other sites
ronjonp

Sure:

(defun c:foo (/ e)
  (if (and (setq e (car (entsel "\nPick an mline: ")))
	   (= "MLINE" (cdr (assoc 0 (setq e (entget e)))))
      )
    (setvar 'cmlstyle (cdr (assoc 2 e)))
  )
  (princ)
)

 

Share this post


Link to post
Share on other sites
teknomatika

ronjonp

It is! Very well!

Thanks for the help and the availability.
 

Share this post


Link to post
Share on other sites
ronjonp
5 hours ago, teknomatika said:

ronjonp

It is! Very well!

Thanks for the help and the availability.
 

Glad to help :)

Share this post


Link to post
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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