Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cap all layer names?

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
199 Views, 2 Replies

Cap all layer names?

Just wondering if someone had a lisp to capitalize all layer names?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

I'm sure there are tons of these floating around,
but how about this quickie.

(defun c:capLayers ()
(vlax-map-collection
(vla-get-layers
(vla-get-activedocument
(vlax-get-acad-object)))
'(lambda (x)
(vla-put-name x (strcase (vla-get-name x))))
)
(princ)
)

--
Autodesk Discussion Group Facilitator



"Dave Lewis" wrote in message
news:4933999@discussion.autodesk.com...
Just wondering if someone had a lisp to capitalize all layer names?
Message 3 of 3
Anonymous
in reply to: Anonymous

thankx


"Jason Piercey" wrote in message
news:4934000@discussion.autodesk.com...
I'm sure there are tons of these floating around,
but how about this quickie.

(defun c:capLayers ()
(vlax-map-collection
(vla-get-layers
(vla-get-activedocument
(vlax-get-acad-object)))
'(lambda (x)
(vla-put-name x (strcase (vla-get-name x))))
)
(princ)
)

--
Autodesk Discussion Group Facilitator



"Dave Lewis" wrote in message
news:4933999@discussion.autodesk.com...
Just wondering if someone had a lisp to capitalize all layer names?

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

Post to forums  

Autodesk Design & Make Report

”Boost