资源描述:
《cad图形库应用》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、cad图形库应用Abstract:Thispaperintroducesascheme,developmentenvironment,processandsoontocreateandmanagegraphiclibraryunderAutoCADenvironment.Thegraphicmenuandtheappropriatedialogboxdisplaygraphicinformation,whichshowsthegoodresultsofthemethod.Keywords:gra
2、phicmanagement;CAD;AutoCADdevelopment0PrefaceAutoCADsoftwarehasaverygoodopentypestructure(OpenArchitecture)andapowerfulinternalprogramminglanguage(Autolisplanguage,cancompletesomecomputerworkandmappingfunction),canallowuserstofreelydeveloptheirorders
3、,standardlibraryfilesandapplicationprogramsetc・・GraphicsmanagementisanimportsntpartofCADapplications,anditisoneofthemostdifficultanddifficultpartsinCADapplications・Thispaperprovidesanexampleofcreatingandmanagingagraphiclibrary,anditsultimateeffectist
4、oshowaconvenient,fast,graphicandintuitivegraphicslibrary.1SchemeDesign1.1implementationplanManyAutoCADusersuseasimplerwayofcreatingandmanagingagraphicslibrary:namethegraphicalfileasthenameofitsgraphicalcontent,andthenclassifyitintoaparticularfolder.T
5、headvantageofthismethodisthatitissimpleandconvenient,butthedisadvantagesofitsinconvenientandnonintuitivearemoreprominent・Theschemepresentedinthispaperisconvenient,intuitiveandembeddedinAutoCAD・Theschemeisasfollows:Generateslidefilesforallgraphics;Add
6、the''graphicslibrary^menubarinthedrop-downmenuareaoftheAutoCADinitializationinterface・Thismenucontainstwomenuitems,''mechanicalGallery"and'"electronicGallery";Clickonthe''mechanicalGallery"and''electronicGallery"twomenuareaspop-upcorrespondingiconmen
7、u,intheiconmenu,youcanseethegraphicsfileidentificationnameandthecorrespondinggraphics(slides);Intheiconmenupickupgraphicspop-upadialogbox,thedialogboxgivesthegraphicsometextinformation(suchas:author,graphicscontent,drawingdate,chartnumber,etc・)andgra
8、phicspreview;ClickontheOKbuttonofthedialogboxtoopenthepickedgraphicsfile・1.2schemedemonstrationThekeytothesolutionisicons,menus,anddialogs・Iconmenu:TheiconmenuisoneoftheAutoCADmenus・Theiconmenudisplaysgroupsofslidesin20groupsanddisplaysascrolllistbox