+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default ObjectDbx layout control

    Registered forum members do not see this ad.

    Anyone know how to cycle through all layouts in a drawing using objectDBX??

  2. #2
    Senior Member
    Using
    Civil 3D 2008
    Join Date
    Feb 2008
    Posts
    294

    Default

    Registered forum members do not see this ad.

    Got it.

    Code:
     
    Dim AcadDbx As AxDbDocument
    Dim AcadLay As AcadLayout
     
    Set AcadDbx = GetInterfaceObject("ObjectDBX.AxDbDocument.17") 
            For Each AcadLay In AcadDbx.Layouts
                If AcadLay.Block.IsLayout Then
                "CODE HERE"
            End If
            Next

Similar Threads

  1. control-c don't work
    By carlosng in forum AutoCAD Drawing Management & Output
    Replies: 6
    Last Post: 18th Mar 2009, 03:57 pm
  2. Control+c and control+v not working
    By Zero3eleven in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 6
    Last Post: 1st Apr 2008, 03:37 pm
  3. Add control point
    By quasifun in forum AutoCAD General
    Replies: 3
    Last Post: 30th Apr 2007, 03:05 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts