Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 63660

Forum Post: RE: How to copy selected objects from the current schematic window to other schematic window by using SKILL?

$
0
0
Hi Marben, Whoops! I didn't notice that. Not surprising, because dbCopyFig is only going to copy the figure and not the pin. So I changed the code a little to use schCopy instead when it's a schematic, which should handle the more complex objects. This seems to work: /* abCopyToOtherWin.il Author A.D.Beckett Group Custom IC (UK), Cadence Design Systems Ltd. Language SKILL Date Mar 06, 2013 Modified Dec 15, 2018 By A.D.Beckett Put the copy on a bindkey, say: hiSetBindKey("Layout" " F8" "abCopyToOtherWin()") Copies selected objects from the current window to the window you click in when prompted Updated in v1.2 to better handle schematics. Did it properly in v1.3! *************************************************** SCCS Info: @(#) abCopyToOtherWin.il 12/15/18.13:01:02 1.3 */ procedure (abCopyToOtherWinCB(srcWin _dont _points) let ((destCv isSch) ;---------------------------------------------------------------- ; Since current window will be the destination window, this is correct ;---------------------------------------------------------------- destCv= geGetWindowCellView() isSch=destCv~>cellViewType== "schematic" foreach (fig geGetSelSet(srcWin) ;------------------------------------------------------------ ; Transformation is effectively null, since want the ; positions to be the same ;------------------------------------------------------------ if (isSch then schCopy(fig destCv list (0:0 "R0" 1)) else dbCopyFig(fig destCv list (0:0 "R0" 1)) ) ) t ) ) procedure (abCopyToOtherWin(@optional (srcWin hiGetCurrentWindow())) unless (windowp(srcWin) error ( "Must have a valid window to start from" )) hiSetCurrentWindow(srcWin) enterMultiRep( ?prompts '( "Point to the source window" "Point to the destination window" ) ?points list (0:0) ?doneProc "abCopyToOtherWinCB" ?dontDraw t ) ) Regards, Andrew.

Viewing all articles
Browse latest Browse all 63660

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>