Home > Community > Forums > PCB Design > Skill files location

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Skill files location 

Last post Mon, Jan 14 2013 11:11 AM by mcatramb91. 15 replies.
Started by pakistan 19 Feb 2009 01:09 AM. Topic has 15 replies and 3251 views
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts:
  • Thu, Feb 19 2009 1:09 AM

    • pakistan
    • Top 75 Contributor
    • Joined on Sat, Jan 24 2009
    • Posts 78
    • Points 1,200
    Skill files location Reply

    Hi,

    For running skill files, is there any way to run skill files from one location.

    currently I have to copy skill file in my working dir and then I load it and then I am able to run it.

    actually I want to make aliases for skills which we use frequently, when I make script of loading skill file and asign it in aliases it is not working because it needs to have skill file in the working dir. I dont want to copy skill files in my working dir.

    If any one knows please tell me the procedure.

    Thanx & Regards

    Tanveer

    • Post Points: 35
  • Thu, Feb 19 2009 6:42 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 556
    • Points 9,795
    Re: Skill files location Reply

    Hi,

    This is indeed possible. I would recommend that you read the readme.txt file in %CDSROOT%\share\local\pcb

    Also read the example.ilinit in %CDSROOT%\share\local\pcb\skill

    Best regards,

    Ole

    Best regards Ole
    • Post Points: 5
  • Thu, Feb 19 2009 7:01 AM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 291
    • Points 4,640
    Re: Skill files location Reply

     The easiest way of doing this is to take the example.ilinit file from <cdsroot>/share/local/pcb/skill and copy it your <HOME>/pcbenv directory naming it allegro.ilinit. Then take all your Skill files and place them in <HOME>/pcbenv. The next time you start Allegro, it will load all the skill files (.il extension) in the pcbenv directory. This method will work with all tiers of Allegro even L.

     If you offer Allegro from a central server then you can do the same thing for all your users by renaming  example.ilinit to allegro.ilinit in the  <cdsroot>/share/local/pcb/skill directory and placing your skill files in this directory. You can relocate this shared location outside the Cadence hieararchy by reading about CDS_SITE in the documentation. This "local" location will not be updated when loading Cadence patches.

     In either case, this assumes your Skill code is function based with axlCmdRegister calls to register the Skills functions as Allegro commands. You can write your skill code non-function based (similar to Allegro scripting). Non-function based skill code executes the skill code (doing database changes and/or UI work) everytime you load the skill file. Non-function based skill code should not be loaded via the allegro.ilinit method.

    • Post Points: 20
  • Thu, Feb 19 2009 9:13 PM

    • pakistan
    • Top 75 Contributor
    • Joined on Sat, Jan 24 2009
    • Posts 78
    • Points 1,200
    Re: Skill files location Reply

    Thanks for your detailed answers. Its working now.

    thanks again

    Best Regards

    Tanveer

    • Post Points: 20
  • Tue, Jan 8 2013 7:46 AM

    • padmaster
    • Top 150 Contributor
    • Joined on Mon, Mar 2 2009
    • Huntsville, AL
    • Posts 59
    • Points 805
    Re: Skill files location Reply

    Stumped.....What am I doing wrong?

    I have my HOME variable set to C:\Cadence

    I have a C:\Cadence\pcbenv folder

    I have a allegro.ilinit file in the \pcbenv folder

    Here are the contents of the allegro.ilinit file:

    load( "V:\\allegro\\skill\\align_sym.il")

    load( "V:\\allegro\\skill\\autosilkUtils.il")

    load( "V:\\allegro\\skill\\clinecut.il")

    load( "V:\\allegro\\skill\\jbhEditBoard.il")

    load( "V:\\allegro\\skill\\replace_via.il")

    load( "V:\\allegro\\skill\\rm_nc_via.il")

    load( "V:\\allegro\\skill\\scalpel.il")

    load( "V:\\allegro\\skill\\shape_push.il")

    load( "V:\\allegro\\skill\\strip_bad_fillet_props.il")

    load( "V:\\allegro\\skill\\set_refdes.il")

    load( "V:\\allegro\\skill\\cwidth.il")

    load( "V:\\allegro\\skill\\autosize.il")

    load( "V:\\allegro\\skill\\Create_Thermal_Flash.il")

    load( "V:\\allegro\\skill\\hl_ntp.il")

    ; DstCAM350() is the CAM350 Cross Probe Startup

    load( "C:\\Cadence\\pcbenv\\DstCxi.il")

    all of the skill files are in the mapped network folder V:\allegro\skill

    Why isn't this working?

    • Post Points: 20
  • Tue, Jan 8 2013 8:34 AM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,382
    • Points 23,540
    Re: Skill files location Reply

    You got the "wrong" slashes bud, UNIX and other scripting languages go the "other" way, you need to have things like:

    load("V:/allegro/skill/<whatever>.il")

    Since all the "stuff" is in V:/allegro/skill, you might want to get the allegro.ilinit to autoload from there, that way you can "just" add anothe script to the directory and not hack the allegro.ilinit every time.

    • Post Points: 20
  • Tue, Jan 8 2013 8:43 AM

    • padmaster
    • Top 150 Contributor
    • Joined on Mon, Mar 2 2009
    • Huntsville, AL
    • Posts 59
    • Points 805
    Re: Skill files location Reply

    hmmm, I actually had this working some number of years ago and many revisions ago. Don't use skill much but I have a need for it now.

    Don't remember how/when those \\ got in there or of it worked like that before.

    I'll replace the double \\ with a single / and see if it works.

     

    Thanks

    • Post Points: 20
  • Tue, Jan 8 2013 11:15 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 717
    • Points 15,535
    Re: Skill files location Reply
    The double back-slashes are OK. Try putting your allegro.ilinit file in a skill folder below your pcbenv folder. (C:\Cadence\pcbenv\skill)
    Dave Elder, Tait Communications
    • Post Points: 20
  • Tue, Jan 8 2013 11:16 AM

    • padmaster
    • Top 150 Contributor
    • Joined on Mon, Mar 2 2009
    • Huntsville, AL
    • Posts 59
    • Points 805
    Re: Skill files location Reply

    still not working. Here is the allegro.ilinit file after editing....

    load( "V:/allegro/skill/align_sym.il")

    load( "V:/allegro/skill/autosilkUtils.il")

    load( "V:/allegro/skill/clinecut.il")

    load( "V:/allegro/skill/jbhEditBoard.il")

    load( "V:/allegro/skill/replace_via.il")

    load( "V:/allegro/skill/rm_nc_via.il")

    load( "V:/allegro/skill/scalpel.il")

    load( "V:/allegro/skill/shape_push.il")

    load( "V:/allegro/skill/strip_bad_fillet_props.il")

    load( "V:/allegro/skill/set_refdes.il")

    load( "V:/allegro/skill/cwidth.il")

    load( "V:/allegro/skill/autosize.il")

    load( "V:/allegro/skill/Create_Thermal_Flash.il")

    load( "V:/allegro/skill/hl_ntp.il")

    ; DstCAM350() is the CAM350 Cross Probe Startup

    load( "C:/Cadence/pcbenv/DstCxi.il")

     

    Is there supposed to be a space after the ( in the load command?

    • Post Points: 5
  • Tue, Jan 8 2013 11:25 AM

    • padmaster
    • Top 150 Contributor
    • Joined on Mon, Mar 2 2009
    • Huntsville, AL
    • Posts 59
    • Points 805
    Re: Skill files location Reply

    eDave:
    The double back-slashes are OK. Try putting your allegro.ilinit file in a skill folder below your pcbenv folder. (C:\Cadence\pcbenv\skill)

     

    I changed the slashes back and moved the allegro.ilinit to C:\Cadence\pcbenv\skill and it still doesn't work :-(

    • Post Points: 5
  • Tue, Jan 8 2013 11:27 AM

    • padmaster
    • Top 150 Contributor
    • Joined on Mon, Mar 2 2009
    • Huntsville, AL
    • Posts 59
    • Points 805
    Re: Skill files location Reply

    Shouldn't I see the skill files load when I start allegro?

    To invoke the skill file you just type in the name of the file right?

     i.e. replace_via <enter>

    • Post Points: 35
  • Tue, Jan 8 2013 11:34 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 717
    • Points 15,535
    Re: Skill files location Reply
    No. You need to register a command using axlCmdRegister and use the registered command. I also prefer to use the autoload feature in my allegro.ilinit to avoid loading all my Skill applications until they are needed.
    Dave Elder, Tait Communications
    • Post Points: 5
  • Tue, Jan 8 2013 1:15 PM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,382
    • Points 23,540
    Re: Skill files location Reply

    You definitely want to use %HOME%\pcbenv as your allegro.ilinit location for a default location. It used to be possible to move this around with the "skillpath" but I don't think that is a clever move in later releases. Add some debug messages to your allegro.ilinit:

    printf("Start Loading Skill files:")

    at the top of the file,

    printf("Done Loading Skill files.)

    at the bottom of the file and save the modified file.

    If nothing else, you should see the messages printed at the PCB Editor Command Window after PCB Editor starts. If you don't see the messages, PCB Editor did not process the allegro.ilinit, probably because it didn't find it!

    I think I would prefer to use the default HOME of "C:\SPB_Data", rather than "C:\Cadence" but this might make no difference.

    • Post Points: 20
  • Tue, Jan 8 2013 2:09 PM

    • Boma
    • Top 200 Contributor
    • Joined on Mon, Aug 4 2008
    • Posts 37
    • Points 515
    Re: Skill files location Reply

    padmaster,

    You should not need the full path to the skill files in the allegro.ilinit file.  Just use

    load(" clinecut.il")    or

    (load "clinecut.il")     works also. 

    As long as your allegro.ilinit file is in your pcbenv directory it should read it as long as you are not using the old format.  If you are in 16.5 or higher open a design and do User Preferences,  then do a search on skill and read what it says for skill_old_init.  Make sure it is not checked.  See if that works........

    Boma 

    • Post Points: 20
  • Thu, Jan 10 2013 6:44 AM

    • padmaster
    • Top 150 Contributor
    • Joined on Mon, Mar 2 2009
    • Huntsville, AL
    • Posts 59
    • Points 805
    Re: Skill files location Reply

    Ok, so I was able to find enough info on COS to get the skill files to load. According to the doc I read, allegro.ilinit should be in the pcbenv folder. The path to the skill files MUST use the /.

    Here is the contents of the allegro.ilinit file:

    setSkillPath(buildString(append1(getSkillPath() "V:/allegro/skill")))

    load("align_sym.il")

    load("autosilkUtils.il")

    load("clinecut.il")

    load("jbhEditBoard.il")

    load("replace_via.il")

    load("rm_nc_via.il")

    load("scalpel.il")

    load("shape_push.il")

    load("strip_bad_fillet_props.il")

    load("set_refdes.il")

    load("cwidth.il")

    load("autosize.il")

    load("Create_Thermal_Flash.il")

    load("hl_ntp.il")

    ; DstCAM350() is the CAM350 Cross Probe Startup

    load("C:/Cadence\\pcbenv\\DstCxi.il")

    println("allegro.ilinit file loaded")

     

    So I start allegro and it reports that the allegro.ilinit file was loaded.

    Then I type:

    Command > replace via
    Enter selection point
    Loading axlcore.cxt
    Command >

    Allegro is now in the "replace via" command mode.

    I draw a box around the vias I want to replace and the "new padstack name" dialog box appears.

    I type in the new padstack name and click OK.

    Allegro reports "619 vias replaced".

    But they are not replaced!!!!!

    UGH!!!!!

    • Post Points: 20
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts:
Started by pakistan at 19 Feb 2009 01:09 AM. Topic has 15 replies.