Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
help with string
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: help with string (Read 2102 times)
0 Members and 1 Guest are viewing this topic.
TopoWAR
Newt
Posts: 135
help with string
«
on:
January 30, 2012, 09:33:14 AM »
hi, this code returns me the name of the entity:
Code:
[Select]
(cdr (assoc -1 elist))
returns
<Entity name: 7efc5140>
I want to be a text string, eg:
"<Entity name: 7efc5140>"
thanks
Logged
Thanks for help
Lee Mac
Seagull
Posts: 12916
London, England
WWW
Re: help with string
«
Reply #1 on:
January 30, 2012, 09:37:20 AM »
Code - Auto/Visual Lisp:
[Select]
(
vl-princ-to-string
(
cdr
(
assoc
-
1
elist
)
)
)
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
TopoWAR
Newt
Posts: 135
Re: help with string
«
Reply #2 on:
January 30, 2012, 09:39:29 AM »
Lee. thanks
Logged
Thanks for help
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
help with string