欢迎来到天天文库
浏览记录
ID:793254
大小:1.47 MB
页数:66页
时间:2017-09-05
《auto lisp在南方cass中批量处理图形数据中的应用毕业论文》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、本科毕业论文(设计)应用Autolisp在南方CASS中批量处理图形数据AutoLispExamplesAutolispBasicsAutolispisthegranddaddyofAutoCADprogrammingtoolsandyou’dbeamazedattheamountofAutolispprogrammingtoolsyoucanfindontheInternet.GivenalittleknowledgeyoucanintegrateexistingAutolisproutinesintoy
2、ourownandgaintremendouspoweroveryourAutoCADbasedinstallation.ThefirstthingtounderstandisthatAutolisphasacoupleofkeyfilesandakeyfunctionthatperformstartupoperationsforyou.ThekeyfilesarecalledACAD.LSPandACADDOC.LSPandthekeyfunctioniscalledS::STARTUPandtheiro
3、perationsareassummarizedhere:ACAD.LSP–ThisfileloadswhenAutoCADstartsup.AnyprogrammingyouplacewithinthisfilewillbeautomaticallyloadedeverytimeAutoCADstarts.TheACAD.LSPfileisnormallylocatedintheSUPPORTsubdirectoryoftheAutoCADinstallation.ACADDOC.LSP–Thisfile
4、loadseverytimeanewdrawingsessionisstartedinAutoCAD2000,2000ior2002basedproducts.Thereforeanyprogrammingyouplaceinthisfilewillbeloadedautomaticallyeverytimeadrawingisopenedorstarted.NotethatwhiletheACAD.LSPfilewouldloadintheFIRSTdrawingoftheAutoCAD2000typep
5、roductsonlytheACADDOC.LSPfilewillloadwithsubsequentdrawings.SinceAutoCADR14doesn’tsupportmultipledrawingsessionsyouwon’thavetoworryabouttheACADDOC.LSPfilewithR14.LiketheACAD.LSPfile,ACADDOC.LSPisnormallylocatedintheSUPPORTsubdirectoryoftheAutoCADinstallati
6、on.S::STARTUPfunction–ThisfunctionistypicallywithintheACADDOC.LSPfile(orACAD.LSPfileforAutoCADR14installations)anditssolejobistoexecutecustomizedcommandsyouneedtoinitializeyournewdrawingenvironment.ThisfunctionistheperfectplacetosetsystemvariableslikeDIMSC
7、ALE,VIEWRESparameters,currentlayers,etc.ThemostpowerfulaspectoftheS::STARTUPfunctionisthatitinvokesautomaticallyanditletsyoucontrolexactlyhowtheAutoCADenvironmentisinitialized.SimpleExamplesIfyoucreatedanACADDOC.LSPfileintheSUPPORTsubdirectoryofyourAutoCAD
8、installationandplacedthefollowingtextinitwhatdoyouthinkwouldhappen?Well,theDEFUNstatementsimplyDEfinesaFUNction(seewheretheDEFUNcomesfrom)calledS::STARTUPwhichwealreadyknowwillruneverytimeAutoCADstarts/opensa
此文档下载收益归作者所有