Jump to content

Recommended Posts

Posted

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

Posted

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"

Posted

Reconsider the STRCASE function. :thumbsup:

Posted
*echo* *echo* *echo*

 

... Better than having some incorrect replies thrown in, I 'spose. :facepalm:

Posted
... Better than having some incorrect replies thrown in, I 'spose. :facepalm:

 

Agreed. I just found it amusing. Nothing against anyone.

Posted
Agreed. I just found it amusing. Nothing against anyone.

 

I think we (yourself, Tharwat, and I) are in agreement on that. :thumbsup:

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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