genesis学习.doc_第1页
genesis学习.doc_第2页
genesis学习.doc_第3页
genesis学习.doc_第4页
genesis学习.doc_第5页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Genesis学习1. get_message_bar 得到信息栏的信息 ($READANS)COM get_message_bar PAUSE $READANS2. get_select_count 得到所选物体的个数 ($COMANS)COM get_select_count if ( $COMANS != 0 ) then3. get_units 得到当前的单位 ($COMANS)COM get_units PAUSE $COMANS4. get_user_name 得到当前用户名 ($COMANS)COM get_user_name PAUSE $COMANS5. get_version 得到当前genesis系统的版本号 ($COMANS) COM get_version PAUSE $COMANS6. get_work_layer 得到当前工作层 ($COMANS) COM get_work_layer PAUSE $COMANS7. graphic_cursor 设置鼠标的样式 COM graphic_cursor,mode=regular ( full_screen)8. get_affect_layer 得到影响层 ($COMANS) COM get_affect_layerPAUSE $COMANS9. get_disp_layers 得到显示层 ($COMANS) COM get_disp_layers PAUSE $COMANS10. get_origin 得到圆点的坐标 ($COMANS) COM get_origin PAUSE $COMANS11. PAUSE $pwd输出当前路径12. $gSTEPS_LIST得到板上存在的step(DO_INFO -t JOB -e $JOB)13. $gSRnx $gSRny 得到拼板数14. $gNUM_SR 得到set中的拼板数 DO_INFO -t step -e $JOB/set15. $gSRstep 得到拼板中的板是从那一个step中虚拼过来的16. gTOOLbit得到钻孔的刀径大小17. gTOOLdrill_size得到钻孔的完成孔径的大小.18. gTOOLcount得到相对应的那一把刀的孔数19. gTOOLtype得到相对应的那一把刀的属性.20. gTOOLfinish_size 得到相应钻孔的完成孔径。21. gNUM_TOOL得到钻孔层钻刀的个数22. gTOOLNUM 得到钻孔层刀具表的刀号23. gFEAT_HISTtotal 得到某层物体的总个数24. gFEAT_HISTpad 得到某层盘的总个数25. gFEAT_HISTline 得到某层线的总个数26. gFEAT_HISTsurf 得到某层面的总个数27. gFEAT_HISTarc 得到某层弧的总个数28. gFEAT_HISTtext 得到某层文本的总个数.29. gCONTEXT 查看是否为板上属性30. gTYPE 查看某层是什么类型(signal power_ground,silk_screen,solder_mask)31. gPORLARITY 查看是正片层还是负片层(positive negative )32. gROW 得到文件的总行数33. gNUM_ROWS 得到matrix的总行数34. gNUM_COLS 得到matrix的总列数35. gNUM_LAYERS 得到matrix的总层数36. gNUM_STEPS 得到matrix 的step总数37. gROWrow 得到matrix的行序号38. gROWtype 得到matrix的行类型(看是否为空)39. gROWname 得到matrix的行名40. gROWcontext 得到matrix某一行是否为板上属性41. gROWlayer_type 得到matrix的层类型42. gROWpolarity 得到matrix的极性43. is_job_open 判断某一个job是否打开(COM is_job_open job=pcb)44. SU_ON 获得超级用户权限45. SU_OFF 失去超级用户权限46. MOUSE r|p message 47. set TST = echo $LAYER | grep -c + 删除与“+”批配的层48. uname 显示当前系统的信息(WINDOWS_NT)49. cut 取字符串的一部分50. wc 计算字符串的字符总数51. sleep x等待x秒钟52. rm 删除文件和目录53. rmdir 删除空的目录54. bc 将小数精确到小数点后几位55. editor_page_close 关闭某个step56. matrix_page_cloase 关闭matrix57. tr A-Z a-z 将大写字母转换为小写字母 set x = echo “WHAT” | tr A-Z a-z58. set date = date +%m/%d/%y 将自定义的日期赋值给一个变量58. 赋值语句: 1. x+ 2. set x = expr $x + 1 3. x = y + 159. bc 精确小数点的位数 %echo 10/3 | bc 3%echo 10/3 | bc l 3.33333333333333333333%echo scale=4 ; 10/3 | bc l 3.333360. ps 报告进程的状态 %ps -ef | grep gnd 153 gnd.exe61. pwd 当前路径 %pwd C:/tmp 61. uname 获取操作系统平台 %uname WINDOWS_NT62. whoami 获取当前用户名 %whoami genesis63. basename 获取基本文件名 %basename /tmp/list.txt list.txt64. cat 连接文件cat d:/1.txt d:/2.txt d:/3.txt d:/4.txt %cat gui_inWIN 100 100LABEL TEST GUI%cat v gui_inWIN 100 100MLABEL TEST GUIM65. chmod 改变文件的访问权限 %ls -ltotal 2-r-r-r- 1 0 0 208 Dec 11 16:45 limits-rw-rw-rw- 1 0 0 207 Dec 13 16:21 limits.txt%chmod +w limits%ls -ltotal 2-rw-rw-rw- 1 0 0 208 Dec 11 16:45 limits-rw-rw-rw- 1 0 0 207 Dec 13 16:21 limits.txt66. cmp 比较两个文件 %cmp limits limits2limits limits2 differ: char 131, line 567. compress 压缩文件 compress files%compress limits%ls -ltotal 33-rw-rw-rw- 1 0 0 0 Dec 13 17:16 limits.Z68. cp 复制文件和目录 copy files and directoriescp rp /jobs/my_job $GENESIS_DIR/fw/jobs/$JOB/input/.cp $GENESIS_DIR/fw/jobs/$JOB/output/outfile /output/outfile69. cut 截取字符串remove sections from each line of filesecho $layer | cut c3 return the 3rd character from $layerecho $layer | cut c3- return all characters from the 3rd on from $layercat /jobs/myjob/file1.grb | grep G54 | cut d”D” f2 return the string present after the first coourence of the delimitator “D”70. date 系统日期时间 %date Thu Dec 14 16:03:36 200071. du 磁盘的使用情况 %du -s /jobs 68251 /jobs72. find %find / -name limits print /tmp/limits73 mv 移动文件 %mv olddir newdir74 . mkdir 创建目录 %mkdir newdir75. Printenv 回显所有的环境变量%printenvCOMPUTERNAME=CLAUDIOComSpec=C:WINNTsystem32cmd.exeDISPLAY=:0.0GENESIS_DIR=c:genesisGENESIS_EDIR=c:genesise72GENESIS_EXPOSE_MODE=1GENESIS_FONTSIZE=1GENESIS_HELP_DIRS=C:/genesis.doc/pdfGENESIS_MIX_KEEP_SPARE=32GENESIS_TMP=C:/tmpGENESIS_VER=72HOME=C:/users/default76. env 显示所有的环境变量77. printf 格式化输出78. rm 删除文件%rm -r newdir%rm oldfile79 . rmdir 删除目录 %rmdir pippoC:usrlocalbinrmdir: pippo: Directory not empty79. sed 文本流编辑器 stream text editor%sed 2d limits(removes the second line of file limits)%sed /ymax/d limits(removes all lines containing string “ymax”)%sed 3,5d limits (removes all lines from the 3rd to the 5th line)%sed 3,5g limits (substitute to blank lines all lines from the 3rd to the 5th)%sed 3G limits (insert a blank line after the 3rd line)%sed 3= limits (insert a line before the 3rd line, that contains the line #)%sed -n 2p limits(returns the second line of file limits)%sed -n 3,5p limits (returns all lines from the 3rd to the 5th line)%sed -n 3,$p limits (returns all lines from the 3rd line till the end of the file)%sed s/xmin/XMIN/g limits(substitutes all occurrence of string “xmin” into “XMIN”)%sed 1s/xmin/XMIN/g limits(substitutes the string on line 1 only)%sed s/xmin/XMIN/1 limits(substitutes the first occurrence of string on each lines)80. sleep n 挂起的秒数 81 Sort 文本文件排序 %cat limits | cut -d= -f2 | sort (sort in alphanumeric order 1,10,2,3,)%cat limits | cut -d= -f2 | sort n (sort in numeric order 1,2,3.9,10)%cat limits | cut -d= -f2 | sort u (sort and remove duplicated) -61.27 0 61.2782. tail 输出文件的最后部分 %tail -5 limits (prints the last 5 lines)set gLIMITSymax = 61.27set gSR_LIMITSxmin = 0set gSR_LIMITSymin = 0set gSR_LIMITSxmax = 0set gSR_LIMITSymax = 0%tail +5 limits (skips the first 5 lines)set gSR_LIMITSxmin = 0set gSR_LIMITSymin = 0set gSR_LIMITSxmax = 0set gSR_LIMITSymax = 083. tr 转换字符translate or delete characters%tr a-z A-Z limitsSET GLIMITSXMIN = -61.27SET GLIMITSYMIN = -61.27SET GLIMITSXMAX = 61.27SET GLIMITSYMAX = 61.27SET GSR_LIMITSXMIN = 0SET GSR_LIMITSYM

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论