Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Active Member
Sodep_ing
Posts: 7
Registered: ‎01-12-2010
Message 1 of 4 (170 Views)

Filter list

170 Views, 3 Replies
04-30-2012 03:08 AM

Hi.

 

I use extended data on 2d entity in AutoCAD 2010. In a lisp program, I have filtered with extended data selection. Filters work with entity like: line, polyline and Mline but with insert entity it don’t work.

 

The entget result for a block :

((-1 . <Nom d'entité: 7ffffbe7d90>) (0 . "INSERT") (330 . <Nom d'entité: 7ffffb039f0>) (5 . "18CA91") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Fam_POTEAU_ROND_INSERT_021") (100 . "AcDbBlockReference") (2 . "POTEAU_ROND") (10 155239.0 -100209.0 0.0) (41 . 16.05) (42 . 16.05) (43 . 16.05) (50 . 0.0) (70 . 0) (71 . 0) (44 . 0.0) (45 . 0.0) (210 0.0 0.0 1.0) (-3 ("CREEMET000" (1000 . "Fam021") (1040 . -14.0) (1040 . 434.0) (1071 . 0)) ("CREEMET001" (1071 . 2) (1071 . 3) (1071 . 0)) ("CREEMET014" (1000 . "Poteau rond mixte (a completer)")) ("CREEMET002" (1000 . "_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_-1_-1_-1"))))

 

The filter list use :

((-4 . "<OR") (2 . "POTEAU_ROND*") (-4 . "OR>") (-3 ("CREEMET002" (1000 . "_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_-1_-1_-1"))))

 

Best regard

 

Etienne

FRANCE

Distinguished Mentor
Moshe-A
Posts: 829
Registered: ‎09-14-2003
Message 2 of 4 (137 Views)

Re: Filter list

04-30-2012 12:55 PM in reply to: Sodep_ing

Etienne,

 

try this

 

( (-4 . "<OR")

   (2 . "POTEAU_ROND*")

   (-3 ("CREEMET002"))

  (-4 . "OR>")

)

 

moshe

 

Active Member
Sodep_ing
Posts: 7
Registered: ‎01-12-2010
Message 3 of 4 (131 Views)

Re: Filter list

04-30-2012 03:03 PM in reply to: Sodep_ing

Yes, i have changed the code with only (-3 (« CREEMET002 »)) and it work.


For mline or polyline, I don’t know why it’s possible to use a filter like this :
(-3 ("CREEMET002" (1000 . "_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_-1_-1_-1"))
and why it’s not possible with insert.

 

Why it's different?

 

It’s very strange.

*Expert Elite*
dbroad
Posts: 1,648
Registered: ‎08-16-2007
Message 4 of 4 (128 Views)

Re: Filter list

04-30-2012 04:08 PM in reply to: Sodep_ing

You can filter for the fact that an object has xdata associated with a particular app but not for the xdata itself.  Been that way as long as there has been xdata.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.