samifox Posted May 1, 2013 Posted May 1, 2013 Hi runing this: (vl-load-com) (defun C:TEST(/ ent lay) (if (setq ent (entsel "\nSelect Object")) (alert (strcase "Layer Name:" (vla-get-layer(vlax-ename->vla-object(car ent))) ) ) ) (princ) ) in acad after selecting an entity, the alert box left without the layer name why? Thanks Shay Quote
alanjt Posted May 1, 2013 Posted May 1, 2013 STRCASE will change the case (upper/lower) of a string. eg. (strcase "hello") => "HELLO" or (strcase "hello" nil) => "HELLO" or (strcase "HELLO" T) => "hello" STRCAT (what you want) will join multiple strings. eg. (strcat "800" "85") => "80085" Quote
BlackBox Posted May 1, 2013 Posted May 1, 2013 *echo* *echo* *echo* ... Better than having some incorrect replies thrown in, I 'spose. Quote
alanjt Posted May 1, 2013 Posted May 1, 2013 ... Better than having some incorrect replies thrown in, I 'spose. Agreed. I just found it amusing. Nothing against anyone. Quote
BlackBox Posted May 1, 2013 Posted May 1, 2013 Agreed. I just found it amusing. Nothing against anyone. I think we (yourself, Tharwat, and I) are in agreement on that. Quote
Recommended Posts
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.