Jump to content

Using Lisp to Change Colour


caravaggio

Recommended Posts

Hi, I have been using (command "change" obj ""...) to change colour in my lisps. However, I would like to know how it can be done if I append a (62 . 1) instead.

 

Thank you !!

Link to comment
Share on other sites

Nice name? Fan of the painter, I assume?

 

Another option (for vla):

(defun  c:test (/ ent)
(and
 (setq ent (car (entsel "\nSelect object: ")))
 (setq ent (vlax-ename->vla-object ent))
 (vla-put-color ent 3)
)
)

would change the selected object to color 3.

Link to comment
Share on other sites

A fan of this painter !!

 

Thanks so much for vla option !

:) Any painter that used to study corpses to make his subjects more real is aces in my book. :wink:

 

No problem.

Link to comment
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
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...