• 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. Skill of Import -> Logis/Netlist

Stats

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

Skill of Import -> Logis/Netlist

Maxime1998
Maxime1998 4 months ago

Hi,

Can anyone help me with scripting the skill of the Import -> Logic/Netlist process? I would like to recreate this fonction but I can't figure what it is doing.

Thanks in advance!

  • Sign in to reply
  • Cancel
Parents
  • andakConsultingLtd
    0 andakConsultingLtd 4 months ago

    Have you tried recording a script via  File->Script? It will create a *.scr file with the following content:

    # Allegro script
    #    file: C:/Users/andakConsultingWork/OneDrive/Work/allegroWork/_Andak/0029_USB_Injector/testScript.scr
    #    start time: Wed Apr 16 19:32:06 2025
    #    Version: 23.1-2023 S008 (4262797) Windows SPB 64-bit Edition
    version 23.1

    setwindow pcb
    netin
    setwindow form.niparams
    FORM niparams directory ./allegro
    FORM niparams import  
    setwindow pcb

    #    stop time: Wed Apr 16 19:32:24 2025

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • andakConsultingLtd
    0 andakConsultingLtd 4 months ago

    Have you tried recording a script via  File->Script? It will create a *.scr file with the following content:

    # Allegro script
    #    file: C:/Users/andakConsultingWork/OneDrive/Work/allegroWork/_Andak/0029_USB_Injector/testScript.scr
    #    start time: Wed Apr 16 19:32:06 2025
    #    Version: 23.1-2023 S008 (4262797) Windows SPB 64-bit Edition
    version 23.1

    setwindow pcb
    netin
    setwindow form.niparams
    FORM niparams directory ./allegro
    FORM niparams import  
    setwindow pcb

    #    stop time: Wed Apr 16 19:32:24 2025

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • Maxime1998
    0 Maxime1998 4 months ago in reply to andakConsultingLtd

    Hello,
    Thank you very much, it help me a lot. But now I've got another problem. I'm trying to use the command of netin and netrev. But I can figure it the syntax. 
    I'm using the fonction axlRunBatchDBProgram to execute the netin and netrev command.

    For now I've written the command like that:


    rep = axlFormGetField(form "repertory")
    pathpcb = strcat( rep "/PCB")
    namenet = strcat(rep "/PCB/netrev.lst")
    pathsch = strcat( rep "/SCHEMA")
    namelog = strcat(rep "/SCHEMA/netlist.log")
    cmd_netin = strcat("netin -$ -g -y 1 -z " namenet " " pathpcb " %s")
    cmd_netrev = strcat("\"C:/Cadence/SPB_17.4/tools/bin/netrev.exe\" -$ -i " pathsch " -z %s")
    axlRunBatchDBProgram("netin" cmd_netin ?logfile namelog ?startMsg "Logic Import")
    axlRunBatchDBProgram("netrev" cmd_netrev ?logfile namelog ?startMsg "Logic Import")

    My problem is that I'm not sure that it is correctly doing th command because my netrev.lst file isn't changed after all.
    Can someone help me?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • andakConsultingLtd
    0 andakConsultingLtd 4 months ago in reply to Maxime1998

    Is it a must to use axlRunBatchDBProgram as there are other (easier) commands to run an external program?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • andakConsultingLtd
    0 andakConsultingLtd 4 months ago in reply to Maxime1998

    I give up, I think I spent more than 1h on this and I always ended up to square 1. Netin is OK but nothing happens. I am running in cicles, with netin, netrev and missing %s from the command line.

    Worth noted that if you look at netrev lst afer a GUI netin, there is a line that is very close to what you're looking for.

    CmdLine: netrev -i ./allegro -t -y 3 -z -v C:/Users/aghor/OneDrive/Work/allegroWork/skillDevSandBox/#Taaaalv42056.tmp

    Maybe if you tell us what is the ultimate goal, a better idea comes up.

    • 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