• 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. How to load the skill file to the PCB editor from local...

Stats

  • State Verified Answer
  • Replies 1
  • Subscribers 18
  • Views 1068
  • Members are here 0
More Content

How to load the skill file to the PCB editor from local directory

RohitRohan
RohitRohan over 1 year ago

Dear community,

I have skill code which I need to run in the PCB editor, when I place the SKILL code in the cadence directory which is "C:\Cadence\SPB_23.1\share\local\pcb\skill", then i am able to run the SKILL code without any problems.

But I want to place the SKILL code in different location lets say a folder in D Drive, and I want the fetch the SKILL code from that location to the PCB editor.

How to change the location of the SKILL code from Cadence directory to a local directory.

Regards,

Rohit Rohan

  • Sign in to reply
  • Cancel
Parents
  • JuanCR
    +1 JuanCR over 1 year ago

    Hi Rohit,

    Just like for some other operations in Allegro you need to define paths (like the PSMPATH, PADPATH, etc), there is something called the "SKILL path", which instructs Allegro where to expect the execution of a file from. You check and modify SKILL path by using the functions getSkillPath and setSkillPath respectively. 

    The following article delves into the topic: 
    Article (20506049) Title: What is SKILL Path and how does it control loading of SKILL files?
    URL: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1O3w000009kzJrEAI

    Here's an extract from the article explaining how to use the functions: 

    [...]

    getSkillPath 

    getSkillPath returns directory paths from the current SKILL Path. Its usage is shown below:


    setSkillPath

    setSkillPath sets the internal SKILL Path. When you pass a relative path to the load function, SKILL finds it by searching the list of directories specified in SKILL path. 

     setSkillPath(list("." "D:/work/skill/"))

    The paths on the SKILL Path are always searched for in the path order you specify. 

    Setting the SKILL path in above mentioned way will overwrite if you have added the path earlier. If you want to append to your existing SKILL path, use the function in below way:

    setSkillPath(buildString(append1(getSkillPath() "D:/skill")))

    [...]

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

    Hi Rohit,

    Just like for some other operations in Allegro you need to define paths (like the PSMPATH, PADPATH, etc), there is something called the "SKILL path", which instructs Allegro where to expect the execution of a file from. You check and modify SKILL path by using the functions getSkillPath and setSkillPath respectively. 

    The following article delves into the topic: 
    Article (20506049) Title: What is SKILL Path and how does it control loading of SKILL files?
    URL: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1O3w000009kzJrEAI

    Here's an extract from the article explaining how to use the functions: 

    [...]

    getSkillPath 

    getSkillPath returns directory paths from the current SKILL Path. Its usage is shown below:


    setSkillPath

    setSkillPath sets the internal SKILL Path. When you pass a relative path to the load function, SKILL finds it by searching the list of directories specified in SKILL path. 

     setSkillPath(list("." "D:/work/skill/"))

    The paths on the SKILL Path are always searched for in the path order you specify. 

    Setting the SKILL path in above mentioned way will overwrite if you have added the path earlier. If you want to append to your existing SKILL path, use the function in below way:

    setSkillPath(buildString(append1(getSkillPath() "D:/skill")))

    [...]

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
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