Thursday, December 04, 2008     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: Running a script on Package library...
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
F150
Posts: 6
Online: User is Offline
5/22/2008 6:24 AM  
Not sure if I'm posting in the proper place. How would I run a scrip on all out package library parts (.dra files)?
dschaefer
Posts: 42
Online: User is Offline
5/22/2008 7:08 AM  
Use a batch file to call your script:

# batch file to process all *.dra files through an Allegro script in a directory
#
set noconfirm=t
for %%f IN (*.dra) DO start /wait /min allegro -s libfix2.scr %%f

"libfix2.scr" is my script in this case.

I always copy the *.dra files to a separate directory before running the script, then overwrite the original files if the desired results are obtained.

Dave
F150
Posts: 6
Online: User is Offline
5/22/2008 7:14 AM  

Thanks for the quick reply!

 

At the end of the script, do I need to do a save or does the batch file do that?

 

John

dschaefer
Posts: 42
Online: User is Offline
5/22/2008 7:19 AM  
Script needs to include save - sample tail of a script:

# call asysize.il
#
setwindow pcb
asysize
#
# call delsilk.il
#
setwindow pcb
delsilk
#
# redraw, save & exit
#
setwindow pcb
redisplay
save
exit

Dave
F150
Posts: 6
Online: User is Offline
5/22/2008 7:22 AM  
Thanks!

I'll give it a try and let you know how it works out (may not be until next week).

John
F150
Posts: 6
Online: User is Offline
5/22/2008 7:38 AM  
Did a quick test and got this message-

E- Command not found: for %%f IN (*dra) DO start /wait /min allegro -s jwz_text_block_a.scr %%f
dschaefer
Posts: 42
Online: User is Offline
5/22/2008 7:49 AM  
Create a batch file "yourbatch.bat" which calls your script/skill "yourscript.scr":

set noconfirm=t
for %%f IN (*.dra) DO start /wait /min allegro -s yourscript.scr %%f

Create a directory for processing, and copy all of your target .dra files, the .bat file, and the .scr file into the directory. (No need to mess with system env variables or path using this method).

From DOS, navigate to the folder and type the name of the batch file.
F150
Posts: 6
Online: User is Offline
5/22/2008 8:33 AM  
Works like a charm, Thanks!!
Posting to forums is available to community members only.
Login or Register

Forums > Silicon-package-board > PCB Design > Running a script on Package library...


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.