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 ?

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]
  1.   (list '(0 . "text") '(-4 . ">=") (cons 50 (angtof "50")) '(-4 . "<=") (cons 50 (angtof "80")))
  2. )
Some reference HERE.


If you don't want 50 & 80 to be selected use:
Code - Auto/Visual Lisp: [Select]
  1. (ssget  (list '(0 . "text") '(-4 . ">") (cons 50 (angtof "50")) '(-4 . "<") (cons 50 (angtof "80"))))

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.

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.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC