本帖最后由 自贡黄明儒 于 2013-5-8 10:56 编辑
想以2K版本为基础,搞一个万能的"一键恢复系统变量为初始值"
在安装目录下\\Express\\defaults.scr,只是对本版本有效。
我找到了05版,10版的defaults.scr,请各位帮助上传一个其它版本的defaults.scr和(getvar "acadver"),完成后公布源码。
在此先表示感谢!
;;比较两个版本scr文件,找出不同的变量
;;******************************自贡运机集团 自贡黄明儒 2013年1月24日
(defun C:CompareScr
(/ BOOL FILE FILE1 FILE2 FN1 FN2 INITDIR TEMP_FILE X1 X11 X2 X22)
(setq Initdir (getvar "dwgprefix"))
(if
(and (setq
file1 (getfiled "选择 较高 版本的scr文件" Initdir "scr" 0)
)
(setq Initdir (strcat (vl-filename-directory file1) "\\"))
(setq
file2 (getfiled "选择 较低 版本的scr文件" Initdir "scr" 0)
)
)
(progn
;;(setq Temp_File (vl-filename-mktemp nil nil ".txt"))
(setq Temp_File "Temp_File.txt")
(setq File (open Temp_File "w"))
(setq fn1 (open file1 "r"))
(while (setq x11 (read-line fn1))
(setq x1 (read x11))
(setq fn2 (open file2 "r"))
(setq bool T)
(while (and (setq x22 (read-line fn2)) bool)
(setq x2 (read x22))
(if (and (equal (cadr x1) (cadr x2))
(equal (caddr x1) (caddr x2))
)
(setq bool nil)
)
)
(if bool (write-line x11 FILE))
(close fn2)
)
(close fn1)
(close FILE)
(startapp "notepad" Temp_File)
)
)
(princ)
)
;;******************************自贡运机集团 自贡黄明儒 2013年1月24日
;;将defaults13.scr文件转换成表
- (defun C:Scr2list (/ FILE1 FN1 INITDIR VARLIST X1 X2)
- (setq Initdir (getvar "dwgprefix"))
- (setq file1 (getfiled "选择defaults13.scr文件" Initdir "scr" 0))
- ;;(setq Temp_File "Temp_File.txt")
- ;;(setq File (open Temp_File "w"))
- (setq fn1 (open file1 "r"))
- (while (setq x1 (read-line fn1))
- (setq x1 (read x1))
- (setq VarList (cons (cadr x1) VarList))
- (setq valueList (cons (caddr x1) valueList))
- )
- (close fn1)
- )
;;一键恢复系统变量为初始值(基本上搞定)(源码)
;;下面的程序根据bagu提供的2014版的defaults.scr为基础写的
(setq VarList '("ZOOMWHEEL" "ZOOMFACTOR" "XREFTYPE" "XREFNOTIFY" "XREFCTL"
"XLOADCTL" "XFADECTL" "XEDIT" "XCLIPFRAME"
"WORLDVIEW" "WMFFOREGND" "WMFBKGND" "WINDOWAREACOLOR" "WHIPTHREAD"
"WHIPARC" "VTFPS" "VTENABLE" "VTDURATION"
"VSSILHWIDTH" "VSSILHEDGES" "VSSHADOWS" "VSOBSCUREDLTYPE" "VSOBSCUREDEDGES"
"VSOBSCUREDCOLOR" "VSMONOCOLOR" "VSMATERIALMODE" "VSLIGHTINGQUALITY"
"VSISOONTOP" "VSINTERSECTIONLTYPE" "VSINTERSECTIONEDGES"
"VSINTERSECTIONCOLOR" "VSHIDEPRECISION" "VSHALOGAP"
"VSFACESTYLE" "VSFACEOPACITY" "VSFACEHIGHLIGHT" "VSFACECOLORMODE" "VSEDGESMOOTH"
"VSEDGES" "VSEDGEOVERHANG" "VSEDGEJITTER" "VSEDGECOLOR"
"VSBACKGROUNDS" "VPLAYEROVERRIDESMODE" "VISRETAIN" "USERS5"
"USERS4" "USERS3" "USERS2" "USERS1"
"USERR5" "USERR4" "USERR3" "USERR2" "USERR1"
"USERI5" "USERI4" "USERI3" "USERI2"
"USERI1" "UPDATETHUMBNAIL" "UNITMODE" "UCSVP" "UCSVIEW"
"UCSORTHO" "UCSICON" "UCSFOLLOW" "UCSDETECT"
"UCSBASE" "UCSAXISANG" "TSTACKSIZE" "TSTACKALIGN" "TSPACETYPE"
"TSPACEFAC" "TRUSTEDPATHS" "TRUSTEDDOMAINS" "TRIMMODE"
"TREEMAX" "TREEDEPTH" "TRAYTIMEOUT" "TRAYNOTIFY" "TRAYICONS"
"TRACKPATH" "TRACEWID" "TOOLTIPS" "TOOLTIPMERGE"
"TIMEZONE" "TILEMODE" "THICKNESS" "TEXTSTYLE" "TEXTSIZE"
"TEXTQLTY" "TEXTOUTPUTFILEFORMAT" "TEXTFILL"
"TEXTEVAL" "TEMPOVERRIDES" "TBCUSTOMIZE" "TABMODE" "TABLETOOLBAR"
"TABLEINDICATOR" "SURFV" "SURFU" "SURFTYPE"
"SURFTAB2" "SURFTAB1" "SUNSTATUS" "SUBOBJSELECTIONMODE"
"STEPSPERSEC" "STEPSIZE" "STATUSBAR" "STARTUP"
"STANDARDSVIOLATION" "SSMSHEETSTATUS" "SSMPOLLTIME" "SSMAUTOOPEN"
"SSLOCATE" "SPLINETYPE" "SPLINESEGS" "SPLFRAME"
"SORTENTS" "SOLIDHIST" "SOLIDCHECK" "SNAPUNIT" "SNAPTYPE"
"SNAPSTYL" "SNAPMODE" "SNAPISOPAIR" "SNAPBASE"
"SNAPANG" "SMOOTHMESHMAXLEV" "SMOOTHMESHMAXFACE" "SMOOTHMESHGRID"
"SMOOTHMESHCONVERT" "SKPOLY" "SKETCHINC"
"SIGWARN" "SHPNAME" "SHOWLAYERUSAGE" "SHOWHIST" "SHORTCUTMENU"
"SHADOWPLANELOCATION" "SHADEDIF" "SHADEDGE"
"SETBYLAYERMODE" "SELECTIONPREVIEW" "SELECTIONAREAOPACITY" "SELECTIONAREA"
"SELECTIONANNODISPLAY" "SECURELOAD" "SAVETIME"
"SAVEFIDELITY" "RTDISPLAY" "REPORTERROR" "RENDERUSERLIGHTS" "REMEMBERFOLDERS"
"RE-INIT" "REGENMODE" "RECOVERYMODE" "RASTERTHRESHOLD"
"RASTERPREVIEW" "RASTERPERCENT" "RASTERDPI" "QTEXTMODE" "PUCSBASE"
"PUBLISHHATCH" "PUBLISHCOLLATE" "PUBLISHALLSHEETS" "PSVPSCALE"
"PSTYLEPOLICY" "PSOLWIDTH" "PSOLHEIGHT" "PSLTSCALE" "PROXYSHOW"
"PROXYNOTICE" "PROXYGRAPHICS" "PROJMODE" "PROJECTNAME"
"PREVIEWFILTER" "PREVIEWEFFECT" "POLYSIDES" "POLARMODE" "POLARDIST"
"POLARANG" "POLARADDANG" "PLQUIET" "PLOTROTMODE"
"PLOTOFFSET" "PLINEWID" "PLINETYPE" "PLINEGEN" "PLINECONVERTMODE"
"PICKSTYLE" "PICKFIRST" "PICKDRAG" "PICKBOX"
"PICKAUTO" "PICKADD" "PERSPECTIVECLIP" "PERSPECTIVE" "PELLIPSE"
"PEDITACCEPT" "PDSIZE" "PDMODE" "PAPERUPDATE"
"PALETTEOPAQUE" "OSOPTIONS" "OSNAPZ" "OSNAPNODELEGACY" "OSNAPCOORD"
"OSMODE" "ORTHOMODE" "OLESTARTUP" "OLEQUALITY"
"OLEHIDE" "OLEFRAME" "OFFSETGAPTYPE" "OFFSETDIST" "OBSCUREDLTYPE"
"OBSCUREDCOLOR" "NOMUTT" "NAVSWHEELSIZEMINI"
"NAVSWHEELSIZEBIG" "NAVSWHEELOPACITYMINI" "NAVSWHEELOPACITYBIG"
"NAVSWHEELMODE" "NAVVCUBESIZE" "NAVVCUBEOPACITY" "NAVVCUBELOCATION"
"NAVVCUBEDISPLAY" "MTJIGSTRING" "MTEXTTOOLBAR" "MTEXTFIXED" "MTEXTED"
"MSLTSCALE" "MSOLESCALE" "MODEMACRO" "MLEADERSCALE"
"MIRRTEXT" "MESHTYPE" "MENUECHO" "MENUCTL" "MEASUREMENT"
"MEASUREINIT" "MBUTTONPAN" "MAXSORT" "MAXACTVP"
"LWUNITS" "LWDISPLAY" "LWDEFAULT" "LUPREC" "LUNITS"
"LTSCALE" "LONGITUDE" "LOGFILEMODE" "LOGEXPPHYSICALSCALE"
"LOGEXPMIDTONES" "LOGEXPDAYLIGHT" "LOGEXPCONTRAST" "LOGEXPBRIGHTNESS" "LOFTPARAM"
"LOFTNORMALS" "LOFTMAG2" "LOFTMAG1" "LOFTANG2"
"LOFTANG1" "LOCKUI" "LINEARCONTRAST" "LINEARBRIGHTNESS" "LIMMIN"
"LIMMAX" "LIMCHECK" "LIGHTSINBLOCKS" "LIGHTINGUNITS"
"LIGHTGLYPHDISPLAY" "LENSLENGTH" "LEGACYCTRLPICK" "LAYOUTREGENCTL"
"LAYLOCKFADECTL" "LAYERNOTIFY" "LAYERFILTERALERT" "LAYEREVAL"
"LASTPOINT" "ISOLINES" "ISAVEPERCENT" "ISAVEBAK"
"INTERSECTIONDISPLAY" "INTERSECTIONCOLOR" "INTERFEREVPVS"
"INTERFEREOBJVS" "INTERFERECOLOR" "INTELLIGENTUPDATE" "INSUNITSDEFTARGET"
"INSUNITSDEFSOURCE" "INSUNITS"
"INSNAME" "INSBASE" "INPUTHISTORYMODE" "INETLOCATION" "INDEXCTL"
"IMPLIEDFACE" "IMAGEHLT" "HYPERLINKBASE" "HPSPACE"
"HPSEPARATE" "HPSCALE" "HPORIGINMODE" "HPORIGIN" "HPOBJWARNING"
"HPNAME" "HPMAXLINES" "HPINHERIT" "HPGAPTOL"
"HPDRAWORDER" "HPDOUBLE" "HPBOUND" "HPASSOC" "HPANG"
"HIGHLIGHT" "HIDETEXT" "HIDEPRECISION" "HALOGAP"
"GTLOCATION" "GTDEFAULT" "GTAUTO" "GRIPTIPS" "GRIPSUBOBJMODE"
"GRIPSIZE" "GRIPS" "GRIPOBJLIMIT" "GRIPHOVER"
"GRIPHOT" "GRIPDYNCOLOR" "GRIPCOLOR" "GRIPBLOCK" "GRIDUNIT"
"GRIDMODE" "GRIDMAJOR" "GRIDDISPLAY" "FULLPLOTPATH"
"FONTMAP" "FONTALT" "FILLMODE" "FILLETRAD" "FILEDIA"
"FIELDEVAL" "FIELDDISPLAY" "FACETRES" "FACETRATIO"
"FACETERSMOOTHLEV" "FACETERPRIMITIVEMODE" "FACETERMESHTYPE" "FACETERMINVGRID"
"FACETERMINUGRID" "FACETERMAXGRID" "FACETERMAXEDGELENGTH"
"FACETERGRIDRATIO" "FACETERDEVSURFACE" "FACETERDEVNORMAL" "EXTNAMES"
"EXPLMODE" "EXPERT" "ELEVATION" "EDGEMODE"
"DYNTOOLTIPS" "DYNPROMPT" "DYNPIVIS" "DYNPIFORMAT" "DYNPICOORDS"
"DYNMODE" "DYNDIVIS" "DYNDIGRIP" "DXEVAL"
"DWGCHECK" "DWFOSNAP" "DWFFRAME" "DTEXTED" "DRAWORDERCTL"
"DRAGVS" "DRAGP2" "DRAGP1" "DRAGMODE"
"DONUTOD" "DONUTID" "DIVMESHTORUSSECTION" "DIVMESHTORUSPATH"
"DIVMESHWEDGEBASE" "DIVMESHWEDGESLOPE" "DIVMESHWEDGEHEIGHT"
"DIVMESHWEDGEWIDTH" "DIVMESHWEDGELENGTH"
"DIVMESHSPHEREHEIGHT" "DIVMESHSPHEREAXIS" "DIVMESHPYRHEIGHT"
"DIVMESHPYRBASE" "DIVMESHPYRLENGTH" "DIVMESHCYLHEIGHT" "DIVMESHCYLBASE" "DIVMESHCYLAXIS"
"DIVMESHCONEHEIGHT" "DIVMESHCONEBASE" "DIVMESHCONEAXIS"
"DIVMESHBOXHEIGHT" "DIVMESHBOXWIDTH" "DIVMESHBOXLENGTH" "DISPSILH" "DIMZIN"
"DIMUPT" "DIMTZIN" "DIMTXT" "DIMTXSTY"
"DIMTVP" "DIMTSZ" "DIMTP" "DIMTOLJ" "DIMTOL"
"DIMTOH" "DIMTOFL" "DIMTMOVE" "DIMTM"
"DIMTIX" "DIMTIH" "DIMTFILLCLR" "DIMTFILL" "DIMTFAC"
"DIMTDEC" "DIMTAD" "DIMSOXD" "DIMSE2"
"DIMSE1" "DIMSD2" "DIMSD1" "DIMSCALE" "DIMSAH"
"DIMRND" "DIMPOST" "DIMLWE" "DIMLWD"
"DIMLUNIT" "DIMLTYPE" "DIMLTEX2" "DIMLTEX1" "DIMLIM"
"DIMLFAC" "DIMLDRBLK" "DIMJUST" "DIMJOGANG"
"DIMGAP" "DIMFXLON" "DIMFXL" "DIMFRAC" "DIMFIT"
"DIMEXO" "DIMEXE" "DIMDSEP" "DIMDLI"
"DIMDLE" "DIMDEC" "DIMCONTINUEMODE" "DIMCLRT" "DIMCLRE"
"DIMCLRD" "DIMCEN" "DIMBLK2" "DIMBLK1"
"DIMBLK" "DIMAZIN" "DIMAUNIT" "DIMATFIT" "DIMASZ"
"DIMASSOC" "DIMARCSYM" "DIMAPOST" "DIMALTZ"
"DIMALTU" "DIMALTTZ" "DIMALTTD" "DIMALTRND" "DIMALTF"
"DIMALTD" "DIMALT" "DIMADEC" "DGNOSNAP"
"DGNFRAME" "DEMANDLOAD" "DELOBJ" "DEFAULTLIGHTINGTYPE"
"DEFAULTLIGHTING" "DEFAULTGIZMO" "DBLCLKEDIT" "DATALINKNOTIFY"
"CVPORT" "CURSORSIZE" "CTABLESTYLE" "CSHADOW" "CROSSINGAREACOLOR"
"COPYMODE" "COORDS" "CONSTRAINTINFER"
"COMPASS" "CMLSTYLE" "CMLSCALE" "CMLJUST" "CMLEADERSTYLE"
"CMDINPUTHISTORYMAX" "CMDECHO" "CMDDIA"
"CMATERIAL" "CLAYER" "CIRCLERAD" "CHAMMODE" "CHAMFERD"
"CHAMFERC" "CHAMFERB" "CHAMFERA" "CENTERMT"
"CELWEIGHT" "CELTYPE" "CELTSCALE" "CECOLOR" "CANNOSCALE"
"CAMERAHEIGHT" "CAMERADISPLAY" "CALCINPUT" "BVMODE"
"BTMARKDISPLAY" "BPTEXTHORIZONTAL" "BPARAMETERSIZE" "BPARAMETERFONT" "BPARAMETERCOLOR"
"BLOCKEDITLOCK" "BLIPMODE" "BINDTYPE" "BGRIPOBJSIZE"
"BGRIPOBJCOLOR" "BDEPENDENCYHIGHLIGHT" "BCONSTATUSMODE" "BACTIONBARMODE"
"BACTIONCOLOR" "BACKGROUNDPLOT" "AUTOSNAP" "AUTOMATICPUB"
"AUPREC" "AUNITS" "AUDITCTL" "ATTREQ" "ATTMULTI"
"ATTMODE" "ATTIPE" "ATTDIA" "APERTURE"
"APBOX" "ANNOTATIVEDWG" "ANNOAUTOSCALE" "ANNOALLVISIBLE" "ANGDIR"
"ANGBASE" "AFLAGS" "ACTUI" "ACTPATH"
"ACADLSPASDOC" "3DSELECTIONMODE" "3DCONVERSIONMODE" "3DDWFPREC"
)
)
(setq VarList '(0
60
0
2
0
2
50
1
0
1
0
0
5
1
0
7
3
750
5
0
0
1
0
"ByEntity"
"255,255,255"
0
1
0
1
0
"7"
0
0
1
-60
-30
0
1
1
-6
-2
"ByEntity"
1
1
1
""
""
""
""
""
0.0
0.0
0.0
0.0
0.0
0
0
0
0
0
15
0
1
1
1
3
0
1
"."
(* PI (/ 90.0 180.0))
70
1
1
1.0
""
"*.autodesk.com;*.autodeskbutterfly.com;*.AutoCADws.com"
1
10000000
3020
0
1
1
0
0.05
1
0
-8000
1
0.0
"Standard"
0.2
50
0
1
0
1
1
0
2
1
6
6
6
6
6
1.0
0
2.0
6.0
0
0
2
2
60
1
1
6
8
0
127
1
1
(QUOTE (0.5 0.5))
0
0
0
0
(QUOTE (0.0 0.0))
0.0
6
1000000
3
0
0
0.1
1
""
0
1
11
0.0
70
3
127
3
25
1
1
1
10
1
1
1
1
1
0
1
2
20
1
20
300
0
"."
1
1
1
0.0
1
0.25
4.0
1
1
1
1
1
"."
7
2
4
0
0.0
90.0
""
0
2
0
0.0
2
0
0
1
1
0
3
1
1
5.0
nil
0
0
0.0
0
0
0
3
0
0
2
37
0
0
3
0
2
0
-1.0
0
257
0
1
1
50
50
0
4
50
0
1
"abc"
2
2
"Internal"
1
1.0
""
1
1
1
0
1
0
0
1
1000
64
1
0
25
4
2
1.0
-122.394
0
1500.0
1.0
2
50.0
65.0
7
1
0.0
0.0
(* PI (/ 90.0 180.0))
(* PI (/ 90.0 180.0))
0
0
0
(QUOTE (0.0 0.0))
(QUOTE (12.0 9.0))
0
0
0
1
50.0
0
2
50
15
2
1
(QUOTE (0.0 0.0 0.0))
8
50
1
0
257
"Wireframe"
"Realistic"
"1"
20
1
1
1
""
(QUOTE (0.0 0.0 0.0))
15
"http://www.autodesk.com"
0
1
0
""
1.0
0
1.0
0
(QUOTE (0 0))
10000
"ANSI31"
1000000
0
0.0
3
0
1
1
0.0
1
1
0
0
0
0
1
1
1
5
1
100
3
1
140
160
0
(QUOTE (0.5 0.5))
0
5
2
1
"acad.fmp"
"simplex.shx"
1
0.0
1
31
1
0.5
0
1
1
0
0
0
4096
0
0
0.001
0.698132
1
1
0
0.0
0
1
1
1
0
0
3
1
31
12
1
1
2
2
3
"."
25
10
2
1.0
0.5
8
8
3
3
3
3
4
6
12
3
3
3
3
3
8
3
3
8
3
3
3
0
0
0
0
0.18
"Standard"
0.0
0.0
0.0
1
0
1
0
0
0.0
0
1
0
0
1.0
4
0
0
0
0
0
0
1.0
0
0.0
""
-2
-2
2
"."
"."
"."
0
1.0
""
0
(* PI (/ 45.0 180.0))
0.09
0
1.0
0
3
0.0625
0.18
"."
0.38
0.0
4
1
0
0
0
0.09
""
""
""
0
0
3
0.18
2
0
""
0
2
0
2
0.0
25.4
2
0
0
1
0
3
1
1
1
0
1
2
2
5
"Standard"
0
3
0
1
0
0
"Standard"
1.0
0
"Standard"
20
1
1
"ByLayer"
"0"
0.0
0
0.0
0.0
0.0
0.0
0
-1
"ByLayer"
1.0
"ByLayer"
"1:1"
0
0
1
0
1
1
12
"Simplex.shx"
"7"
0
0
0
8
"141"
1
1
1
"7"
2
63
0
0
0
0
1
1
1
0
0
10
0
0
-4
1
0
0.0
16
6
""
0
1
1
2
0
60
0
2
0
2
50
1
0
1
0
0
5
1
0
7
3
750
5
0
0
1
0
"ByEntity"
"255,255,255"
0
1
0
1
0
"7"
0
0
1
-60
-30
0
1
1
-6
-2
"ByEntity"
1
1
1
""
""
""
""
""
0.0
0.0
0.0
0.0
0.0
0
0
0
0
0
15
0
1
1
1
3
0
1
"."
(* PI (/ 90.0 180.0))
70
1
1
1.0
""
"*.autodesk.com;*.autodeskbutterfly.com;*.autocadws.com"
1
10000000
3020
0
1
1
0
0.05
1
0
-8000
1
0.0
"Standard"
0.2
50
0
1
0
1
1
0
2
1
6
6
6
6
6
1.0
0
2.0
6.0
0
0
2
2
60
1
1
6
8
0
127
1
1
(QUOTE (0.5 0.5))
0
0
0
0
(QUOTE (0.0 0.0))
0.0
6
1000000
3
0
0
0.1
1
""
0
1
11
0.0
70
3
127
3
25
1
1
1
10
1
1
1
1
1
0
1
2
20
1
20
300
0
"."
1
1
1
0.0
1
0.25
4.0
1
1
1
1
1
"."
7
2
4
0
0.0
90.0
""
0
2
0
0.0
2
0
0
1
1
0
3
1
1
5.0
nil
0
0
0.0
0
0
0
3
0
0
2
37
0
0
3
0
2
0
-1.0
0
257
0
1
1
50
50
0
4
50
0
1
"abc"
2
2
"Internal"
1
1.0
""
1
1
1
0
1
0
0
1
1000
64
1
0
25
4
2
1.0
-122.394
0
1500.0
1.0
2
50.0
65.0
7
1
0.0
0.0
(* PI (/ 90.0 180.0))
(* PI (/ 90.0 180.0))
0
0
0
(QUOTE (0.0 0.0))
(QUOTE (12.0 9.0))
0
0
0
1
50.0
0
2
50
15
2
1
(QUOTE (0.0 0.0 0.0))
8
50
1
0
257
"Wireframe"
"Realistic"
"1"
20
1
1
1
""
(QUOTE (0.0 0.0 0.0))
15
"http://www.autodesk.com"
0
1
0
""
1.0
0
1.0
0
(QUOTE (0 0))
10000
"ANSI31"
1000000
0
0.0
3
0
1
1
0.0
1
1
0
0
0
0
1
1
1
5
1
100
3
1
140
160
0
(QUOTE (0.5 0.5))
0
5
2
1
"acad.fmp"
"simplex.shx"
1
0.0
1
31
1
0.5
0
1
1
0
0
0
4096
0
0
0.001
0.698132
1
1
0
0.0
0
1
1
1
0
0
3
1
31
12
1
1
2
2
3
"."
25
10
2
1.0
0.5
8
8
3
3
3
3
4
6
12
3
3
3
3
3
8
3
3
8
3
3
3
0
0
0
0
0.18
"Standard"
0.0
0.0
0.0
1
0
1
0
0
0.0
0
1
0
0
1.0
4
0
0
0
0
0
0
1.0
0
0.0
""
-2
-2
2
"."
"."
"."
0
1.0
""
0
(* PI (/ 45.0 180.0))
0.09
0
1.0
0
3
0.0625
0.18
"."
0.38
0.0
4
1
0
0
0
0.09
""
""
""
0
0
3
0.18
2
0
""
0
2
0
2
0.0
25.4
2
0
0
1
0
3
1
1
1
0
1
2
2
5
"Standard"
0
3
0
1
0
0
"Standard"
1.0
0
"Standard"
20
1
1
"ByLayer"
"0"
0.0
0
0.0
0.0
0.0
0.0
0
-1
"ByLayer"
1.0
"ByLayer"
"1:1"
0
0
1
0
1
1
12
"Simplex.shx"
"7"
0
0
0
8
"141"
1
1
1
"7"
2
63
0
0
0
0
1
1
1
0
0
10
0
0
-4
1
0
0.0
16
6
""
0
1
1
2
)
)
(defun Once=>Init ( VALUELIST VARLIST)
;;(mapcar 'setvar VarList valueList);正确
;;(VL-CATCH-ALL-APPLY 'mapcar (cons 'setvar (list VarList valueList)));正确
;;(VL-CATCH-ALL-APPLY 'mapcar (list 'setvar VarList valueList));正确
;;(mapcar '(lambda (x y) (if (getvar x) (setvar x y))) VarList valueList);正确
(VL-CATCH-ALL-APPLY
'mapcar
(list
'(lambda (x y)
(if (getvar x)
(setvar x y)
)
)
VarList
valueList
)
)
(princ)
)
|