EDA365电子工程师网

标题: 用skill来增加artwork的源代码(抛个砖头,高手可以贱笑!) [打印本页]

作者: lhycmyy_hawk    时间: 2013-4-15 18:29
标题: 用skill来增加artwork的源代码(抛个砖头,高手可以贱笑!)
本帖最后由 lhycmyy_hawk 于 2013-4-15 18:38 编辑

axlCmdRegister("arttgvb" 'arttgvb)
procedure(arttgvb()
let(()

; 1TOP
artworkADD("1TOP"                                 '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/TOP" "BOARD GEOMETRY/LOGO"
                                "VIA CLASS/TOP" "PIN/TOP" "ETCH/TOP" ))
; 2GND
artworkADD("2GND"                                 '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/GND" "BOARD GEOMETRY/LOGO"
                                "VIA CLASS/GND" "PIN/GND" "ETCH/GND" ))
; 3VCC
artworkADD("3VCC"                                 '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/VCC" "BOARD GEOMETRY/LOGO"
                                "VIA CLASS/VCC" "PIN/VCC" "ETCH/VCC" ))

; 4BOTTOM
artworkADD("4BOTTOM"                         '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/BOTTOM" "BOARD GEOMETRY/LOGO"
                                "VIA CLASS/BOTTOM" "PIN/BOTTOM" "ETCH/BOTTOM"))
; PASTEMASK_TOP
artworkADD("PASTEMASK_TOP"                 '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/PASTEMASK_TOP" "BOARD GEOMETRY/LOGO"
                                "VIA CLASS/PASTEMASK_TOP" "PIN/PASTEMASK_TOP"))
; PASTEMASK_BOTTOM
artworkADD("PASTEMASK_BOTTOM"         '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/PASTEMASK_BOTTOM" "BOARD GEOMETRY/LOGO"
                                "VIA CLASS/PASTEMASK_BOTTOM" "PIN/PASTEMASK_BOTTOM"))
;SOLDERMASK_TOP
artworkADD("SOLDERMASK_TOP"         '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/SOLDERMASK_TOP" "BOARD GEOMETRY/LOGO"
                                "VIA CLASS/SOLDERMASK_TOP" "PIN/SOLDERMASK_TOP" "PACKAGE GEOMETRY/SOLDERMASK_TOP" "BOARD GEOMETRY/SOLDERMASK_TOP" ))
;SOLDERMASK_BOTTOM
artworkADD("SOLDERMASK_BOTTOM"         '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/SOLDERMASK_BOTTOM" "BOARD GEOMETRY/LOGO"
                                "VIA CLASS/SOLDERMASK_BOTTOM" "PIN/SOLDERMASK_BOTTOM" "PACKAGE GEOMETRY/SOLDERMASK_BOTTOM" "BOARD GEOMETRY/SOLDERMASK_BOTTOM" ))
;SILKSCREEN_TOP
artworkADD("SILKSCREEN_TOP"         '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/SILKSCREEN_TOP" "BOARD GEOMETRY/LOGO"
                                "REF DES/SILKSCREEN_TOP" "PACKAGE GEOMETRY/SILKSCREEN_TOP" "BOARD GEOMETRY/SILKSCREEN_TOP" ))
;SILKSCREEN_BOTTOM
artworkADD("SILKSCREEN_BOTTOM"         '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/SILKSCREEN_BOTTOM" "BOARD GEOMETRY/LOGO"
                                "REF DES/SILKSCREEN_BOTTOM" "PACKAGE GEOMETRY/SILKSCREEN_BOTTOM" "BOARD GEOMETRY/SILKSCREEN_BOTTOM" ))
;DRILL
/*
if(axlIsLayer("MANUFACTURING/NCLEGEND-1-2")
artworkADD("DRILL_2"                         '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/SILKSCREEN_BOTTOM" "BOARD GEOMETRY/LOGO"
                                "DRAWING FORMAT/NCDRILL_LEGEND" "MANUFACTURING/NCLEGEND-1-2")))
*/
if(axlIsLayer("MANUFACTURING/NCLEGEND-1-4")
artworkADD("DRILL_4"                         '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/SILKSCREEN_BOTTOM" "BOARD GEOMETRY/LOGO"
                                "DRAWING FORMAT/NCDRILL_LEGEND" "MANUFACTURING/NCLEGEND-1-4")))
/*
if(axlIsLayer("MANUFACTURING/NCLEGEND-1-6")
artworkADD("DRILL_6"                         '("BOARD GEOMETRY/OUTLINE" "DRAWING FORMAT/SILKSCREEN_BOTTOM" "BOARD GEOMETRY/LOGO"
                                "DRAWING FORMAT/NCDRILL_LEGEND" "MANUFACTURING/NCLEGEND-1-6")))
*/

/* 无函数
axlVisibleDesign(nil)
layerList='("BOARD GEOMETRY/OUTLINE" "ETCH/TOP" "PIN/TOP" "VIA CLASS/TOP")
foreach( layer layerList axlVisibleLayer(layer t))
axlUIWRedraw(nil)
(axlDBCreateFilmRec "1top"  0 0 0 6000 0 1 0 0 0 0 0 1 1)
*/
))


procedure( artworkADD(artworkName artList)
let(()
axlVisibleDesign(nil)
foreach( layer artList axlVisibleLayer(layer t))
axlUIWRedraw(nil)
(axlDBCreateFilmRec artworkName 0 0 0 6000 100000 1 0 0 0 0 0 1 1)
))  

插段小广告:
http://myfpcb.taobao.com/





欢迎光临 EDA365电子工程师网 (http://bbs.elecnest.cn/) Powered by Discuz! X3.2