Select Blocks Inserted by the Measure Command

Discussion in 'AutoCAD' started by Scott, Sep 10, 2003.

  1. Scott

    Scott Guest

    Hi Everybody,

    I use a selection set to have the user select a single line in the current
    drawing. I then have the measure command insert blocks along the length of
    the specified line. I was wondering how I would go about selecting the
    blocks that the measure command just inserted along the line? There may be
    other occurrences of the block in the drawing that can't be selected....

    Thanks for the help
     
    Scott, Sep 10, 2003
    #1
  2. if you use (command "_.measure") then a selset is set by AutoCAD you can
    access via

    (ssget "_P")

    otherwise your own measure function has to collect or your check for
    newly creted objects or...
     
    ruul morawetz, Sep 10, 2003
    #2
  3. Scott

    morrisde Guest

    how about storing the last entity with (setq newest (entlast)), then run the measure command, then you can get the new objects by stepping through with (entnext newest)
     
    morrisde, Sep 11, 2003
    #3
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.