Passing a selection of objects to COMMAND

Discussion in 'AutoCAD' started by biot023, Oct 6, 2004.

  1. biot023

    biot023 Guest

    Hallo.
    I have a routine that attaches a number of raster images to a drawing, and saves their entity names in a list called ents.
    Once this is complete, I wish to push all the rasters to the back of the drawing.
    The code I thought might work was:

    (command "DRAWORDER" ents "Back")

    or maybe

    (command "DRAWORDER" ents "" "Back")

    Neither, however, seems to be doing the trick, and I don't want to iterate through the list pushing them back individually, as this takes ages.
    Can anyone advise me on a way to do them all together?
    Thanks alot,
    doug.
     
    biot023, Oct 6, 2004
    #1
  2. biot023

    spencer1971 Guest

    This is lifted directly from a lisp that does a similar thing with shading, It definately works, Are you doing a regen after, otherwise you will not see the command working.

    (command "draworder" SS1 "" "B")
    (command "regen")

    Spencer
     
    spencer1971, Oct 6, 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.