move objects from one layer to another

Discussion in 'AutoCAD' started by flash, Oct 26, 2004.

  1. flash

    flash Guest

    I know this question has been asked, but I can't find it. Does anyone have vba code to do this?

    Thanks,
    Mike
     
    flash, Oct 26, 2004
    #1
  2. flash

    TomD Guest

    I'm not sure what, exactly, you're trying to do. If you just want the
    objects to be on a different layer, you just change each object's Layer
    property. I think something like the following should do it:

    For I = 0 to objSelectionSet.Count -1
    objSelectionSet(I).Layer = "YourDesiredLayerNameHere"
    next

    .....or something to that effect.
     
    TomD, Oct 26, 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.