Author Topic: Select xref nested layer  (Read 1966 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7529
Select xref nested layer
« on: February 19, 2005, 12:04:24 PM »
I have this simple lisp that I use everyday to change an objects layer color by selecting the object. My question is: How could this be modified to get the entity's nested xref layer.

Code: [Select]
(defun C:CLC (/ lay colr)
 (setvar "cmdecho" 0)
 (setq lay (cdr (assoc 8
 (entget (car (entsel "\nSelect entity to specify layer for color: "))))))
 (setq colr (getstring "\nEnter desired color:  "))
 (command "-layer" "c" colr lay "" )
 (princ)
  )
(setfunhelp "c:clc" "acadtools.chm" "clc")


Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

ronjonp

  • Needs a day job
  • Posts: 7529
Select xref nested layer
« Reply #1 on: February 19, 2005, 12:05:28 PM »
Nevermind.....did some reading in the help file on nentsel :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC