Changing layers and colors in blocks

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

  1. flash

    flash Guest

    I have some borders and titleblocks that I need to combine on the same layers.
    The borders are on the border layer and the color is red. The titleblock is on a titleblock layer and its color is green.

    Using VBA, how do I convert the titleblock "block" to the border layer and make both border and titleblock blue.

    TIA,
    Mike
     
    flash, Oct 11, 2004
    #1
  2. flash

    MP Guest

    to manipulate an object you have to get a reference to it - either by
    selecting on screen or using a filtered selection set to iterate the entire
    dwg.

    once you have the object you want to manipulate (border block, titleblock
    etc) you set it's properties
    eg
    if titleblock blockreference is oBlkRef
    oBlkRef.Layer = "LayerYouWant"
    oBlkRef.Color = "ColorYouWant"

    hth
    Mark

    is on a titleblock layer and its color is green.
    make both border and titleblock blue.
     
    MP, Oct 11, 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.