• 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
  • eDave
    0 eDave over 1 year ago

    Welcome to Skill!

    Use axlDBChangeDesignUnits to change the design units (and accuracy). axlMKSConvert is a mathematical function.

    To measure line segments widths you need to obtain the line segment you wish to measure using axlSelect and axlGetSelSet functions. Line segments have a width property that you can get by using lineSeg ->width.

    There are many examples in your Cadence installation folder in ...\share\pcb\examples\skill. Take a look at these.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • 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
>
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