• 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. Regarding skill commands

Stats

  • State Verified Answer
  • Replies 18
  • Answers 2
  • Subscribers 18
  • Views 7459
  • Members are here 0
More Content

Regarding skill commands

archanav
archanav over 1 year ago

Hi All,i just started learning Skill scripting for automating the my works in allegro. While doing that i come across two commands for changing the user units. They are as follows below 

axlDBChangeDesignUnits

axlMKSConvert

i want to know the difference between these two. and my current requirement is to change the units from mils/inches/microns/centimeters to millimeters using skill scripting. Could any one help me to do this one ? and one more to thing is how we need to measure the line segments width in the current layer using skill script. 

Thanks in advance for your support.

  • Cancel
  • Sign in to reply
Parents
  • archanav
    0 archanav over 1 year ago

    Hi eDave ,thanks for your reply.i tried using this commands as below getting an error like command not found.

    /used like this - axlDBChangeDesignUnits 0.001 mm is this the correct way of using?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eDave
    0 eDave over 1 year ago in reply to archanav

    I suggest you take a Cadence Skill tutorial before you dive in. Skill isn't difficult but there are some basics you need to learn.

    You are not in the Skill console so you either need to prefix your commands with "skill " or open the skill console using "set telskill"

    You will find the syntax of commands in in the "Allegro User Guide: SKILL Reference" manual.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • archanav
    0 archanav over 1 year ago in reply to eDave

    sorry in hurry i forgot to switch into the skill console. Just let me know the way i used the command is correct or not? Because of after jumping into the skill console i am getting error of unbound variable. Could you please let me know how to use this command to get zero error and execution of changing mils to mm in the user inputs.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eDave
    +1 eDave over 1 year ago in reply to archanav

    You can't just jump into Skill like this and start typing then expect much help here. You need to do some study!

    However, the syntax you want is: axlDBChangeDesignUnits("millimeters" 3)

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • archanav
    0 archanav over 1 year ago in reply to eDave

    Thanks for your reply and sure i will continue to learn skill. in some of the videos i saw by typing skill in command window they changed to skill console. I followed that one in the starting. Now i changed that practice.

     while working into this i got  one doubt  that is, is it possible to read the pin pad stack information  (drill size ,pad value value if its through hole and  pad x and y dimension if its SMPT pin ) present in the .dra file ?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • archanav
    0 archanav over 1 year ago in reply to eDave

    Thanks for your reply and sure i will continue to learn skill. in some of the videos i saw by typing skill in command window they changed to skill console. I followed that one in the starting. Now i changed that practice.

     while working into this i got  one doubt  that is, is it possible to read the pin pad stack information  (drill size ,pad value value if its through hole and  pad x and y dimension if its SMPT pin ) present in the .dra file ?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • eDave
    0 eDave over 1 year ago in reply to archanav

    Look at the pin definition attributes. Ie. pinDBID ->definition ->??

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • archanav
    +1 archanav over 1 year ago in reply to eDave

    Hi dave what is the difference between this pin DBID  and the  command axlPinData shown above ? and  while working in .dra file how we need to modify these syntax symRefDes = symDbid->refdes and symName = symDbid->name to display the symbol name and ref des?

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eDave
    0 eDave over 1 year ago in reply to archanav

    Hi,

    xlPinData is an array, not a function.

    To answer your second question: A dra does not have a reference designator and the name is the design name axlCurrentDesign(). 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • archanav
    0 archanav over 1 year ago in reply to eDave

    Hi Dave,

    Thanks for your reply. what does the array of the XlPinData indicates? and .dra file w use to create footprints and we will assign ref des to the footprint in both assembly layer and silkscreen layer (like U? for  IC components etc...,)so to get the information about ref des i asked how to use symrefdes  for .dra files.

    my new query is i went through your reply for the query  silk to solder check in allegro PCB and creating Context file.

    https://community.cadence.com/cadence_technology_forums/pcb-design/f/pcb-design/31029/autosilkutils-error

    https://community.cadence.com/cadence_technology_forums/pcb-design/f/allegro-x-scripting-skill/40034/creating-context-file

    i tried using the file -https://community.cadence.com/cfs-file/__key/communityserver-discussions-components-files/27/AutosilkUtils_5F00_public.zip. 

    but i am getting error like this. May i know where i am doing mistake?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eDave
    0 eDave over 1 year ago in reply to archanav

    I haven't got a 23.1 version of the code yet. I'm waiting on a  license server upgrade.

    The cxt file that you have won't work in 23.1

    • 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