;; This is a skill code written to produce a sqare pad frame given the number of pads on ;; a side. procedure( placePadFrame( @optional no_pads ) (if (null no_pads) then (setq no_pads (enterNumber ?prompts '("Please enter the number of pads on a side")))) (setq xpointh 291) (setq ypointh 201) (setq xpointv 201) (setq ypointv 291) (for i 1 no_pads (dbCreateInst (getEditRep) (dbOpenCellViewByType "tutorial" "PADNC" "layout") nil (list xpointh ypointh) "R180") (dbCreateInst (getEditRep) (dbOpenCellViewByType "tutorial" "PADNC" "layout") nil (list xpointh-90 ypointh+no_pads*90) "R0") (setq xpointh xpointh+90) ) (for i 1 no_pads (dbCreateInst (getEditRep) (dbOpenCellViewByType "tutorial" "PADNC" "layout") nil (list xpointv ypointv-90) "R90") (dbCreateInst (getEditRep) (dbOpenCellViewByType "tutorial" "PADNC" "layout") nil (list xpointv+no_pads*90 ypointv) "R270") (setq ypointv ypointv+90) ) (dbCreateInst (getEditRep) (dbOpenCellViewByType "tutorial" "PADFC" "layout") nil (list xpointv-300 ypointv-90) "R0") (dbCreateInst (getEditRep) (dbOpenCellViewByType "tutorial" "PADFC" "layout") nil (list xpointh-90 ypointv+210) "R270") (dbCreateInst (getEditRep) (dbOpenCellViewByType "tutorial" "PADFC" "layout") nil (list xpointh+210 201) "R180") (dbCreateInst (getEditRep) (dbOpenCellViewByType "tutorial" "PADFC" "layout") nil (list 201 -99) "R90") )