• 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. Board file use.

Stats

  • Replies 2
  • Subscribers 18
  • Views 9509
  • Members are here 0
More Content

Board file use.

vimaldevlpr
vimaldevlpr over 6 years ago

Hai,

I would like to do take another .brd file report  while running the skill code in current .brd file  For examole :1.brd  is file and 2.brd is other file here in the tool i opened 1.brd file in that i want to take report of  2.brd file for that i used this attaeched skill code.

procedure(plac()

out=outfile("report.rpt")

file = axlDMFileBrowse(nil nil ?optFilters "BRD Files|*.brd|")

foreach(cmp, axlDBGetDesign() ->components

when(cmp ->symbol

a = cmp ->name

inList = a

fprintf(out, "\n%L", inList)

)

)

)

Here by this code it return only the current board file report i want to get 2.brd report file can you say it is possible if it possible please say how to do it.

  • Cancel
  • Sign in to reply
Parents
  • B Bruekers
    B Bruekers over 6 years ago

    Allegro can only work with 1 openend database at a time, so you need to switch the current design during the Skill program.

    Try something like this:

    procedure(plac()
        let( (currentDesign file out)
        currentDesign = axlGetDrawingName()
        axlSaveDesign(?design axlCurrentDesign() ?noConfirm t)
        file = axlDMFileBrowse(nil nil ?optFilters "BRD Files|*.brd|")
        when(axlOpenDesignForBatch(file "wf")
            if(out=outfile("report.rpt")
            then
                foreach(cmp, axlDBGetDesign() ->components
                    when(cmp ->symbol
                        fprintf(out, "\n%L", cmp->name)
                    )
                )
                close(out)
            else
                print("Can not open file for writing")
            )
        )
        axlOpenDesignForBatch(currentDesign "wf")
    )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • B Bruekers
    B Bruekers over 6 years ago

    Allegro can only work with 1 openend database at a time, so you need to switch the current design during the Skill program.

    Try something like this:

    procedure(plac()
        let( (currentDesign file out)
        currentDesign = axlGetDrawingName()
        axlSaveDesign(?design axlCurrentDesign() ?noConfirm t)
        file = axlDMFileBrowse(nil nil ?optFilters "BRD Files|*.brd|")
        when(axlOpenDesignForBatch(file "wf")
            if(out=outfile("report.rpt")
            then
                foreach(cmp, axlDBGetDesign() ->components
                    when(cmp ->symbol
                        fprintf(out, "\n%L", cmp->name)
                    )
                )
                close(out)
            else
                print("Can not open file for writing")
            )
        )
        axlOpenDesignForBatch(currentDesign "wf")
    )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • vimaldevlpr
    vimaldevlpr over 6 years ago in reply to B Bruekers

    Thanks lott working fine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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