资源描述:
《viso与autocad绘图》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、visualbasic与autocad绘图软件的接口技术(Interfacetechnologyofvisual,basicandAutoCADdrawingsoftware)InterfacetechnologyofVisual,BasicandAutoCADdrawingsoftware--------------------------------------------------------------------------------Releasedate:10:50March6,2005Author:YuanManA
2、utoCADarchitectureisopen,isanextremelyflexibleapplicationsystem,userscancustomizetheprogrammatically,itallowsusersanddeveloperstoadoptvariousmethodstoextendandmodify,namelytwotimesdevelopment,cansatisfythespecialrequirementsofusers.Firstofall,wemakeabriefreviewofthemet
3、hodsusedinthepasttwoAutoCADdevelopment,andthenuseVisualBasic6.0asaprogrammingtooltodiscussindetailthemethodofusingActiveXtodeveloptheAutoCADforthetwotime.(1)methodsusedinthetwodevelopmentofAutoCAD1AutoLISPAutoLISP(LISTProcessingLanguage),whichisatableprocessinglanguage
4、,isinterpretedandexecuted.ItisembeddedinAutoCAD,andasthetwodevelopmentprogramminglanguage,shehasalwaysbeenthepreferredprogramminglanguageforthelowerversionAutoCAD.2AutoCADscriptfileScriptfileisabatchcommandintegratedAutocadtextfile,youcanruninAutocad,earlyinthetwodevel
5、opmentofthedomesticCADiswidelyused,thismethodiseasytoimplement,throughtheexternalprograminaccordancewiththerequirementsofthedrawingparametersintothescriptfile,andthenrealizethedrawingusingAutoCADcustommenu.3ADSADS(AutoCADDevelopmentSystem)isaClanguagedevelopmentAutoCAD
6、system,itisthedirectuseofClanguagecompiler,theapplicationiscompiledintoexecutablefiletorunintheAutoCADenvironment,theexecutablefileiscalledADSapplication.ADSbecauseofitsfastandstructuredprogrammingsystem,itissuitableforthetwodevelopmentofmechanicaldesign,CAD,civilengin
7、eering,CADandsoon.4ObjectARXObjectARXisakindofnewAutoCADapplicationdevelopmenttools,sheistheprogramminglanguagebasedonC++,usingtheadvancedobjectorientedprogrammingprinciple,whichcanprovideadirectinteractionwiththeAutoCADdevelopmentenvironment,canmaketheuserconvenientto
8、developasimpleandefficientAutoCADapplicationprogram.ObjectARXisnotincludedintheAutoCAD,cangotodownloadontheAutoDESKwe