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
** Selected 218 Cline Segments. **
** Changing 218 Seg Widths, please wait.
E- *Error* setq/set: Variable is protected and cannot be assigned to - newline
It did not change a thing. One thing it DID do was turn off all subclasses except the etch subclass I was changing
Who is the owner of the script, you'd better consult him?SKILL lint reports a bunch of missing functionsdefined 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 - newlineThere is a write protected variable in the script.Or one of your objects has an attribute which can not be set new.Bernd
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.
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
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
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
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