Dave Elder Moderator Posts: 150 Online:
 |
| 7/02/2008 1:43 PM |
|
| Attached is a Skill utility and its help file that, used in combination with a couple of free downloads, will allow you to create logo symbols in Allegro at any scale or rotation. Most bitmap images such as Windows bitmap, jpeg and gif are accepted.
Buy me a beer at CDNLive in September if you like it.
Sorry. Windows only at this time.
logoMaker installation instructions:
Download and install potrace:
http://potrace.sourceforge.net/download/potrace-1.8.tar.gz
set the POTRACE_PATH environment variable to the path to the executable
eg. C:/utils/potrace-1.8.win32-i386
Download and install lfc:
http://leadtools.com/Utilities/Cmd-Line/File-Converter/default.htm
Install logoMaker_public.il and logoMakerHelp.txt into your skill folder.
Add 'load("logoMaker_public.il")' to the allegro.ilinit file in your pcbenv folder.
Running within Allegro:
Type logomaker in the command window. |
Attachment: logoMaker_public.il Attachment: logoMakerHelp.txt
|
Dave Elder Tait Electronics |
|
Dave Elder Moderator Posts: 150 Online:
 |
| 7/08/2008 7:44 PM |
|
Has anyone tried this. I'm interested in any feedback.
|
|
Dave Elder Tait Electronics |
|
shiva Posts: 57 Online:
 |
| 7/08/2008 10:37 PM |
|
Hi Dave,
I'm interesting a lot. But we have only license for Studio version. The command "load" has not found in this version. Could you show a way, how can i add this command? Any solution will be appreciated.
Thanks, Shiva. |
|
|
|
Dave Elder Moderator Posts: 150 Online:
 |
| 7/09/2008 1:44 PM |
|
Hi Shiva,
The instructions are the same for Studio. You need to type 'load("logoMaker_public.il")' into your allegro.ilinit file.
Cheers, Dave |
|
Dave Elder Tait Electronics |
|
shiva Posts: 57 Online:
 |
| 7/09/2008 10:00 PM |
|
Hi Dave,
I have searched the tool, but didn't get such commands. Also tried at command console window. I have attached the screen shoots. How can i add the command "load"? Please help.
I tried to run skill files many times before, but didn't get success.
Thanks, Nice day, Shiva.
|


|
|
|
Dave Elder Moderator Posts: 150 Online:
 |
| 7/10/2008 1:13 PM |
|
Hi Shiva,
You need to create a file called 'allegro.ilinit' in your pcbenv folder. Allegro reads the allegro.ilinit file from your $HOME/pcbenv directory. Include the following line in the file: load("logoMaker_public.il")
Don't try to load the code from Allegro. It can only be run from there (using "logomaker")
Cheers, Dave |
|
Dave Elder Tait Electronics |
|
Dave Elder Moderator Posts: 150 Online:
 |
| 7/10/2008 1:24 PM |
|
| Attached are the before and after images of a sample image placed in Allegro. |


|
Dave Elder Tait Electronics |
|
shiva Posts: 57 Online:
 |
| 7/11/2008 3:33 AM |
|
Hi Dave,
I think, as your pictures above, this is a good logo maker. But i got problem again. I have created the "allegro.ilinit" file and saved it at pcbenv folder. Also saved the .il and .txt files, given by you, at the same folder. The file didn't load when i open the editor. Or did i wrong? Please suggest.
Thanks, Shiva.
|


|
|
|
shiva Posts: 57 Online:
 |
| 7/11/2008 3:43 AM |
|
| I also tried to save the skill files at home directory C:\Cadence\SPB_16.0\share\local\pcb\skill |
|
|
|
willbi Posts: 63 Online:
 |
| 7/11/2008 4:52 AM |
|
remove the ^@ caractere at the end of the code (the 2nd one on the line863). It is due to the save_as or the copy from the file opened from the forum. I had the same thing.
Then if you just want to test the utility no need to create allegro.ilinit:
just put the il file in Allegro's working directory and load it manually in Allegro: Command > (load "logoMaker_public.il") |
|
|
|
shiva Posts: 57 Online:
 |
| 7/11/2008 5:19 AM |
|
I have no such character at the end of file.
|

|
|
|
willbi Posts: 63 Online:
 |
| 7/11/2008 7:11 AM |
|
Hello Dave.
A great tool! Is it free of use? I tried it and want to make it available for all users here (less than 8 users ;-) is it 8 beers? unfortunately I won't be on CDNlive...
I found a way to put all needed utilities to run it in the same SKILL folder bypassing default installation LEADCMD folder and especially the PATH variable (no LEADCMD folder anymore in the PATH environment). So they can access it without any installation. If someone is interested...
|
|
|
|
willbi Posts: 63 Online:
 |
| 7/11/2008 7:18 AM |
|
| Shiva,
I think you have it but not visible.
Just try to put the cursor at the end of the file (where it is on the picture) then hit BACKSPACE and save the file.)
Here with wordpad I saw a square and the special symbol in VIM (see attached pictures).
On yours we can see a blank... and the error message is about a problem at this place. |


|
|
|
Dave Elder Moderator Posts: 150 Online:
 |
| 7/11/2008 2:04 PM |
|
| Thanks for the feedback.
Yes. It's free to use as long as potrace and the lead tools utilities remain free. Distribution does have some acknowledgement requirements for potrace but, within your own company, it should be OK.
Please let me know what we need to do to avoid the LEADCMD user installation. It would be a nice improvement.
Cheers, Dave |
|
Dave Elder Tait Electronics |
|
shiva Posts: 57 Online:
 |
| 7/12/2008 2:05 AM |
|
Thanks willbi. It's working now. But the problem is, i'm not able to open a image file. I have installed the files indicated at the sub-popup. I think, the both executable files are same. And i have set the environmental variable. Did i any wrong? Please suggest. I'm new for skill.
Thanks, Nice day, Shiva.
|


|
|
|
shiva Posts: 57 Online:
 |
| 7/12/2008 2:13 AM |
|
I'm sorry. The correct screen shot is here.
|

|
|
|
Dave Elder Moderator Posts: 150 Online:
 |
| 7/12/2008 4:04 PM |
|
| You would need to restart Allegro after installing the plugins. Otherwise everything looks OK. |
|
Dave Elder Tait Electronics |
|
willbi Posts: 63 Online:
 |
| 7/13/2008 7:42 AM |
|
Dave,
Here is my modified SKILL file to access utilities without any link to PATH.
I put all tools in the same folder than the SKILL file.
For leadcmd, to avoid the BIN path and make it works, move all the BIN content one level up, in the same folder than the lfc.exe file.
The Potrace is accessed directly due to the link you already put in the code after the OR.
defvar(logoMaker_potracePath, getShellEnvVar("POTRACE_PATH") || "Drive:/Path_to/logoMaker/utils/potrace-1.8.win32-i386")
I let you enhance this by replacing "Drive:/Path_to" with a customizable variable.
willbi. |
Attachment: logoMaker_public.il.mod.zip

|
|
|
shiva Posts: 57 Online:
 |
| 7/14/2008 5:25 AM |
|
Dave,
It's working now. I did a wrong. Sorry. But I'm facing problem again. I have tried with many images including .jpg files. Please help.
Thanks, Shiva.
|

|
|
|
host Posts: 57 Online:
 |
| 7/14/2008 11:48 AM |
|
Hi shiva, Try posting here from now on: http://www.cadence.com/community/forums/28.aspxCDNusers is being replaced by the Cadence Community -- same people but more options as an online community. Posted By shiva on 7/14/2008 5:25 AM Dave, It's working now. I did a wrong. Sorry. But I'm facing problem again. I have tried with many images including .jpg files. Please help. Thanks, Shiva.
|
|
|
|