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:
ssget text between angle 50 and 80
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: ssget text between angle 50 and 80 (Read 1379 times)
0 Members and 1 Guest are viewing this topic.
mailmaverick
Bull Frog
Posts: 493
ssget text between angle 50 and 80
«
on:
November 06, 2017, 09:08:03 AM »
How to do ssget of text between rotation of 50 and 80 degrees only ?
Logged
ronjonp
Needs a day job
Posts: 7529
Re: ssget text between angle 50 and 80
«
Reply #1 on:
November 06, 2017, 09:49:19 AM »
Code - Auto/Visual Lisp:
[Select]
(
ssget
(
list
'
(
0
.
"text"
)
'
(
-
4
.
">="
)
(
cons
50
(
angtof
"50"
)
)
'
(
-
4
.
"<="
)
(
cons
50
(
angtof
"80"
)
)
)
)
Some reference
HERE.
If you don't want 50 & 80 to be selected use:
Code - Auto/Visual Lisp:
[Select]
(
ssget
(
list
'
(
0
.
"text"
)
'
(
-
4
.
">"
)
(
cons
50
(
angtof
"50"
)
)
'
(
-
4
.
"<"
)
(
cons
50
(
angtof
"80"
)
)
)
)
Logged
Windows 11 x64 - AutoCAD /C3D 2023
Custom Build PC
mailmaverick
Bull Frog
Posts: 493
Re: ssget text between angle 50 and 80
«
Reply #2 on:
November 06, 2017, 01:15:46 PM »
Thanks a lot.
Logged
ronjonp
Needs a day job
Posts: 7529
Re: ssget text between angle 50 and 80
«
Reply #3 on:
November 06, 2017, 02:12:45 PM »
You're welcome.
Logged
Windows 11 x64 - AutoCAD /C3D 2023
Custom Build PC
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
ssget text between angle 50 and 80