




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
Chapter10UsingBlockandExternalReferences10.1OverviewAutoCADprovidesseveralfeat(yī)urestohelpyoumanageobjectsinyourdrawings.Withblocksyoucanorganizeandmanipulatemanyobjectsasonecomponent.Youcanalsoassociateitemsofinformat(yī)ionwiththeblocksinyourdrawings-forexample,partnumbersandprices-byattachingat(yī)tributes.Specificationsheetsorbillsofmat(yī)erialscanbecreatedusingthisinformation.YoucanattachoroverlayentiredrawingsinyourcurrentdrawingbyusingAutoCADexternalreferences,orxrefs.Whenyouopenadrawingthatcontainsxrefs,anychangesthathavebeenmadeinthereferenceddrawingappearinthecurrentdrawing.10.2WorkingwithBlocksAblockisacollectionofobjectsyoucanassociat(yī)etogethertoformasingleobject,orblockdefinition.Youcaninsert,scale,androtateablockinadrawing.Youcanexplodeablockintoitscomponentobjects,modifythem,andredefinetheblock.AutoCADupdatesallcurrentandfutureinstancesofthatblockbasedontheblockdefinition.Blocksstreamlinethedrawingprocess.Forexample,youcanuseblockstoBuildastandardlibraryoffrequentlyusedsymbols,components,orstandardparts.Youcaninsertthesameblocknumeroustimesinsteadofre-creatingthedrawingelementseachtime. Revisedrawingsefficientlybyinserting,relocating,andcopyingblocksascomponentsratherthanindividualgeometricobjects. Savediskspacebystoringallreferencestothesameblockasoneblockdefinitioninthedrawingdatabase.Forinformat(yī)ionabouthowtocreateablock,see"DefiningBlocks."Whenyouinsertablockinyourdrawing,youarecreatingablockinstance.Eachtimeyouinsertablockinstance,youassignascalefactorandrotationangletotheinsertedblock.Youcanalsoscaleablockinstanceusingdifferentvaluesinanycoordinat(yī)e(X,Y,Z)direction.Blocksmakeitpossibleforyoutoorganizeyourdrawingtasksinasystematicway,sothatyoucansetup,redesign,andsorttheobjectsinyourdrawingsandtheinformationassociatedwiththem.DefiningBlocksYoucangroupobjectstocreateblockdefinitionsinthecurrentdrawing,oryoucansavetheblockasaseparatedrawingfile.Whenyoudefineablock,youspecifythebasepoint,theobjectstogroup,andwhethertoretainordeletetheobjectsorconvertthemtoablockinthecurrentdrawing.Youcanalsoenterat(yī)extdescriptionandspecifyaniconusedtohelpidentifytheblockdefinitioninAutoCADDesignCenter.Blockdefinitionsareoneofmanynongraphicalobjectssavedinadrawing.See"WorkingwithNamedObjects."Tocreat(yī)eablockdefinition1?FromtheDrawmenu,chooseBlockMake.2?IntheBlockDefinitiondialogbox,enteranamefortheblock.3?UnderObjects,choosetheSelectObjectsbuttontousethepointingdevicetoselectobjectsfortheblockdefinition.Thedialogboxclosestemporarilywhileyouselectobjectsfortheblock.PressENTERwhenyouaredoneselectingblocks.Thedialogboxreopens.4?Ifyouwanttocreateaselectionset,usetheQuickSelectbuttontocreateordefineafilterforyourselectionset.See"FilteringSelectionSets."5?UnderObjects,specifywhethertoretain,converttoablock,ordeletetheselectedobjects.Retain:Keepsselectedobjectsinthecurrentdrawing,intheiroriginalstate.ConverttoBlock:Replacesselectedobjectswithaninstanceoftheblock.Delete:Removesselectedobjectsaftertheblockisdefined.6 UnderBasePoint,enterthecoordinatevaluesfortheinsertionbasepointorchoosetheSpecifyInsertionBasePointbuttontousethepointingdevice.7?UnderDescription,entertexttohelpidentifytheblockforeasyretrieval.8?UnderIcon,specifywhethertocreateaniconfromtheblockdefinition.Donotincludeanicon:Omitspreviewimagefromblockdefinition.Creat(yī)eiconfromblockgeometry:Savespreviewimagewiththeblockdefinition.9 ChooseOK.Theblockdefinitionissavedinthecurrentdrawing.Tosaveablockorobjectasaseparat(yī)edrawingfile1 AttheCommandprompt,enterwblock.2 IntheWriteBlockdialogbox,specifyablockoranobjecttowriteoutasafile.Block:Specifiesablocktosaveasafile. EntireDrawing:Selectscurrentdrawingasablock.?Object:Specifiesobjectstobesavedasafile. 3?UnderBlock,selectanamefromthelisttosaveasafile.4?UnderBasePoint,usethePickPointbuttontodefinethebasepoint.5 UnderObjects,usetheSelectobjectsbuttontoselecttheobjectfortheblockfile.6 Enteranameforthenewfile.Ifablockisselected,WBLOCKautomat(yī)icallyusesthatblock'snameforthenewfile.7 IntheInsertUnitslist,selectaninsertunittouseinAutoCADDesignCenter.8 ChooseOK.Theblockdefinitionissavedasadrawingfile.InsertingBlocksYoucaninsertblocksorentiredrawingsintothecurrentdrawingwithINSERT.Whenyouinsertablockordrawing,youspecifytheinsertionpoint,scale,androtationangle.ThissectionexplainsinsertingblocksintoyourdrawingusingINSERT.See"UsingAutoCADDesignCentertoInsertBlocks."Whenyouinsertanentiredrawingintoanotherdrawing,AutoCADtreatstheinserteddrawinglikeanyotherblockreference.Subsequentinsertionsreferencetheblockdefinition(whichcontainsthegeometricdescriptionoftheblock)withdifferentposition,scale,androtationsettings,asshowninthefollowingillustration.Ifyouchangetheoriginaldrawingafterinsertingit,thechangeshavenoeffectontheinsertedblock.Ifyouwanttheinsertedblocktoreflectthechangesyoumadetotheoriginaldrawing,youcanredefinetheblockbyreinsertingtheoriginaldrawing.Ifyouwanttoinsertadrawingbutyoudon'twantthefilenametobethesameastheblockname,youcaninsertitusingablockname=filenamesyntaxattheBlockNameprompt.Bydefault,AutoCADusesthecoordinate0,0,0astheinsertionbasepointforinserteddrawings.YoucanchangetheinsertionbasepointofadrawingbyopeningtheoriginaldrawingandusingBASEtospecifyadifferentinsertionbasepoint.AutoCADusesthenewbasepointthenexttimeyouinsertthedrawing.Ifthedrawingyouinsertcontainsobjectscreatedinapaperspacelayout,thoseobjectsarenotincludedinthecurrentdrawing'sblockdefinition.Tousethepaperspaceobjectsinanotherdrawing,opentheoriginaldrawinganduseBLOCKtodefinethepaperspaceobjectsasablock.Theblockisnowdefinedwithinyourdrawing.Youcaninsertthedrawingintoanotherdrawingandinserttheblockdefinedinyouroriginaldrawingineitherpaperspaceormodelspace.WithAutoCADDesignCenter,youcandisplaylayoutsanddragthemintoyourdrawings.See"WorkingwithDrawingContent."Toinsertablockreference1?FromtheInsertmenu,chooseBlock.2?IntheInsertdialogbox,specifytheblockname,whereyouwanttoinsertitinthecurrentdrawing,andwhetheryouwanttoexplodeitafterinsertion.3?Ifyouhavemodifiedtheoriginaldrawingfileforablock,youcanredefinetheblockinthecurrentdrawingbychoosingFiletolocatethefilefortheblock.4 ChooseOK.Theblockreferenceisupdatedinthecurrentdrawing.ExplodingaBlockUseEXPLODEtobreakablockinstance.Byexplodingablockinstance,youcanmodifytheblockoraddtoordeletetheobjectsthatdefineit.10.3?WorkingwithAttributesAnattributeprovidesalabelortagforyoutoattachtexttoablock.Wheneveryouinsertablockthat(yī)hasavariableattribute,AutoCADpromptsyoutoenterthedatatobestoredwiththeblock.Examplesofdataarepartnumbers,prices,comments,andowners'names.Youcanextractattributeinformationfromadrawingandusethat(yī)informationinaspreadsheetordatabasetoproduceitemssuchasapartslistorabillofmaterials(BOM).Youcanassociatemorethanoneat(yī)tributewithablock,providedthateachattributehasadifferenttag.AutoCADpromptsyouforthevalueofeachattributewhenyouinserttheblock.Youcanalsodefineconstantattributes:becausetheyhavethesamevalueineveryoccurrenceoftheblock,AutoCADdoesnotpromptforavaluewhenyouinserttheblock.Attributescanbeinvisible,whichmeanstheattributeisnotdisplayedorplotted.However,informationontheat(yī)tributeisstoredinthedrawingfileandwrittentoanextractfilebyATTEXT.Creat(yī)ingAttributesTocreateanattribute,youmustfirstuseATTDEFtocreateanattributedefinition,whichdescribesthecharacteristicsoftheattribute.Thecharacteristicsincludethetag,prompt,valueinformation,textformatting,location,andanyoptionalmodes.Tocreat(yī)eanattributedefinition1?Onthecommandline,enterattdef.2?IntheAttributeDefinitiondialogbox,specifytheinsertionpointandsettheattributemodesandthetag,prompt,andtextoptions.3?ChooseOK.Aftercreatingtheattributedefinition,youcanselectitasanobjectinablockdefinition.Iftheattributedefinitionisincorporatedintoablock,wheneveryouinserttheblock,AutoCADpromptsyouwiththetextstringyouspecifiedfortheat(yī)tribute.Eachsubsequentinstanceoftheblockcanhaveadifferentvaluespecifiedfortheat(yī)tribute.Ifyouwanttouseseveralattributestogether,creat(yī)eeachoneseparatelyandthenincludetheminthesameblock.Tocontroltheorderofpromptsformultipleattributes,seeOPTIONSintheCommandReference.SystemvariablesAFLAGSsetstheATTDEFmode.ATTDISPgloballycontrolsthevisibilityofattributes.ATTREDEFredefinesablockandupdatesassociatedattributes.EditingAttributeDefinitionsYoucanuseDDEDITtoeditanattributedefinitionbeforeitisassociatedwithablock.Toeditanattributedefinitionbeforeitisassociatedwithablock1?FromtheModifymenu,chooseText2 Selecttheattributetoedit.3?IntheEditAttributeDefinitiondialogbox,specifytheattributetag,prompt,anddefaultvalue.ThenchooseOK.CommandlineDDEDITRelatedCHANGEeditsattributedefinitions.AttachingAttributestoBlocksYoucanattachattributestoablockwhenyoudefineorredefinethatblock.WhenAutoCADpromptsyoutoselecttheobjectstoincludeintheblockdefinition,includethedesiredattributesintheselectionset.Theorderinwhichyouselecttheattributesdeterminestheorderinwhichyouarepromptedforat(yī)tributeinformationwhenyouinserttheblock(see"DefiningBlocks").EditingAttributesAttachedtoBlocksYoucaneditattributesthatarealreadyattachedtoablockandinsertedinadrawing.Toeditanattributeattachedtoablock1 FromtheModifymenu,chooseAttributeSingle.2?Selectablocktoedit.3?IntheEditAttributesdialogbox,edittheattributeinformationasnecessary.4 ChooseOK.Tocontroltheorderofpromptsformultipleattributes,seeOPTIONSintheCommandReference.10.4UsingExternalReferencesAnexternalreference(xref)linksanotherdrawingtothecurrentdrawing.Whenyouinsertadrawingasablock,theblockdefinitionandalloftheassociatedgeometryarestoredinthecurrentdrawingdat(yī)abase.Theblockisnotupdat(yī)ediftheoriginaldrawingchanges.Whenyouinsertadrawingasanxref,however,thexrefisupdatedwhentheoriginaldrawingchanges.Adrawingcontainingxrefsalwaysreflectsthemostcurrenteditingineachexternallyreferencedfile.Likeablockreference,anxrefisdisplayedinthecurrentdrawingasasingleobject.However,anxrefdoesnotsignificantlyincreasethefilesizeofthecurrentdrawingandcannotbeexploded.Aswithblockreferences,youcannestxrefsthat(yī)areat(yī)tachedtoyourdrawing.Byattachingxrefs,youcanAssembleamasterdrawingfromcomponentdrawingsthat(yī)mayundergochangesasaprojectdevelops.Coordinateyourworkwiththeworkofothersbyoverlayingotherdrawingsonyourdrawingtokeepupwiththechangesbeingmadebyotherusers.Ensurethatthemostrecentversionofthereferenceddrawingisdisplayed.Whenyouopenorplotyourdrawing,AutoCADautomaticallyreloadseachxref,sothedrawingreflectsthelatestchangestothereferenceddrawingfile.Displayonlyaspecificsectionofthexreffileinthemasterdrawingbycreatingclippedboundariesofxrefs.10.5ClippingBlocksandXrefsAfterattachingadrawingasanxreforinsertingablock,youcandefineaclippingboundarybyusingXCLIP.Aclippingboundarycandefineaportionofablockorxrefwhilesuppressingthedisplayofgeometryoutsideoftheboundary.Clippingappliestoanindividualinstanceofanxref,notthexrefdefinitionitself.Theportionofthexreforblockwithintheclippedboundaryremainsvisible,andtheremainderofthexreforblockbecomesinvisible.Thereferencedgeometryisnotaltered,onlythedisplayofthexrefisedited.YoucanuseXCLIPtocreat(yī)eanewclippingboundary,deleteanexistingboundary,orgenerateapolylineobjectcoincidentwithverticesoftheclippingboundary.Xrefclippingcanbeturnedonoroff.Whenaclippingboundaryisturnedoff,theboundaryisnotdisplayedandtheentirexrefisvisible,providedthatthegeometryisonalayerthatisonandthawed.Whenaclippingboundaryisturnedoff,itstillexistsandcanbeturnedon.However,deletingaclippingboundaryispermanent.FormoreinformationaboutXCLIP,seetheCommandReference.Afteranxreforblockhasbeenclipped,itcanbeedited,moved,orcopiedjustlikeanunclippedxreforblock.Theboundarymoveswiththereference.Ifanxrefcontainsnestedclippedxrefs,theyappearclippedinthedrawing.Iftheparentxrefisclipped,thenestedxrefsarealsoclipped.Ifyouwanttoseetheclippingboundary,youcanturnontheXCLIPFRAMEsystemvariable.XCLIPFRAMEdetermineswhethertheclippingboundaryframeisdisplayed.Whentheclippingframeison(setto1),itcanbeselectedaspartoftheobjectandplotted.Formoreinformat(yī)ionaboutXCLIPFRAME,seetheCommandReference.10.6EditingReferencesinPl(wèi)aceYoucanmodifyexternalreferencesandredefineblockdefinitionsfromwithinthecurrentdrawingbyusingin-placereferenceediting.Bothblocksandxrefsareconsideredreferences.Often,adrawingcontainsoneormorexrefsaswellasmultipleblockreferences.Whenworkingwithblockreferences,youcanselectablock,modifyit,andupdatetheblockdefinition.Whenworkingwithxrefs,youcanusein-placereferenceeditingtoselectthereferenceyouwanttoworkwith,modifyitsobjects,andsavebackthechangestothereferencedrawing.Youcanmakeminorchangeswithouthavingtogobackan
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 煙臺汽車工程職業(yè)學院《多媒體技術與應用》2023-2024學年第一學期期末試卷
- 2025至2031年中國焊接丙烷氣行業(yè)投資前景及策略咨詢研究報告
- 2025至2031年中國環(huán)保紙托盤行業(yè)投資前景及策略咨詢研究報告
- 出生缺陷的監(jiān)測與干預課件
- 教學工作計劃培養(yǎng)批判性思維
- 目標達成的監(jiān)督與反饋機制計劃
- 合理分配資源的年度工作計劃
- 數據分析行業(yè)個人項目規(guī)劃計劃
- 前臺文員協調處理公司物業(yè)問題的計劃
- 倉庫科技應用的總結與前景計劃
- 鑄造行業(yè)安全培訓課件
- 2025年電力人工智能多模態(tài)大模型創(chuàng)新技術及應用報告-西安交通大學
- 應急物業(yè)合同范本
- 企業(yè)變更 備案 申請書
- 人教部編版八年級道德與法治上冊:8.2《堅持國家利益至上》聽課評課記錄3
- 《“長賜”輪擱淺蘇伊士運河事故探析及預防對策探究》7700字
- 2025年天翼云高級運維工程師認證參考試題庫(含答案)
- 2025屆甘肅省定西市安定區(qū)中考生物對點突破模擬試卷含解析
- 小米財務管理
- 《竹節(jié)參莖葉中脂溶性成分的研究》
- 光伏項目資產評估報告
評論
0/150
提交評論