Autocad自定义线型设置_第1页
Autocad自定义线型设置_第2页
Autocad自定义线型设置_第3页
Autocad自定义线型设置_第4页
Autocad自定义线型设置_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、ORAutoCAD提供了两个线型文件,即AutoCAD主文件夹的S子文件夹中的acad.lin和acadiso.lin,分别在使用样板文件acad.d和acadiso.d创建文件时被调用。这两个文件中定义的线型种类相同,区别仅在于线型的尺寸略有不同。以acad.lin文件为例来介绍线型的定义和定制,该文件中定义了45种不同的线型,其中包括14种ISO线型和7种复杂线型,其余24种简单线型又可分为8组,每组线型的样式相同而线段长度和间隔不同。例如,“DASHED2和DASED线型的线段长度和间隔分别为DASE线型的0.5倍和2倍。线型的定义线型定义格式线型定义由标题行和模式行两部分组成。标题行:

2、由线型名称和线型描述组成,标题行以*为开始标记,线型名称和描述由逗号分开,其格式为:*linetype-name,description*线型名称线型描述)模式行:由对齐码和线型规格说明组成,中间由逗号分开,其格式为:alignment,patdesc-1,patdesc-2,.(对齐码,线型规格说明)例如:在acad.lin文件中对BORDER(边界线)的定义如下:其中对齐码A表示该线型采用两端对齐方式,目前AutoCAD仅支持这一种对齐方式。简单线型的定义简单线型是由短划线(Dash)、点(Dot)和空格(Space)组合而成。在简单线型的规格说明中,正数表示其值为长度的短划线,负数表示其

3、绝对值为长度的空格,0表示点。例如在BORDER的规格说明A.5,-.25,.5,-.25,0,-.25”中,.5表示0.5个单位长的短划线,-.25表示0.25个单位长的空格,0表示一个点。复杂线型的定义复杂线型是在简单线型中嵌入符号、字符串或形(关于形的详细介绍见第33章)等其它元素而成的。如图32-1所示。在线型规格说明中嵌入文字的格式为:string,style,R=n1,A=n2,S=n3,X=n5,Y=n6其中:string:嵌入的文字,须用双引号括起来。style:嵌入文字所用的文字样式名。R:嵌入文字相对于画线方向的倾斜角度。A:嵌入文字相对于WCS坐标系中X轴正向的倾斜角度。

4、S:嵌入文字的比例因子。X:嵌入文字在画线方向上的偏移量。Y:嵌入文字在画线方向的垂向上的偏移量。例如:在acad.lin文件中对GAS_LINE线型的定义如下:*GAS_LINE,GaslineGASGASGASGASGASGAS-A,.5,-.2,GAS,STANDARD,S=.1,R=0.0,X=-0.1,Y=-.05,-.25在线型规格说明中嵌入形的格式为:shape,shapefile,R=n1,A=n2,S=n3,X=n5,Y=n6其中:?shape:嵌入的形。?shapefile:嵌入形所在的形文件,该文件应在AutoCAD的系统路径中。?R、A、S、X、Y的意义同上。例如:在a

5、cad.lin文件中对ASLINE型的定义如下:*FENCELINE2,Fencelinesquare-A,.25,-.1,BOX,ltypeshp.shx,x=-.1,s=.1,-.1,1线型的创建和修改通过前面的学习已经了解了线型是如何定义和保存的,在此基础上对标准线型进行修改或自己创建新的线型。在AutoCAD2002中提供了-Linetype命令对线型进行各种操作。现在就使用该命令在AutoCAD环境下创建一个新的线型和线型文件。实例1创建“INTERVAL”线型运行AutoCAD2002,在命令行输入:-linetype,AutoCAD在命令行提示:Enteranoption?/Cr

6、eate/Load/Set:CEnterEnternameoflinetypetocreate:INTERVALEnter此时,AutoCAD弹出CreateorAppendLinetypeFile对话框,如图32-2所示。在CreateorAppendLinetypeFile对话框中输入线型文件名user.lin,并按下Save键返回。此时系统创建并打开了一个新的线型文件user.lin;命令行提示用户输入描述文本和线型模式:Descriptivetext:Interval._._._._.EnterEnterlinetypepattern(onnextline):A,1,-.125,0,-

7、.125,.25,-.125,0,-.125EnterNewlinetypedefinitionsavedtofile.Enteranoption?/Create/Load/Set:Enter实际上,由于线型文件是ASCII格式的,因此用户可以在AutoCAD环境外使用任一文本编辑器直接打开或创建线型文件,并对其内容进行补充和修改。实例2创建“ARROW”线型使用Windows附件中的记事本程序打开由实例一创建的user.lin文件。在该文件中添加如下内容,如图32-3所示。*Arrow,Arrow-A,.25,-.05,STANDARD,S=.1,R=0.0,X=-.1,Y=-.05,-.1

8、进入AutoCAD2002,载入线型文件user.lin,即可使用该文件中定义的INTERA和ARRW”型,图32-4显示了使用这两种线型的例子。说明使用-linetype命令,如果该线型己在库文件中存在,则系统会提示用户该线型已经在库文件中定义,并询问用户是否重新定义用户可对其重新定义来实现对已有线型的修改。绘图中有两个比例要设置1.格式-标注样式-修改-调整-使用全局比例这里设置的作用:主要是为你在图框中绘图的大小与图框的显示比如你用缩小比例1:10,就可以在调整-使用全局比例改为10,像你在CAD中绘图中,比如一直线的长度1000mm,我们画时一般都会用缩小比例呢,就可以改使用全局比例。

9、把它改为10(假设),这样你在绘图中输入直线长度1000就可以在自己指定的地方显示出来大概就是这个意思。2.格式-线型-全局比例因子。它的作用:目的是控制线段的长短、线段之间间隙的大小。比如你在画中心线时,它在绘图中显示像直线一样,你就可以在全局比例因子中,把它改小,或改大。这样以便我们可以清楚的看出它是一条中心线。;AutoCADISOLinetypeDefinitionfile;Version2.0;Copyright(C)1996-2008byAutodesk,Inc.AllRightsReserved.;Note:inordertoeasemigrationofthisfilewhen

10、upgrading;toafutureversionofAutoCAD,itisrecommendedthatyouadd;yourcustomizationstotheUserDefinedLinetypessectionatthe;endofthisfile.;customizedforISOscaling;*BORDER,Border_._._._._.A,12.7,-6.35,12.7,-6.35,0,-6.35*BORDER2,Border(.5x)_._._._._._._._._._._.A,6.35,-3.175,6.35,-3.175,0,-3.175*BORDERX2,Bo

11、rder(2x)._A,25.4,-12.7,25.4,-12.7,0,-12.7*CENTER,Center_A,31.75,-6.35,6.35,-6.35*CENTER2,Center(.5x)_A,19.05,-3.175,3.175,-3.175*CENTERX2,Center(2x)_A,63.5,-12.7,12.7,-12.7*DASHDOT,Dashdot_._._._._._._._A,12.7,-6.35,0,-6.35*DASHDOT2,Dashdot(.5x)_._._._._._._._._._._._._._._.A,6.35,-3.175,0,-3.175*DA

12、SHDOTX2,Dashdot(2x).A,25.4,-12.7,0,-12.7*DASHED,DashedA,12.7,-6.35*DASHED2,Dashed(.5x)A,6.35,-3.175*DASHEDX2,Dashed(2x)_A,25.4,-12.7*DIVIDE,Divide.A,12.7,-6.35,0,-6.35,0,-6.35*DIVIDE2,Divide(.5x)_._._._._._._._._A,6.35,-3.175,0,-3.175,0,-3.175*DIVIDEX2,Divide(2x).A,25.4,-12.7,0,-12.7,0,-12.7*DOT,Dot

13、A,0,-6.35*DOT2,Dot(.5x)A,0,-3.175*DOTX2,Dot(2x).A,0,-12.7*HIDDEN,HiddenA,6.35,-3.175*HIDDEN2,Hidden(.5x)A,3.175,-1.5875TOC o 1-5 h z*HIDDENX2,Hidden(2x)_A,12.7,-6.35*PHANTOM,Phantom_A,31.75,-6.35,6.35,-6.35,6.35,-6.35*PHANTOM2,Phantom(.5x)A,15.875,-3.175,3.175,-3.175,3.175,-3.175*PHANTOMX2,Phantom(2

14、x)_A,63.5,-12.7,12.7,-12.7,12.7,-12.7;ISO128(ISO/DIS12011)linetypeshavebeenadded.;ThesizeofthelinesegmentsforeachdefinedISOline,is;definedforanusagewithapenwidthof1mm.Tousethemwith;theotherISOpredefinedpenwidths,thelinehastobescaled;withtheappropriatevalue(e.g.penwidth0,5mm-ltscale0.5).;*ACAD_ISO02W

15、100,ISOdashA,12,-3*ACAD_ISO03W100,ISOdashspace_A,12,-18*ACAD_ISO04W100,ISOlong-dashdot._A,24,-3,0,-3*ACAD_ISO05W100,ISOlong-dashdouble-dot.A,24,-3,0,-3,0,-3TOC o 1-5 h z*ACAD_ISO06W100,ISOlong-dashtriple-dot._A,24,-3,0,-3,0,-3,0,-3*ACAD_ISO07W100,ISOdotA,0,-3*ACAD_ISO08W100,ISOlong-dashshort-dash_A,

16、24,-3,6,-3*ACAD_ISO09W100,ISOlong-dashdouble-short-dash_A,24,-3,6,-3,6,-3*ACAD_ISO10W100,ISOdashdot_._._._._._._.A,12,-3,0,-3*ACAD_ISO11W100,ISOdouble-dashdot_._._.A,12,-3,12,-3,0,-3*ACAD_ISO12W100,ISOdashdouble-dot_._._._.A,12,-3,0,-3,0,-3*ACAD_ISO13W100,ISOdouble-dashdouble-dot_._A,12,-3,12,-3,0,-

17、3,0,-3*ACAD_ISO14W100,ISOdashtriple-dot_._._._A,12,-3,0,-3,0,-3,0,-3*ACAD_ISO15W100,ISOdouble-dashtriple-dot_._A,12,-3,12,-3,0,-3,0,-3,0,-3;Complexlinetypes;Complexlinetypeshavebeenaddedtothisfile.;TheselinetypesweredefinedinLTYPESHP.LINin;Release13,andareincorporatedinACAD.LINin;Release14.;Theselin

18、etypedefinitionsuseLTYPESHP.SHX.;*FENCELINE1,Fencelinecircle000000-A,6.35,-2.54,CIRC1,ltypeshp.shx,x=-2.54,s=2.54,-2.54,25.4*FENCELINE2,Fencelinesquare-A,6.35,-2.54,BOX,ltypeshp.shx,x=-2.54,s=2.54,-2.54,25.4*TRACKS,Tracks-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|A,3.81,TRACK1,ltypeshp.shx,s=6.

19、35,3.81*BATTING,BattingSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSA,.00254,-2.54,BAT,ltypeshp.shx,x=-2.54,s=2.54,-5.08,BAT,ltypeshp.shx,r=180,x=2.54,s=2.54,-2.54*HOT_WATER_SUPPLY,HotwatersupplyHWHWHWA,12.7,-5.08,HW,STANDARD,S=2.54,R=0.0,X=-2.54,Y=-1.27,-5.08*GAS_LINE,GaslineGASGASGASGASGASGAS-A,

20、12.7,-5.08,GAS,STANDARD,S=2.54,R=0.0,X=-2.54,Y=-1.27,-6.35*ZIGZAG,Zigzag/A,.00254,-5.08,ZIG,ltypeshp.shx,x=-5.08,s=5.08,-10.16,ZIG,ltypeshp.shx,r=180,x=5.08,s=5.08,-5.08;LinetypeDefinitionrelatedtoJISZ8312*JIS_08_11,1SASEN11A,11,-.60,.60,-.60*JIS_08_15,1SASEN15A,15,-.75,.75,-.75*JIS_08_25,1SASEN25_A

21、,25,-1.125,.75,-1.125*JIS_08_37,1SASEN37_A,37.5,-1.125,.75,-1.125*JIS_08_50,1SASEN50A,50,-1.125,.75,-1.125A,.75,-.60*JIS_02_1.0,HIDDEN01A,1,-1*JIS_02_1.2,HIDDEN01.25A,1.25,-1.25*JIS_02_2.0,HIDDEN02A,2,-1*JIS_02_4.0,HIDDEN04_A,4,-1.5*JIS_09_08,2SASEN8A,8,-.55,.55,-.55,.55,-.55*JIS_09_15,2SASEN15A,15,

22、-.90,.60,-.90,.60,-.90*JIS_09_29,2SASEN29丂_丂_A,29,-1.2,.70,-1.2,.70,-1.2*JIS_09_50,2SASEN50丂_A,50,-1.2,.70,-1.2,.70,-1.2;UserDefinedLinetypes;Addanylinetypesthatyoudefinetothissectionof;thefiletoensurethattheymigrateproperlywhen;upgradingtoafutureAutoCADversion.Ifduplicate;linetypedefinitionsarefoun

23、dinthisfile,items;intheUserDefinedLinetypessectiontakeprecedence;overdefinitionsthatappearearlierinthefile.;AutoCADLinetypeDefinitionfile;Version3.0;Copyright(C)1991-2008byAutodesk,Inc.AllRightsReserved.;Note:inordertoeasemigrationofthisfilewhenupgrading;toafutureversionofAutoCAD,itisrecommendedthat

24、youadd;yourcustomizationstotheUserDefinedLinetypessectionattheendofthisfile.*BORDER,Border_._._._._.A,.5,-.25,.5,-.25,0,-.25*BORDER2,Border(.5x)_._._._._._._._._._._.A,.25,-.125,.25,-.125,0,-.125*BORDERX2,Border(2x).A,1.0,-.5,1.0,-.5,0,-.5*CENTER,Center_A,1.25,-.25,.25,-.25*CENTER2,Center(.5x)_A,.75

25、,-.125,.125,-.125*CENTERX2,Center(2x)_A,2.5,-.5,.5,-.5*DASHDOT,Dashdot_._._._._._._._A,.5,-.25,0,-.25*DASHDOT2,Dashdot(.5x)_._._._._._._._._._._._._._._.A,.25,-.125,0,-.125*DASHDOTX2,Dashdot(2x).A,1.0,-.5,0,-.5*DASHED,DashedA,.5,-.25*DASHED2,Dashed(.5x)A,.25,-.125*DASHEDX2,Dashed(2x)_A,1.0,-.5*DIVID

26、E,Divide.A,.5,-.25,0,-.25,0,-.25*DIVIDE2,Divide(.5x)_._._._._._._._._A,.25,-.125,0,-.125,0,-.125*DIVIDEX2,Divide(2x).A,1.0,-.5,0,-.5,0,-.5*DOT,DotA,0,-.25*DOT2,Dot(.5x)A,0,-.125*DOTX2,Dot(2x).A,0,-.5*HIDDEN,HiddenA,.25,-.125*HIDDEN2,Hidden(.5x)A,.125,-.0625TOC o 1-5 h z*HIDDENX2,Hidden(2x)_A,.5,-.25

27、*PHANTOM,Phantom_A,1.25,-.25,.25,-.25,.25,-.25*PHANTOM2,Phantom(.5x)A,.625,-.125,.125,-.125,.125,-.125*PHANTOMX2,Phantom(2x)_A,2.5,-.5,.5,-.5,.5,-.5;ISO128(ISO/DIS12011)linetypes;ThesizeofthelinesegmentsforeachdefinedISOline,is;definedforanusagewithapenwidthof1mm.Tousethemwith;theotherISOpredefinedp

28、enwidths,thelinehastobescaled;withtheappropriatevalue(e.g.penwidth0,5mm-ltscale0.5).;*ACAD_ISO02W100,ISOdashA,12,-3*ACAD_ISO03W100,ISOdashspace_A,12,-18TOC o 1-5 h z*ACAD_ISO04W100,ISOlong-dashdot._A,24,-3,0,-3*ACAD_ISO05W100,ISOlong-dashdouble-dot.A,24,-3,0,-3,0,-3*ACAD_ISO06W100,ISOlong-dashtriple

29、-dot.A,24,-3,0,-3,0,-3,0,-3*ACAD_ISO07W100,ISOdotA,0,-3*ACAD_ISO08W100,ISOlong-dashshort-dashA,24,-3,6,-3*ACAD_ISO09W100,ISOlong-dashdouble-short-dash_A,24,-3,6,-3,6,-3*ACAD_ISO10W100,ISOdashdot_._._._._._._.A,12,-3,0,-3*ACAD_ISO11W100,ISOdouble-dashdot_._._.A,12,-3,12,-3,0,-3*ACAD_ISO12W100,ISOdash

30、double-dot_._._._.A,12,-3,0,-3,0,-3*ACAD_ISO13W100,ISOdouble-dashdouble-dot_._A,12,-3,12,-3,0,-3,0,-3*ACAD_ISO14W100,ISOdashtriple-dot_._._._A,12,-3,0,-3,0,-3,0,-3*ACAD_ISO15W100,ISOdouble-dashtriple-dot_._A,12,-3,12,-3,0,-3,0,-3,0,-3;Complexlinetypes;Complexlinetypeshavebeenaddedtothisfile.;TheselinetypesweredefinedinLTYPESHP.LINin;Release13,andareincorporatedinACA

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论