Jump to content
Ajmal

grdraw with true colour and colour book also

Recommended Posts

Ajmal

this one I can use only index colour

how can I change to true colour and colour book

(defun c:test(/ ccol)
  (setq ClayP(entget(tblobjname "layer"(setq clay(getvar 'clayer)))))
  (if
    (= (getvar 'CECOLOR)"BYLAYER")
    (setq ccol(cdr(assoc 62 ClayP)))
    (setq ccol(atoi(getvar 'CECOLOR)))
    )
  (if (setq pt1 (getpoint "\nSpecify Base Point: "))
        (progn
            (setq pt1(trans pt1 1 2))
	  (while
	    (= 5 (car (setq pt3 (grread nil 13 0))))
	    (redraw)
	    (setq pt4 (cadr pt3)
		  pt4 (trans pt4 1 2))
	    (grdraw pt1 pt4 ccol))))
  (redraw)
  (entmake
    (list(cons 0 "line")(cons 8 (getvar 'Clayer))(cons 10 pt1)(cons 11 pt4)))
  )

 

Share this post


Link to post
Share on other sites
ronjonp

As far as I know GRDRAW only accepts and integer for color.

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