AutoCAD Architecture Forum
Welcome to Autodesk’s AutoCAD Architecture Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD Architecture 2015 Lisp not working

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
twallacemagee
1189 Views, 2 Replies

AutoCAD Architecture 2015 Lisp not working

I have the following lisp that has worked fine on all versions prior to 2015, can anyone tell me why it won't work now and what I would need to modify to get it to work.

 

;--------------------------------------------------------------------------
(defun c:gl (/ LAYER)
(setq LAYER
     (cdr
          (assoc 8
               (entget
                    (car
                         (entsel "Pick item for new layer "
))))))
(command "-LAYER" "SET" layer "")
)

(setq onck 0)

2 REPLIES 2
Message 2 of 3

I do not have ACA 2015 available to test your code, but I do not see any reason why it would not work in 2015.

You could just use the LAYMCUR command, which does the same thing.

David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Message 3 of 3
pendean
in reply to: twallacemagee

... Or the even older _AI_MOLC command which did the same thing as that lisp.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost