欢迎来到天天文库
浏览记录
ID:58508736
大小:1.33 MB
页数:68页
时间:2020-05-18
《Autolisp在南方CASS中批量处理图形数据中的应用.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、本科毕业论文(设计)应用Autolisp在南方CASS中批量处理图形数据AutoLispExamplesAutolispBasicsAutolispisthegranddaddyofAutoCADprogrammingtoolsandyou’dbeamazedattheamountofAutolispprogrammingtoolsyoucanfindontheInternet.GivenalittleknowledgeyoucanintegrateexistingAutolisproutinesintoyourown
2、andgaintremendouspoweroveryourAutoCADbasedinstallation.ThefirstthingtounderstandisthatAutolisphasacoupleofkeyfilesandakeyfunctionthatperformstartupoperationsforyou.ThekeyfilesarecalledACAD.LSPandACADDOC.LSPandthekeyfunctioniscalledS::STARTUPandtheiroperationsare
3、assummarizedhere:ACAD.LSP–ThisfileloadswhenAutoCADstartsup.AnyprogrammingyouplacewithinthisfilewillbeautomaticallyloadedeverytimeAutoCADstarts.TheACAD.LSPfileisnormallylocatedintheSUPPORTsubdirectoryoftheAutoCADinstallation.ACADDOC.LSP–Thisfileloadseverytimeanew
4、drawingsessionisstartedinAutoCAD2000,2000ior2002basedproducts.Thereforeanyprogrammingyouplaceinthisfilewillbeloadedautomaticallyeverytimeadrawingisopenedorstarted.NotethatwhiletheACAD.LSPfilewouldloadintheFIRSTdrawingoftheAutoCAD2000typeproductsonlytheACADDOC.LS
5、Pfilewillloadwithsubsequentdrawings.SinceAutoCADR14doesn’tsupportmultipledrawingsessionsyouwon’thavetoworryabouttheACADDOC.LSPfilewithR14.LiketheACAD.LSPfile,ACADDOC.LSPisnormallylocatedintheSUPPORTsubdirectoryoftheAutoCADinstallation.S::STARTUPfunction–Thisfunc
6、tionistypicallywithintheACADDOC.LSPfile(orACAD.LSPfileforAutoCADR14installations)anditssolejobistoexecutecustomizedcommandsyouneedtoinitializeyournewdrawingenvironment.ThisfunctionistheperfectplacetosetsystemvariableslikeDIMSCALE,VIEWRESparameters,currentlayers,
7、etc.ThemostpowerfulaspectoftheS::STARTUPfunctionisthatitinvokesautomaticallyanditletsyoucontrolexactlyhowtheAutoCADenvironmentisinitialized.SimpleExamplesIfyoucreatedanACADDOC.LSPfileintheSUPPORTsubdirectoryofyourAutoCADinstallationandplacedthefollowingtextinitw
8、hatdoyouthinkwouldhappen?Well,theDEFUNstatementsimplyDEfinesaFUNction(seewheretheDEFUNcomesfrom)calledS::STARTUPwhichwealreadyknowwillruneverytimeAutoCADstarts/opensa
此文档下载收益归作者所有