Home > Community > Forums > PCB SKILL > cwidth.il script not working

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

 cwidth.il script not working 

Last post Sun, Oct 1 2006 7:21 PM by archive. 6 replies.
Started by archive 01 Oct 2006 07:21 PM. Topic has 6 replies and 2306 views
Page 1 of 1 (7 items)
Sort Posts:
  • Sun, Oct 1 2006 7:21 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    cwidth.il script not working Reply

    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
    • Post Points: 0
  • Mon, Oct 2 2006 2:32 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: cwidth.il script not working Reply

    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
    • Post Points: 0
  • Mon, Oct 2 2006 5:01 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: cwidth.il script not working Reply

    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
    • Post Points: 0
  • Mon, Oct 2 2006 9:55 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: cwidth.il script not working Reply

    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
    • Post Points: 0
  • Tue, Oct 3 2006 5:41 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: cwidth.il script not working Reply

    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
    • Post Points: 0
  • Tue, Oct 3 2006 8:05 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: cwidth.il script not working Reply

    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
    • Post Points: 0
  • Mon, Oct 23 2006 3:34 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: cwidth.il script not working Reply

    Never heared of oblist, how to parse it's output ?

    I know of the _lfn() macro which accepts an regexp string to search for functions.
    _lfn( "axl") returns all AllegroPCB skill functions starting with axl...
    _lfn( "cn") returns all ConceptHDL skill functions starting with cn... (when started from cnskill.exe)

    This way you can create the needed input for a texteditor which supports function highlighting
    (see: http://www.tschirmer.de/e_goodstuff.html#Notepadpp )

    Tobias


    Originally posted in cdnusers.org by tschirmer
    • Post Points: 0
Page 1 of 1 (7 items)
Sort Posts:
Started by archive at 01 Oct 2006 07:21 PM. Topic has 6 replies.