Visual LISP, AutoLISP and General Customization

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

Filter list

164 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: 735
Registered: ‎09-14-2003
Message 2 of 4 (131 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 (125 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,480
Registered: ‎08-16-2007
Message 4 of 4 (122 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community