uc shape.il

来自「Allegro常用skill」· IL 代码 · 共 39 行

IL
39
字号
; SKILL file rep_ucshape.il
;
;	This file will look at the current database to find any shapes
;	that unconnected and have no net name associated with them.
;

axlCmdRegister( "uc shape" 'uc_shape)
procedure( uc_shape()
	logfile="./uncon_shapes.log"
	axlClearSelSet()
	axlSetFindFilter(?enabled '(noall shapes) ?onButtons '(noall shapes))
	axlAddSelectAll()
	rep_file=outfile(logfile)
	fprintf(rep_file "\tUnconnected Shape Report\n\nLocation\t\t\tLayer\n\n")
	l_shapes=axlGetSelSet()
	axlClearSelSet()
	foreach( shape l_shapes
		i=0
		if( shape->net!=nil	;only get etch shapes
		  then
			if( shape->net->name==""	;get unconnected shapes
			  then
			  location=car(shape->bBox)
	      layer=shape->layer
	      fprintf(rep_file "%L\t\t%s\n" location,layer)
				if(layer="BOUNDARY/TOP"||"BOUNDARY/BOTTOM"
					 then
					 ++i
					 l_shapes=cons(shape l_shapes)
					 axlMsgPut("There are %d unfilled shapes ." i)
					
				  ); end if layer  
					 
			);endif
		);endif
	);endfor
	close(rep_file)
	axlUIViewFileCreate(logfile "Unconnected Shapes Log" nil)
);end defun

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?