Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Filter list

3 REPLIES 3
Reply
Message 1 of 4
Sodep_ing
295 Views, 3 Replies

Filter list

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

3 REPLIES 3
Message 2 of 4
Moshe-A
in reply to: Sodep_ing

Etienne,

 

try this

 

( (-4 . "<OR")

   (2 . "POTEAU_ROND*")

   (-3 ("CREEMET002"))

  (-4 . "OR>")

)

 

moshe

 

Message 3 of 4
Sodep_ing
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.

Message 4 of 4
dbroad
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.

Architect, Registered NC, VA, SC, & GA.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost