Author Topic: Filtering Xdata  (Read 1695 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
Filtering Xdata
« on: February 03, 2017, 10:23:25 AM »
Hi all,..

I'm trying to catch specific Xdata from Line Entity containing specific value..

Code: [Select]
(ssget "X" '((0 . "LINE")(-3 ("MyApps" (1000 . "test")))))

but it return nil..
Anyone can tell me what I'm doing wrong ?
thank you.

Keep smile...

ronjonp

  • Needs a day job
  • Posts: 7527
Re: Filtering Xdata
« Reply #1 on: February 03, 2017, 10:38:45 AM »
Code - Auto/Visual Lisp: [Select]
  1. (ssget "x" (list '(0 . "line") '(-3 ("MyApps"))))
You can't directly filter for items beneath the app name .. you'll have to iterate your selection set.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Filtering Xdata
« Reply #2 on: February 03, 2017, 10:59:53 AM »
Code - Auto/Visual Lisp: [Select]
  1. (ssget "x" (list '(0 . "line") '(-3 ("MyApps"))))
You can't directly filter for items beneath the app name .. you'll have to iterate your selection set.

okay,...that what I'm doing actually...just thought if it was possible...
Thanks for your help.
Keep smile...

ronjonp

  • Needs a day job
  • Posts: 7527
Re: Filtering Xdata
« Reply #3 on: February 03, 2017, 11:21:17 AM »
Glad to help.  :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Lee Mac

  • Seagull
  • Posts: 12912
  • London, England
Re: Filtering Xdata
« Reply #4 on: February 03, 2017, 12:39:16 PM »