Select blocks in layout

Discussion in 'AutoCAD' started by simon.weel, Jul 8, 2003.

  1. simon.weel

    simon.weel Guest

    Hi,

    I want a list of a particular block in a particular layout. This is the code I came up with:

    (setq ss1 (ssget "x" '((-4 . "<AND") (2 . "Blockname") (410 . "Layoutname") (-4 . "AND>"))))

    Although it works fine, it seems a bit elaborate? Is there a more elegant way?

    Greetings,

    Simon Weel
     
    simon.weel, Jul 8, 2003
    #1
  2. Simon,

    You can drop the ANDs, not required in this case. And do
    you really want a list?, (ssget) produces a selection set.
     
    Jason Piercey, Jul 8, 2003
    #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.