home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 December
/
PCWKCD1296.iso
/
demo
/
wgelectr
/
cameval
/
cam31
/
misc.z
/
DEMOSCR.SCR
< prev
next >
Wrap
Text File
|
1995-12-15
|
18KB
|
801 lines
; Advanced CAM Technologies Macro Revision: 1.0
; Demo feature script
100
setnewfile@
setopenfile@ ".\demoscr\act.pcb"
view_all@
delay 3000
setnewfile@
;SETUP
gosub 500
setdcode@ 100
addtext@ -425.,100.,452.2686,-200.," Bringing\Design & Manufacturing\ together with..."
end@
view_all@
delay 3000
undo@
addtext@ -300.,175.,395.4513,175.,"The CAM350 Family\ Version 3.0"
end@
view_all@
delay 3000
setnewfile@
;SETUP
gosub 500
; DRAW BOX
gosub 510
setdcode@ 100
textheight@ 50
add_text@
addtext@ -775.,550.,-456.8197,-50.,"Powerful CAM:\Robust photoplotter\support:\274, 274X\Fire 9xxx and\Barco DPF."
delay 3000
addtext@ -.015,-.1,.675,-.3,"With step & repeat\and raster polygons..."
end@
delay 3000
textjust@ 17
textfitting@ 0
textcspace@ 0.0000
textlspace@ 25.0000
undo@
undo@
textjust@ 20
textheight@ 100
delay 1000
addtext@ -0.0,643.4000,-38.5000,543.4000,"Version 3.0 has:"
end@
delay 2000
textheight@ 50
textjust@ 17
textfitting@ 0
textcspace@ 0.0000
textlspace@ 25.0000
addtext@ -627.1000,507.4000,-627.1000,407.4000,"OPTIONAL DXF IMPORT/EXPORT:"
delay 2000
addtext@ -600.,394.9000,647.8719,394.9000,"* Supports any DXF file."
delay 1500
addtext@ -600.,270.7000,-317.3886,170.7000,"* Builds aperture table automatically,\ can even build customs too."
delay 1500
addtext@ -600.,63.,517.4113,63.6000,"* Bi-Directional support."
delay 1500
addtext@ -600.,-22.,116.5020,-99.1000,"* Builds part footprints for CAM350."
DELAY 1500
addtext@ -600.,-173.0000,504.7484,-173.0000,"FAST, ACCURATE, and EASY-TO-USE!"
delay 3000
undo@
undo@
undo@
undo@
undo@
undo@
setopenfile@ ".\demoscr\mtrcycle.pcb"
delay 3000
view_zoomin@
axy@ 400,10900
delay 3000
setnewfile@
;SETUP
gosub 500
;DRAW BOX
gosub 510
textjust@ 20
textheight@ 100
delay 1000
addtext@ -0.0,643.4000,-38.5000,543.4000,"Version 3.0 has:"
end@
delay 3000
textheight@ 50
textjust@ 17
textfitting@ 0
textcspace@ 0.0000
textlspace@ 25.0000
addtext@ -627.1000,507.4000,-627.1000,407.4000,"INFINITE NUMBER OF LAYERS:"
delay 2000
addtext@ -600.,394.9000,647.8719,394.9000,"* Really, its true!"
delay 1500
addtext@ -600.,270.7000,-317.3886,170.7000,"Lets quickly add 25 layers..."
delay 1500
edit_layer@ 2,4,4,4,0,"Layer_3"
edit_layer@ 3,5,5,4,0,"Layer_4"
edit_layer@ 4,6,6,4,0,"Layer_5"
edit_layer@ 5,7,7,4,0,"Layer_6"
edit_layer@ 6,8,8,4,0,"Layer_7"
edit_layer@ 7,9,9,4,0,"Layer_8"
edit_layer@ 8,10,10,4,0,"Layer_9"
edit_layer@ 9,11,11,4,0,"Layer_10"
edit_layer@ 10,12,12,4,0,"Layer_11"
edit_layer@ 11,13,13,4,0,"Layer_12"
edit_layer@ 12,14,14,4,0,"Layer_13"
edit_layer@ 13,15,15,4,0,"Layer_14"
edit_layer@ 14,2,2,4,0,"Layer_15"
edit_layer@ 15,3,3,4,0,"Layer_16"
edit_layer@ 16,4,4,4,0,"Layer_17"
edit_layer@ 17,5,5,4,0,"Layer_18"
edit_layer@ 18,6,6,4,0,"Layer_19"
edit_layer@ 19,7,7,4,0,"Layer_20"
edit_layer@ 20,8,8,4,0,"Layer_21"
edit_layer@ 21,9,9,4,0,"Layer_22"
edit_layer@ 22,10,10,4,0,"Layer_23"
edit_layer@ 23,11,11,4,0,"Layer_24"
edit_layer@ 24,12,12,4,0,"Layer_25"
edit_layer@ 25,13,13,4,0,"Layer_26"
edit_layer@ 26,14,14,4,0,"Layer_27"
setlayer@ 27
addtext@ -600.,63.,517.4113,63.6000,"Pretty simple -- right!"
delay 3000
addtext@ -600.,-22.,116.5020,-99.1000,"Now lets remove them ..."
DELAY 3000
edit_removelyr@ 2
edit_removelyr@ 3
edit_removelyr@ 4
edit_removelyr@ 5
edit_removelyr@ 6
edit_removelyr@ 7
edit_removelyr@ 8
edit_removelyr@ 9
edit_removelyr@ 10
edit_removelyr@ 11
edit_removelyr@ 12
edit_removelyr@ 13
edit_removelyr@ 14
edit_removelyr@ 15
edit_removelyr@ 16
edit_removelyr@ 17
edit_removelyr@ 18
edit_removelyr@ 19
edit_removelyr@ 20
edit_removelyr@ 21
edit_removelyr@ 22
edit_removelyr@ 23
edit_removelyr@ 24
edit_removelyr@ 25
edit_removelyr@ 26
edit_removelyr@ 27
setlayer@ 2
addtext@ -600.,-173.0000,504.7484,-173.0000,"Never run out of layers again!"
delay 3000
setnewfile@
;SETUP
gosub 500
;DRAW BOX
gosub 510
textjust@ 20
textheight@ 100
delay 1000
addtext@ -0.0,643.4000,-38.5000,543.4000,"Version 3.0 has:"
end@
delay 2000
textheight@ 50
textjust@ 17
textfitting@ 0
textcspace@ 0.0000
textlspace@ 25.0000
addtext@ -627.1000,507.4000,-627.1000,407.4000,"AUTOIMPORT:"
delay 2000
addtext@ -600.,394.9000,647.8719,394.9000,"* Automatically detects file formats."
delay 1500
addtext@ -600.,270.7000,-317.3886,170.7000,"* Automatically converts aperture\ tables."
delay 1500
addtext@ -600.,63.,517.4113,63.6000,"Read in all your files in seconds !"
delay 1500
addtext@ -600.,-22.,116.5020,-99.1000,"Save lots of time ..."
DELAY 1500
addtext@ -600.,-173.0000,504.7484,-173.0000,"NO MORE TRIAL AND ERROR ..."
delay 3000
setnewfile@
setopenfile@ ".\demoscr\fonts.pcb"
;SETUP
gosub 500
;DRAW BOX
gosub 510
textjust@ 20
textheight@ 100
delay 1000
addtext@ -0.0,643.4000,-38.5000,543.4000,"Version 3.0 has:"
end@
delay 2000
textheight@ 50
textjust@ 17
textfitting@ 0
textcspace@ 0.0000
textlspace@ 25.0000
axy@ -600.0000,500.0000
add_text@
addtext@ -600.0000,500.0000,718.1528,500.0000,"TRUETYPE FONT SUPPORT:"
delay 2000
addtext@ -600.0000,300.0000,738.6069,300.0000,"* Use any Windows Truetype font"
delay 1500
addtext@ -600.0000,200.0000,-79.5569,200.0000,"* Plot them to film using RS274-X,\ Fire9XXX, or Barco DPF"
delay 1500
textheight@ 75.0000
textfont@ "WINGDING.TTF"
textlspace@ 10.0000
addtext@ -700.0000,-25.0000,741.9735,-85.0000,"ABCDEFGHIJKLMNOPQRSTUVWXYZ\1234567890!@#$%^&*()-"
textfont@ "BRUSHSCI.TTF"
textheight@ 100.0000
addtext@ -350.0000,-250.0000,405.7913,-250.0000,"Imagine the possibilities!"
back@
delay 3000
undo@
undo@
undo@
undo@
undo@
delay 1000
textfont@ "SIMPLE.EFN"
textheight@ 50.0000
textlspace@ 25.0000
addtext@ -600.0000,500.0000,447.7042,500.0000,"UNIVERSAL APERTURE CONVERTER:"
delay 2000
addtext@ -600.0000,300.0000,456.7949,300.0000,"* Totally user programmable."
delay 1500
addtext@ -600.0000,200.0000,-600.0000,0.0000,"* Teach the system to read your\ files."
delay 1500
addtext@ -600.0000,0.0000,602.2462,0.0000,"* Uses Aperture Rule Files (.ARL)"
delay 1500
addtext@ -600.0000,-100.0000,374.9785,-100.0000,"* Also used by AutoImport."
delay 3000
undo@
undo@
undo@
undo@
undo@
delay 1000
addtext@ -600.0000,500.0000,86.3485,500.0000,"INTELLIGENT PANELIZATION:"
delay 2000
addtext@ -600.0000,300.0000,249.9813,300.0000,"* Allows Repanelization."
delay 1500
addtext@ -600.0000,200.0000,254.5266,200.0000,"* Allows Unpanelization."
delay 1500
addtext@ -600.0000,100.0000,724.9708,100.0000,"* Change parameters after the fact."
delay 1500
addtext@ -600.0000,0.0000,227.2545,0.0000,"* Enter values directly."
delay 1500
addtext@ -600.0000,-100.0000,509.0665,-100.0000,"* Supports merged databases."
delay 3000
undo@
undo@
undo@
undo@
undo@
undo@
delay 1000
addtext@ -600.0000,500.0000,147.7108,500.0000,"PLATFORM INDEPENDENCE:"
delay 2000
addtext@ -600.0000,300.0000,181.8009,300.0000,"* Single source code."
delay 1500
addtext@ -600.0000,200.0000,63.6217,200.0000,"* PC, HP, SUN or IBM."
delay 1500
addtext@ -600.0000,100.0000,-161.3733,100.0000,"* Windows or OSF Motif."
delay 1500
addtext@ -600.0000,0.0000,368.1605,0.0000,"* Indentical user interface."
delay 1500
addtext@ -600.0000,-100.0000,774.9697,-100.0000,"* All platforms updated automatically."
delay 3000
undo@
undo@
undo@
undo@
undo@
undo@
delay 1000
addtext@ -600.0000,500.0000,718.1528,500.0000,"INTELLIGENT DRAW TO FLASH:"
delay 2000
addtext@ -600.0000,300.0000,738.6069,300.0000,"* Converts entire board in one pass."
delay 1500
addtext@ -600.0000,200.0000,-79.5569,200.0000,"* Much faster."
delay 1500
addtext@ -600.0000,100.0000,206.8004,0.0000,"* Handles all shapes, even pads \ made up of flashes."
delay 3000
undo@
undo@
undo@
undo@
delay 1000
addtext@ -600.0000,500.0000,718.1528,500.0000,"NEW, LAYER BAR:"
delay 2000
addtext@ -600.0000,300.0000,738.6069,300.0000,"* Displays Draw & Flash Colors"
delay 1500
addtext@ -600.0000,200.0000,-79.5569,200.0000,"* Simple and Fast"
delay 1500
addtext@ -600.0000,100.0000,206.8004,0.0000,"* Add Layers at the click of a button"
delay 3000
undo@
undo@
undo@
undo@
delay 1000
addtext@ -600.0000,500.0000,718.1528,500.0000,"NEW, DRILL TOOL REORDER:"
delay 2000
addtext@ -600.0000,300.0000,738.6069,300.0000,"* User can control tool order"
delay 1500
addtext@ -600.0000,200.0000,-79.5569,200.0000,"* Simple and Fast"
delay 3000
undo@
undo@
undo@
delay 1000
addtext@ -600.0000,500.0000,718.1528,500.0000,"USER DEFINABLE TEARDROPS:"
delay 2000
addtext@ -600.0000,300.0000,738.6069,300.0000,"* Set any line length"
delay 1500
addtext@ -600.0000,200.0000,-79.5569,200.0000,"* Runs DRC automatically"
delay 1500
addtext@ -600.0000,100.0000,206.8004,0.0000,"* Will not create DRC violation"
delay 3000
undo@
undo@
undo@
undo@
setopenfile@ ".\demoscr\demodum.pcb"
;SETUP
gosub 500
layer_alloff@ 1
setlayer@ 1
setlayer@ 2
end@
view_window@
axy@ 1450.,4625.
axy@ 3000.,3250.
add_text@
setdcode@ 100
textheight@ 50.
addtext@ 1600.,4450.,2181.8154,4300.,"Powerful Polygon\Pouring."
back@
back@
delay 3000
undo@
setlayer@ 1
polylayer@ 1
polyfilldcode@ 10
polyclearance@ 20.
polyfillpattern@ "SOLID"
polyfillmethod@ "RASTER"
polyaddtype@ "DRAWBORDER"
add_pouring@
axy@ 1650.,3700.
axy@ 1650.,4475.
axy@ 2600.,4475.
axy@ 2600.,3700.
back@
delay 3000
undo@
end@
add_text@
end@
setlayer@ 2
textheight@ 50.
add_text@
addtext@ 1625.,4525.,2197.7213,4275.,"Raster polygons are\fast & keep the file\size small."
delay 3000
undo@
addtext@ 1600.,4500.,2496.5815,4375.,"But polygons can have\patterns as well:"
back@
back@
delay 3000
undo@
setlayer@ 1
polylayer@ 1
polyfilldcode@ 10
polyclearance@ 20.
polyfillpattern@ "HATCHED"
polypatdcode@ 0,10
polypatangle@ 0,0
polypatstep@ 0,40.
polypatdcode@ 1,10
polypatangle@ 1,45
polypatstep@ 1,40.
polypatdcode@ 2,10
polypatangle@ 2,90
polypatstep@ 2,40.
polyfillmethod@ "VECTOR"
polyaddtype@ "DRAWBORDER"
add_pouring@
axy@ 1650.,3700.
axy@ 1650.,4475.
axy@ 2600.,4475.
axy@ 2600.,3700.
back@
back@
delay 3000
end@
layer_alloff@ 0
Print_msg "Step & Repeat makes panelization FAST !!!"
end@
delay 3000
close_msg
panel_spread@ 0,4
panel_spacing@ 500.,500.,500.,500.,0
panel_dimension@ 64000.,48000.
panel_outline@ 0,10,3,0.
panelization@
back@
delay 3000
end@
setnewfile@
setopenfile@ ".\demoscr\demodum.pcb"
;SETUP
gosub 500
delay 1000
textheight@ 50.
print_msg "Lets create some drill data and then sort across the panel."
delay 3000
close_msg
util_drill_create@
drill_create@ 4,"drill_5.dpt"
panel_spread@ 0,5
panel_spacing@ 500.,500.,500.,500.,0
panel_dimension@ 64000.,48000.
panel_outline@ 0,10,3,0.
panelization@
drill_firstlast@ 0
drill_sort_set@ 0,10,500.,4
drill_sort@ 0.,0.,0.,0.
delay 3000
setnewfile@
;SETUP
gosub 500
;DRAW BOX
gosub 510
setdcode@ 100
textheight@ 50.
setgridvis@ 0
add_text@
addtext@ -750.,725.,.700,250,"This is all running at\ACTUAL speed."
delay 3000
add_text@
addtext@ -350.,450.,211.3585,150.,"Powerful Macros and\Scripts make the\real difference."
delay 3000
addtext@ -50.,100.,159.0861,-375.,"You are interacting\with a macro now\called demoscr.scr"
delay 3000
undo@
undo@
undo@
back@
back@
edit_aperture@ 101,1,25.,25.,101,""
setdcode@ 100
add_text@
addtext@ -750.,675.,22.7231,425.,"Macros can:"
delay 1000
setdcode@ 101
add_flash@
axy@ -525.,525.
back@
delay 500
setdcode@ 100
addtext@ -400.,500.,909.0833,250.,"Interact with the user."
delay 1000
setdcode@ 101
add_flash@
axy@ -525.,350.
back@
delay 500
setdcode@ 100
addtext@ -400.,325.,422.7220,75.,"Make decisions."
delay 1000
setdcode@ 101
add_flash@
axy@ -525.,175.
back@
delay 500
setdcode@ 100
addtext@ -400.,150.,-9.0942,-250.,"And Query the database."
back@
back@
delay 3000
setnewfile@
;SETUP
gosub 500
print_msg "Lets load a database and then query it."
view_all@
delay 3000
end@
setnewfile@
setopenfile@ ".\demoscr\demodum.pcb"
print_msg "Current minimum x is: ",dbminx!
delay 1000
print_msg "Current maximum x is: ",dbmaxx!
delay 1000
print_msg "Current minimum y is: ",dbminy!
delay 1000
print_msg "Current maximum y is: ",dbmaxy!
delay 1000
print_msg "Current database name: ",dbname!
delay 1000
print_msg "Current film size min. x: ",filmminx!
delay 1000
print_msg "Current film size max. x: ",filmmaxx!
delay 1000
print_msg "Current film size min. y: ",filmminy!
delay 1000
print_msg "Current film size max. y: ",filmmaxy!
delay 1000
print_msg "First blank Dcode: ",blankdcode!
delay 1000
print_msg "Highest used Dcode is: ",highestdcode!
delay 1000
print_msg "Highest used Padstack is: ",highestpstk!+1
delay 1000
print_msg "First blank Layer: ",blanklayer!+1
delay 1000
print_msg "Current active Dcode: ",activedcode!
delay 1000
print_msg "Current active Layer: ",activelayer!+1
delay 1000
print_msg "Current Dcode Shape: ",dcodeshape!
delay 1000
print_msg "Current Dcode Size X: ",dcodesizex!
delay 1000
print_msg "Current Dcode Size Y: ",dcodesizey!
delay 1000
print_msg "Current Drill Layer: ",drilllayer!
delay 1000
print_msg "Drill Tool: ",drilltool!
delay 1000
print_msg "Drill Legend: ",drilllegend!
delay 1000
print_msg "Border Layer: ",borderlayer!
delay 1000
print_msg "Number of flashes using current Dcode: ",numflashes!
delay 1000
print_msg "Number of Draws using active Dcode: ",numdraws!
delay 1000
print_msg "What time is it?: ",time!
delay 3000
end@
setnewfile@
;SETUP
gosub 500
setdcode@ 100
addtext@ -7500.,675.,681.8109,125.,"CAM350 can convert\Gerber files to an\intelligent database..."
end@
view_all@
delay 3000
setnewfile@
;SETUP
gosub 500
;DRAW BOX
gosub 510
edit_aperture@ 101,1,25.,25.,101,""
textheight@ 50.
setgridvis@ 0
setdcode@ 100
addtext@ -750.,675.,63.6320,125.,"CAM350's database is a CAD database\that understands:"
back@
delay 2000
setdcode@ 101
add_flash@
axy@ -525.,425.
back@
back@
delay 500
setdcode@ 100
addtext@ -400.,400.,109.0871,-25.,"True nets..."
back@
back@
delay 1000
setdcode@ 101
add_flash@
axy@ -525.,250.
back@
back@
delay 500
setdcode@ 100
addtext@ -400.,225.,886.3561,-200.,"True parts (centroids)"
back@
back@
delay 1000
setdcode@ 101
add_flash@
axy@ -525.,75.
back@
back@
delay 500
setdcode@ 100
addtext@ -400.,50.,522.,-375.,"True padstacks..."
back@
back@
delay 3000
setopenfile@ ".\demoscr\demoint.pcb"
setlayer@ 2
textheight@ 150.
setdcode@ 10
add_text@
addtext@ 4250.,2850.,4972.7239,2550.,"This file is now\fully CAD\intelligent."
view_all@
delay 3000
undo@
textheight@ 150.
setdcode@ 10
addtext@ 4275.,2850.,5165.9049,2700.,"Lets QUERY\some nets..."
delay 3000
end@
query_net@
axy@ 2175.,3700.
delay 1500
axy@ 2500.,3725.
delay 1500
axy@ 3650.,1250.
delay 1500
axy@ 1300.,1750.
delay 1500
back@
back@
undo@
textheight@ 150.
setdcode@ 10
addtext@ 4275.,2850.,5165.9049,2700.,"NETCHECKING is Fast!"
delay 3000
end@
util_net_check@
setnetextrparm@ 0
setnetcheckparm@ 1,0
undo@
textheight@ 150.
setdcode@ 10
add_text@
addtext@ 4225.,2900.,4724.9976,2600.,"Now lets\QUERY some\parts..."
delay 3000
end@
query_part@
axy@ 1850.,4175.
delay 1500
axy@ 4425.,3450.
delay 1500
axy@ 1225.,2300.
delay 1500
axy@ 4475.,775.
delay 1500
back@
back@
end@
setopenfile@ ".\demoscr\demoint.pcb"
Print_msg "And lets see the part Centroids"
delay 3000
close_msg
view_setpartcentroid@ 1
setlayer@ 9
layer_alloff@ 1
view_redraw@
delay 3000
setlayer@ 2
8textheight@ 150.
setdcode@ 10
add_text@
addtext@ 3625.,2950.,4752.2702,2800.,"There are 3 on-line\editors."
view_all@
delay 2000
addtext@ 3650.,2400.,5790.9018,2600.,"The main CAM Editor."
delay 2000
addtext@ 3650.,2100.,5359.0857,2400.,"The CAP Editor."
delay 2000
end@
util_caped@
openlibitem@ 1,"DATUM501"
print_msg "The CAP Editor (Custom Apertures) is graphical"
delay 2000
print_msg "Both positive and negative data can be drawn"
delay 2000
close_msg
view_redraw@
add_line@
setpolarity@ 2
axy@ -12.,12.
axy@ 12.,-12.
back@
view_redraw@
delay 3000
end@
util_camed@
delay 3000
add_text@
addtext@ 3675.,1800.,5715.9023,2200.,"And the Part Editor."
delay 2000
end@
util_parted@
openlibitem@ 2,"Dip14"
delay 2000
util_camed@
setnewfile@
;SETUP
gosub 500
;DRAW BOX
gosub 510
setdcode@ 100
setlayer@ 2
textheight@ 50.
setgridvis@ 0
add_text@
addtext@ -750.,700.,-270.4574,300.,"There is much more to CAM350..."
delay 3000
addtext@ -550.,350.,390.9032,-25.,"Barco DPF has been improved."
delay 1000
addtext@ -500.,0.,-431.8202,-350.,"Graphics redraw is faster."
delay 3000
undo@
undo@
setdcode@ 100
addtext@ -700.,350.,104.5409,-200.,"Exploding data has never been easier."
delay 3000
addtext@ -400.,0.,299.9946,-50.,"More sample macros."
delay 3000
undo@
undo@
addtext@ -375.,350.,622.7203,100.,"Upgrading is simple."
delay 3000
addtext@ -375.,0.,622.7203,25.,"Call 408-358-4680"
delay 3000
addtext@ -250,-250.,622.7203,15.,"End of Macro"
view_all@
back@
back@
end@
delay 3000
goto 100
;SETUP ENVIRONMENT
500
util_camed@
setlayer@ 0
setsectorize@ 0,1000
textheight@ 100.
textangle@ 0
textmirror@ 0
textjust@ 17
textfitting@ 0
textcspace@ 0.
textlspace@ 25.
setgridvis@ 0
edit_layer@ 2,6,6,4,0,"Layer_2"
setlayer@ 2
edit_aperture@ 100,1,5.,5.,100,""
update_dcodebar@
setdcode@ 100
axy@ 0.,0.
end@
return
;DRAW BOX SUBROUTINE
510
setdcode@ 100
add_rectangle@
axy@ -800.0000,800.0000
axy@ 800.0000,-298.0000
back@
view_all@
return