• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. cwidth.il script not working

Stats

  • Replies 6
  • Subscribers 158
  • Views 16119
  • Members are here 0
More Content

cwidth.il script not working

archive
archive over 18 years ago

I have a skill script called cwidth.il I haven't used it in a while but I need to use it now desperately and it does not work. I have tried both v15.2 and v15.5. Below is the transcripyt of the erroer and I'll attach the script as well. Any help would be greatly appricated it's a great script to have when you need it to change cline width on a layer and segement basis.

Loading signal.cxt
Loading axlcore.cxt
** Selected 218 Cline Segments. **
** Changing 218 Seg Widths, please wait.
E- *Error* setq/set: Variable is protected and cannot be assigned to - newline
Command >
 
It did not change a thing.  One thing it DID do was turn off all subclasses except the etch subclass I was changing


Originally posted in cdnusers.org by gerrym_fcs
cwidth.il
  • Sign in to reply
  • Cancel
  • archive
    archive over 18 years ago

    Who is the owner of the script, you'd better consult him?

    SKILL lint reports a bunch of missing functions
    defined in the script, so it's impossible to debug
    (at least for me).

    > E- *Error* setq/set: Variable is protected and cannot be assigned to - newline
    There is a write protected variable in the script.
    Or one of your objects has an attribute which can not be set new.

    Bernd


    Originally posted in cdnusers.org by bernd.fischer
    cwidth.sklint.il
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • archive
    archive over 18 years ago

    This code is for Allegro, and so you should ask this question in the Silicon Package Board SKILL forum, not here.

    Bernd, SKILL Lint in DFII is not likely to be that much help, given that many of the functions are missing since they are Allegro "axl" funcitons...

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • archive
    archive over 18 years ago

    Hi Gerry,

    I changed the variable named "newline" (which IS reserved) to "newLine" (note the upperCase "L") and the code worked - albeit with plenty of warnings and a minimum new width of 1.0 which is too small for a metric board.

    Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • archive
    archive over 18 years ago

    Dave,

    What [b]are[/b] the reserved words in Skill? I did a program not too long ago that used "Print" as a menubutton name. It took me a while to figure out that the name was causing a problem. A list of reserved wods would be really helpfull in debugging.

    - Geoff


    Originally posted in cdnusers.org by Geoffm
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • archive
    archive over 18 years ago

    Hi Geoff,

    Sorry, I'm not sure that there's an easy way to get that list.
    You can use the oblist to get an idea. Just type "oblist" at the Skill command window.
    I try to avoid any obvious variable names and always use a let statement to declare all variables as local.
    You can use sklint to do another check.

    Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information