• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Active Member
    Posts: 7
    Registered: ‎01-12-2010

    Filter list

    124 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

    Please use plain text.
    Distinguished Mentor
    Moshe-A
    Posts: 679
    Registered: ‎09-14-2003

    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

     

    Please use plain text.
    Active Member
    Posts: 7
    Registered: ‎01-12-2010

    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.

    Please use plain text.
    *Expert Elite*
    Posts: 842
    Registered: ‎08-16-2007

    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.

    Please use plain text.