i want to read in an image file(*.bmp) and inport it to allegro,but i
found no built-in functions can do this(open a port in binary mode and
read file bit by bit),
i also need to write some information in binary mode.
I have written code to do this. See /forums/T/10154.aspx
In reply to eDave:
It is great,you are a good man.
Thank you very much
In reply to ELEKVN:
I`m new to skill.. i am not able to locate any ".ilint" file in the env folder..should i setup anything to retreive this..where should i save all the skill code so that i can give the skill>command in the PCB Editor to perform any action.
In reply to MAAC:
You will need to create the allegro.ilinit file using a text editor. This should go in your [ALLEGRO_SITE]\pcb\skill folder.
ie. c:\myAllegroSite\pcb\skill where your ALLEGRO_SITE Windows environment variable is set to c:\myAllegroSite.
I don't recommend putting it in C:\Cadence\SPB_xx.x\tools\pcb\skill because you will lose that when you update your Allegro version.
There are several clever features available to you in an ilinit file but you can just add the line:
Thnx for the reply..
I tried the steps which u mentioned n copied the logoMaker_public.il file inside the pcb\skill folder(defined under Allegro_Site). Then i added load("logoMaker_public.il") inside the allegro.ilinit file, but i am facing the following error
Skill > logomakerE- *Error* toplevel: undefined variable - logomakernil
n this is the 1st time i`m working with skill....Should i set any other path...
You should type logomaker in the command console - not the Skill console.
Still i`m facing the same issue... i think i making some mistake in providing the path.....
Command > logomakerE- Command not found: logomakerCommand >
I have tried with other skill also which are present in sourcelink.. The following is my .ilinit file
I have this .ilinit file inside Skill folder where the above .il files are copied.
Can you corrent me...
What is your ALLEGRO_SITE variable set to?
Inside this folder i have pcb\skill where i have created the allegro .ilinit file and i have copied all the .il file(i.e. inside the skill folder)
The variable should be ALLEGRO_SITE
It is already set to ALLEGRO_SITE d:\Allegrosite... n i`m able to see the same thru set of PCB Editor
Ok. I think you need to get your local Cadence AE to take a look at your setup.
here are some sample codes i'd like to share with you on how to read bmp image file, besides bmp image formats, it supports reading and viewing other image formats as well. these codes save me a lot of time finding a good solution.