Selecting objects with a certain xdata

Discussion in 'AutoCAD' started by Nauman M, Jun 1, 2004.

  1. Nauman M

    Nauman M Guest

    I wanted to find a way to select all Mtext objects which has certain
    xdata attached. I have an APPID and I can just select based on that. but
    I am not sure how ot code the ssget function to only select mtext
    objects with that APPID. any help would be appreciated.

    I try this but it gives me error
    (ssget "_X" '((-3 . "GBBNCONDOC")))

    (ssget "_X" '((-3 . "GBBNCONDOC")(8 . "A-ANNO-KEYN")))

    the 1000 values change with object. i.e. 09220A-002 varies.

    ; error: bad SSGET list value


    here is the dump of entity
    Command: (setq entl (entget ename (list AppName)))
    ((-1 . <Entity name: 400e0820>) (0 . "MTEXT") (5 . "A0C") (102 .
    "{ACAD_REACTORS") (330 . <Entity name: 400e0818>) (102 . "}") (330 .
    <Entity
    name: 400dbcf8>) (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 .
    "A-ANNO-KEYN") (100 . "AcDbMText") (10 396.968 556.491 0.0) (40 . 9.0)
    (41 .
    144.0) (71 . 1) (72 . 1) (1 . "\\A1;BROWN COAT 3/4\". ") (7 .
    "GBBN-DIMN")
    (210 0.0 0.0 1.0) (11 1.0 0.0 0.0) (42 . 91.8) (43 . 13.7143) (50 . 0.0)
    (73 .
    1) (44 . 1.0) (-3 ("GBBNCONDOC" (1000 . "09220A-002"))))

    Thanks
     
    Nauman M, Jun 1, 2004
    #1
  2. Nauman M

    Jürg Menzi Guest

    Hi Nauman

    (ssget "_X" '((-3 ("GBBNCONDOC"))))

    Cheers
     
    Jürg Menzi, Jun 1, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.