Results 1 to 3 of 3

Thread: Maximum number of Layouts - 256?

  1. #1
    100 Club KevinBarnett's Avatar
    Join Date
    2001-10
    Location
    Pretoria, South Africa
    Posts
    119
    Login to Give a bone
    0

    Question Maximum number of Layouts - 256?

    Greetings,

    It appears as if there is in fact a limit of 256 layout tabs in a drawings. Is this true? My test seems to confirm this. I wrote VBA code to produce 350 layouts. An error message was displayed when it tried to make the 257th - "Maximum number of layouts exeeded" - error number -2145386170. I thought it may just be a VBA restriction so I went to the command line and tried to make a new layout:

    Command:
    -LAYOUT
    Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>: n
    Operation cancelled, maximum number of layouts (256) would be exceeded.

    Command:
    -LAYOUT
    Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>: c
    Operation cancelled, maximum number of layouts (256) would be exceeded.

    Here is the code:

    Code:
    Sub Test()
        Dim Int1 As Integer
        Dim AcLyOut1 As AcadLayout
        Dim AcBlk1 As AcadBlock
        Dim AcCirc1 As AcadCircle
        Dim Pnt1(0 To 2) As Double
        
        Pnt1(0) = 0#: Pnt1(1) = 0#: Pnt1(2) = 0#
        
        For Int1 = 1 To 350
            Err.Clear
            On Error Resume Next
            Set AcLyOut1 = ThisDrawing.Layouts.Add(CStr(Int1))
            If Err <> 0 Then
                MsgBox Err.Description
                MsgBox Err.Number
            End If
            Set AcBlk1 = AcLyOut1.Block
            Set AcCirc1 = AcBlk1.AddCircle(Pnt1, 20#)
            ThisDrawing.ActiveLayout = AcLyOut1
            ZoomExtents
        Next
    End Sub
    We do Civil. Some municipal authorities require a drawing for each stand in proposed developments. There are typically well over 300 plus stands in the jobs we take on. I was hoping to have one drawing file for the project, using a layout for each stand. But it looks like this is not possible due to the limit of available layouts in AutoCAD. OR.. Is there a way to expand the limit?

    TIA...

    Kevin.
    Last edited by Glenn Pope; 2005-01-11 at 02:16 PM. Reason: Placed code in code tag

  2. #2
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,657
    Login to Give a bone
    0

    Default Re: Maximum number of Layouts - 256?

    Hi

    300+ Layout Tabs

    ID: TS26935 - Operation cancelled, maximum number of layouts (256) would be exceeded.

    +

    Might want to have a browse of the following 6 results obtained from the Autodesk Discussion Groups (All AutoCAD Groups) -

    "Layout AND Max AND 256"

    Have a good one, Mike

  3. #3
    100 Club KevinBarnett's Avatar
    Join Date
    2001-10
    Location
    Pretoria, South Africa
    Posts
    119
    Login to Give a bone
    0

    Smile Re: Maximum number of Layouts - 256?

    Thanks Mike,

    I decided to live with the limit instead of trying to find a intricate way to extend it. Each drawing has 250 stands represented in layouts. The drawing name ends with a reference to the start and end stand numbers contained in the drawing.

    Have a good one..

    BTW .. Now that the England cricket team has had a taste of real Protea intent I think they better return home before they get humiliated again... ... just kidding, at least it looks like the remaining games will be a good contest.

    Cheers..

Similar Threads

  1. 2012: Maximum number of Fire Sprinklers in one file
    By maher.chebaklo790034 in forum Revit MEP - General
    Replies: 2
    Last Post: 2013-01-15, 09:46 PM
  2. Maximum number of layouts per dwg
    By cadtag in forum AutoCAD General
    Replies: 12
    Last Post: 2010-05-12, 08:13 PM
  3. Maximum Number of Objects?
    By cadragon in forum AutoCAD General
    Replies: 3
    Last Post: 2010-02-26, 06:36 PM
  4. Maximum Number of Dashboard Panels?
    By ahensley in forum AutoCAD General
    Replies: 4
    Last Post: 2008-03-31, 11:52 PM
  5. Maximum Number of Linked Files
    By jeff.richards in forum Revit Architecture - General
    Replies: 7
    Last Post: 2007-12-15, 03:46 PM

Posting Permissions

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