Home > Community > Forums > PCB Design > How to start Skill in Orcad PCB editor 16.2

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: *

 How to start Skill in Orcad PCB editor 16.2 

Last post Fri, Jun 5 2009 4:58 AM by Ejlersen. 13 replies.
Started by Prasanna 26 May 2009 03:54 AM. Topic has 13 replies and 10793 views
Page 1 of 1 (14 items)
Sort Posts:
  • Tue, May 26 2009 3:54 AM

    • Prasanna
    • Top 100 Contributor
    • Joined on Thu, Oct 16 2008
    • Bangalore, Karnataka
    • Posts 71
    • Points 1,705
    How to start Skill in Orcad PCB editor 16.2 Reply

    Hi All,

    I am using Orcad PCB editor 16.2.  I not getting how to start/load  skill files to PCB editor. I searched in community but things are not clear to me. As per some suggestion I will have to change " allegro.ilinit" file in " pcbenv " folder under installed diretory. But I am not getting allegro.ilinit file and even the "pcbenv" folder.  I found one " env " file under C:\OrCAD\OrCAD_16.2\share\pcb\text\  path. Is there any thing to change with that?

     Pls let me know what are the setting I need to do ? I got one allegro.ilinit file from the forum, but where to paste that file. I have no idea about this.

    Pls give me your valuable guidance.

    Thanks,

    Prasanna Hegde

    • Post Points: 50
  • Tue, May 26 2009 6:29 AM

    • steve
    • Top 10 Contributor
    • Joined on Fri, Jul 18 2008
    • Woking, Surrey
    • Posts 1,211
    • Points 19,695
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

    Have a look at your computer settings for HOME. (On XP RMB My computer - properties - advanced - environment variables. If not set create a user variable called HOME = C:\yourdirectory name. This is where Orcad will create a pcbenv directory. Put your env, skill and allegro.ilinit here. Then try again.

    • Post Points: 5
  • Tue, May 26 2009 7:57 PM

    • C Shiva
    • Top 50 Contributor
    • Joined on Tue, Jul 15 2008
    • Bangalore, Karnataka
    • Posts 168
    • Points 3,470
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

     Hi Prasanna,

      The "pcbenv" folder may be located at your C:\OrCAD or C:\OrCAD\OrCAD_16.2 folder. Create a file here and rename it as "allegro.ilinit". Save your skill file name here as "load <filename.il>". Restart your tool and type the new command at Command console window.

    HTH

     Regards,

     Shiva.

    • Post Points: 5
  • Tue, May 26 2009 9:36 PM

    • Prasanna
    • Top 100 Contributor
    • Joined on Thu, Oct 16 2008
    • Bangalore, Karnataka
    • Posts 71
    • Points 1,705
    Re: How to start Skill in Orcad PCB editor 16.2 Reply
    Shiva, thanks for reply..

    still  I am confused due to some things.  When I searched in forum I got  allegro.ilinint file :::::::  in this I changed the path for skill files where I saved all in one folder. Then I started the tool and it was showing  like    ".....  .il file redefined " . I tried to type that command but got error command is not exist.

    Then I tried what you told. finally I got pcbenv folder in local documents directory and loaded what you said.   here is few file i tried.    I removed old alegro.ilinit file what i mentioned above, but still its trying to read same path it seems its giving error. How  does it take the path if we mentioned only file name in .ilinit file?

    pls clarify my doubts..

    Thanks,

    Prasanna Hegde
    • Post Points: 20
  • Wed, May 27 2009 2:46 AM

    • steve
    • Top 10 Contributor
    • Joined on Fri, Jul 18 2008
    • Woking, Surrey
    • Posts 1,211
    • Points 19,695
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

    Please follow my instructions from earlier and define a HOME property. This is where the pcbenv folder will live. The only other thing to check is when specifying the skill folder path be sure to use c:/folder/skill rather than c:\folder\skill. (it's a unix format).

    • Post Points: 20
  • Mon, Jun 1 2009 6:03 AM

    • MAAC
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Bangalore, Karnataka
    • Posts 195
    • Points 3,620
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

     Hi,

    I am trying to run the skill for past few months using Allegro 16.2 but unable to succeed. The steps i followed is:

    I have created a system variable as ALLEGRO_SITE  with value d:\AllegroSite

    So when i try to invoke the checkWidth in the command prompt of Allegro i get a E-Command not found:checkWidth.I have attached the AllegroSite file. I am able to see the this settings in the variables list of set in the Editor.

    Plz let me know if i am making any mistake r should i make any settings.

    Guide me to run any of the skill

     

    Thnx

    • Post Points: 20
  • Tue, Jun 2 2009 2:25 AM

    • steve
    • Top 10 Contributor
    • Joined on Fri, Jul 18 2008
    • Woking, Surrey
    • Posts 1,211
    • Points 19,695
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

    I'm not sure how the Allegro_Site works. I know that the system variable HOME does. Once created a pcbenv directory will exist (After running Allegro once). Put the allegro.ilinit file here. Specfy your skill directory inside the ilinit file and put the skill in the same location. Once you restart allegro all the skill files in that directory are auto loaded. Then at the command line type the skill command names.

    • Post Points: 5
  • Tue, Jun 2 2009 9:46 AM

    • bulldog
    • Top 150 Contributor
    • Joined on Thu, Jul 17 2008
    • Cleveland, OH
    • Posts 51
    • Points 720
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

    Prasanna,

     The following was forwarded to me by one of the reps at SourceLink:

    If you have not explicitly set a HOME variable, the Allegro PCB Editor uses a combination of the HOMEDRIVE and HOMEPATH variables to generate the home directory (HOMEDRIVE:\HOMEPATH) on Windows. If the HOMEDRIVE and HOMEPATH variables do not exist, the editor uses C:\

    This holds good for Orcad PCB designer. And so on the system which do not have explicit Home Variable set, the Home is created as described in Documentation above. And to check the Home location, you can follow the following steps:

    1. Open Orcad PCB Designer

    2. In command area type 'Set' and press Enter 3. It will open the window for 'Defined Variables'

    4. Scroll down to find 'HOME', 'HOMEDRIVE' and 'HOMEPATH' variables.

    After finding the HOME variable, check the value for this variable and try to find the PCBENV folder at that location. And store allegro.ilinit file in the similar way as you are doing in Allegro installation.

    If you still can't find Home/PCBENV then, Allegro.ilinit is read from the following locations:

    $CDSROOT/share/pcb/etc/skill;$ALLEGRO_SITE/skill;$HOME/pcbenv

    You can store allegro.ilinit at any of these locations. (The values for Variables CDSROOT & ALLEGRO_SITE are available in Defined Variables

    window)

    After doing this you should be able to load Skill code at the startup of Orcad PCB Designer.

     Hope this helps!

    • Post Points: 20
  • Thu, Jun 4 2009 10:50 PM

    • Prasanna
    • Top 100 Contributor
    • Joined on Thu, Oct 16 2008
    • Bangalore, Karnataka
    • Posts 71
    • Points 1,705
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

     

    hi,

    As Steve said, I searched for  "pcbenv"  and  I found that in local Document and setting folder. Then have created allegro.ilinit file.

    I got a Allegro.ilinit file from this forum only and i copied to my file, that looks like

     

    ; This example file shows how to load Skill files (those with the

    ; extension ".il" in the directory within this code.

    ; For this code to work without "careful" modification, place the SKILL routines

    ; in a directory called "SKILL" (uppercase) then edit the path entries to match

    ; the location of this SKILL directory

    ; To use copy to allegro.ilinit if to be used by all Allegro based programs

    ; or <programName>.ilinit if intended for only one program

    ; Setting Allegro environment variable, LoadSkillFilesDebug will turn

    ; on printing the name of each file as it is loaded.

    unless(boundp('LoadSkillFilesDebug)

    LoadSkillFilesDebug = axlGetVariable("LoadSkillFilesDebug"))

    when(LoadSkillFilesDebug printf("\n"))

    ; Change the path here

    (foreach file (rexMatchList "\\.il$" (getDirFiles "C:/OrCAD/OrCAD_16.2/share/pcb/etc/SKILL"))

    when(LoadSkillFilesDebug printf("Loading Skill file: %s\n" file))

    (load strcat("SKILL/" file))

    )

    ; Load any ini files (containing axlCmdRegister)

    ; Change the path here as well

    (foreach file (rexMatchList "\\.ini$" (getDirFiles "C:/OrCAD/OrCAD_16.2/share/pcb/etc/SKILL"))

    when(LoadSkillFilesDebug printf("Loading Skill file: %s\n" file))

    (load strcat("SKILL/" file))

    )

    when(LoadSkillFilesDebug printf("\n"))

     

    and one more type as MAAC attached   

     

    load("logoMaker_public.il")

    load("add_symbol.il")

    load("checkWidth.il")

    I copied allegro.ilinit file which is like first format I mentioned above and I set path for skill folder. I moved all skill files in that folder and started Orcad PCb editor 16.2. At the startup in command window it showed as all skill files redefined. I dont know what does it means. And I typed one of the skill file name as a command it gave error that command not found.

    These are things I followed. Let me know where I am wrong ?

     

    Thanks,

    Prasanna Hegde

    • Post Points: 20
  • Fri, Jun 5 2009 1:12 AM

    • steve
    • Top 10 Contributor
    • Joined on Fri, Jul 18 2008
    • Woking, Surrey
    • Posts 1,211
    • Points 19,695
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

    Edit your allegro.ilinit file to replace C:/OrCAD/OrCAD_16.2/share/pcb/etc/SKILL with a directory c:\pcb\skill (or whatever you want to call it). Change both locations in the ilinit file. Then put your skill programs in this directory. Then try again.

    I suggest changing the directory because if you don't and you install a new hotfix your files will be lost.

    • Post Points: 20
  • Fri, Jun 5 2009 4:22 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

    Hi

    The easiest way to get this to work properly is the following.

    Create a directory structure c:\cadence\setup\skill

    Download file here and unzip to c:\cadence\setup 

    Create a new environment variable called ALLEGRO_PCBENV

    ControlPanel->System->Advanced->Environment Variables->System->New 

    Name this ALLEGRO_PCBENV and Value=C:\cadence\setup

    Now place skill files in c:\cadence\setup\skill directory and everything should work.

    Notice that if you need another location you could try changing the path in the first line of allegro.ilinit and at the same time adjust the ALLEGRO_PCBENV variable.

    If you wan't to look into SITE and configuration in general then look at the guide that I've made which can be found at

    http://www.nordcad.dk/download/Teknik/PCB/PCB_Editor_Company_Setup.htm

    If you're having trouble watching the movies, then download and install TSCC codec from http://www.techsmith.com/download/codecs.asp

     Hope this helps.

    Best regards

    Ole

    Best regards Ole
    • Post Points: 20
  • Fri, Jun 5 2009 4:35 AM

    • Prasanna
    • Top 100 Contributor
    • Joined on Thu, Oct 16 2008
    • Bangalore, Karnataka
    • Posts 71
    • Points 1,705
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

    Ole,

    Thank you very much.... I will give a try.

    But which format allegro.ilinit should I use ?.  As I mentioned earlier  first one or second one ?

    However, my system got some error, I will try when it's fixed and let you know.

     

    Thanks,

    Prasanna hegde

    • Post Points: 20
  • Fri, Jun 5 2009 4:57 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

    Hi

    I would go for the format that I uploaded, it automatically loads all skill files in c:\cadence\setup\skill instead of you having to write all those LOAD lines.

     

    Best regards

    Ole

    Best regards Ole
    • Post Points: 5
  • Fri, Jun 5 2009 4:58 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: How to start Skill in Orcad PCB editor 16.2 Reply

    Hi

    BTW, thats also the way it is done using the automatical setup package that you can download and install from slide 4 in the presentation link above.

    Best regards

    Ole

    Best regards Ole
    • Post Points: 5
Page 1 of 1 (14 items)
Sort Posts:
Started by Prasanna at 26 May 2009 03:54 AM. Topic has 13 replies.