@saqib_tipa wrote:
.... I need to select Texts with same rotation angle....
I carried along the "X" from some others' suggestions, which has the routine find all qualifying objects. To be asked to select them yourself after selecting one to establish the rotation, with only those matching the rotation of the first-selected one being "seen" in the selection, just omit the "X":
(setq ss (ssget (list '(0 . "*text") (assoc 50 (entget (car (entsel "\n[M]Text at desired rotation: ")))))))
That puts them into a selection set, but does not otherwise do anything with them. You can use that in any command when asked to select objects, by typing it with a preceding exclamation point: !ss
Or, you can have it leave you with them already selected/gripped/highlighted instead, to impose whatever command you want on them:
(sssetfirst nil (ssget (list '(0 . "*text") (assoc 50 (entget (car (entsel "\n[M]Text at desired rotation: ")))))))
NOTE that neither of those will include the first-selected one unless you include it again in your subsequent selection. If you would always want it included without your selecting it again, that can be worked in.
And my earlier caveat still applies -- it will see only those with very precisely matching rotations.
Kent Cooper, AIA