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:
get tag info from block
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: get tag info from block (Read 1880 times)
0 Members and 1 Guest are viewing this topic.
andrew_nao
Guest
get tag info from block
«
on:
August 08, 2013, 12:10:27 PM »
i must not be searching for the right keywords.. :ugly:
sorry to ask this, i know this has been asked before (not by me) i just cant find it.
how can i retreive the "tag" info of an attributed block?
thanks
Logged
Lee Mac
Seagull
Posts: 12929
London, England
WWW
Re: get tag info from block
«
Reply #1 on:
August 08, 2013, 12:17:01 PM »
Here is a quick example:
Code - Auto/Visual Lisp:
[Select]
(
defun
c:taginfo
(
/
s
)
(
if
(
setq
s
(
ssget
"_+.:E:S"
'
(
(
0
.
"INSERT"
)
(
66
.
1
)
)
)
)
(
foreach
a
(
vlax-invoke
(
vlax
-
ename
->
vla-object
(
ssname
s
0
)
)
'getattributes
)
(
print
(
cons
(
vla-get-tagstring
a
)
(
vla-get-textstring
a
)
)
)
)
)
(
princ
)
)
These functions
may also be of interest.
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
andrew_nao
Guest
Re: get tag info from block
«
Reply #2 on:
August 08, 2013, 02:00:25 PM »
super Lee, thanks
Logged
Lee Mac
Seagull
Posts: 12929
London, England
WWW
Re: get tag info from block
«
Reply #3 on:
August 09, 2013, 10:38:17 AM »
You're welcome!
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
get tag info from block