• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X Scripting - Skill
  3. tip - here's how to reduce Allegro board file size

Stats

  • State Suggested Answer
  • Replies 5
  • Answers 1
  • Subscribers 18
  • Views 4629
  • Members are here 0
More Content

tip - here's how to reduce Allegro board file size

avant
avant over 3 years ago

You can reduce the board extents to reduce the board file size. 

I turn all layers on and measure the X dimension to include everything that is visible, and then set the drawing extents to this measurement.

Apparently, unused space in the board file increases the file size.

I'm working on a customer board file and was able to reduce the board file size by 100MB.

Just wanted to pass along this tip.

  • Cancel
  • Sign in to reply
Parents
  • Wild
    0 Wild over 3 years ago

    There is a skill code out there called auto size.  much easier.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • avant
    0 avant over 3 years ago in reply to Wild

    Out where? This would come in handy!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • avant
    0 avant over 3 years ago in reply to Wild

    Out where? This would come in handy!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Wild
    0 Wild over 3 years ago in reply to avant

    The file date stamp on my pc is from 2010.  So Ron Guthrie, I say Thanks!

    /*******************************************************************
    * DISCLAIMER: The following code is provided for Cadence customers *
    * to use at their own risk. The code may require modification to   *
    * satisfy the requirements of any user. The code and any           *
    * modifications to the code may not be compatible with current or  *
    * future versions of Cadence products.                             *
    * THE CODE IS PROVIDED "AS IS" AND WITH NO WARRANTIES, INCLUDING   *
    * WITHOUT LIMITATION ANY EXPRESS WARRANTIES OR IMPLIED WARRANTIES  *
    * OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.              *
    *******************************************************************/
    ; File: autosize.il
    ;
    ;
    ; Usage: Load this file autosize.il
    ;  Issue the command autosize on the Allegro command line.
    ;    Optionally you can specify an amount to expand the drawing extents
    ;    If you wish to make the drawing size 200 units larger in all directions
    ;    than the extents of the drawing you would enter
    ;
    ;    autosize 200
    ;
    ;    The expand option is optional and if it is not specified then the
    ;    drawing will be resized to the extents of the current database objects.
    ;
    ; Note:
    ;
    ;    THIS CODE IS UNSUPPORTED AND HAS HAD MINIMAL TESTING.
    ;    This example from the online documentation is intended to
    ;    show the use of the axlExtentDB and axlDBChangeDesignExtent
    ;    functions to resize a drawing based on the database objects.
    ;
    ;Author: Ron Guthrie
    ; Cadence Design Systems
    ; Version 1.0
    ; Date: August 31,2006
    ;
    axlCmdRegister("autosize" 'RBG_autosize)
    procedure( RBG_autosize(@optional (expand "0"))
    let( list(extents ll_exp oversize)
        oversize=evalstring(expand)
        extents = axlExtentDB('obstacle)
        ll_exp=minus(oversize)
        extents = bBoxAdd(extents list( ll_exp:ll_exp oversize:oversize ))
        unless(axlDBChangeDesignExtents(extents)
            axlMsgPut(list("Failed to resize drawing.\n" 3))
        );endif
    );endlet
    );endproc

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • avant
    0 avant over 3 years ago in reply to Wild

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Wild
    0 Wild over 3 years ago in reply to avant

    BTW - I still am on 16.6, and have not tried it on 17.x, Note sometimes there is an issue with large boards with D or larger fabrication boarders, when I save the board after using the code Allegro will create an unrecoverable error, and save the database as a .sav file.  This is easily fixed by hand, I just increase the boundaries a little.  It happened maybe 1 out of 100 or so boards.  I find it extremely useful, especially when I get designs from other people or organization/companies.  I just wish I could find skill code to remove customized sub classes, which I find in almost every design from someone else

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information