Replace Text String In Multiple Drawings

Discussion in 'AutoCAD' started by aslamjak, Aug 20, 2004.

  1. aslamjak

    aslamjak Guest

    I have created a macro that will send command to all open drawings in AutoCAD Session.
    Text As String
    For Each Drawing in ThisDrawing
    ThisDrawing.SendCommand(text)
    This Command is Working good how can i replace the same
    text string in multiple open drawing having same text in one command
     
    aslamjak, Aug 20, 2004
    #1
  2. aslamjak

    Jackrabbit Guest

    [pre]
    Public Sub ReplaceText()
    Dim Document As AcadDocument

    For Each Document In ThisDrawing.Application.Documents
    ' Do your thing here...
    Next Document
    End Sub
    [/pre]
     
    Jackrabbit, Aug 20, 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.