ericyu 发表于 2006-4-24 15:56:00

#是什么意思

<P class=h1-access>Sub Example_AddDimAligned()<BR>&nbsp;&nbsp;&nbsp; ' This example creates an aligned dimension in model space.<BR><BR>&nbsp;&nbsp;&nbsp; Dim dimObj As AcadDimAligned<BR>&nbsp;&nbsp;&nbsp; Dim point1(0 To 2) As Double<BR>&nbsp;&nbsp;&nbsp; Dim point2(0 To 2) As Double<BR>&nbsp;&nbsp;&nbsp; Dim location(0 To 2) As Double<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; ' Define the dimension<BR>&nbsp;&nbsp;&nbsp; point1(0) = 5#: point1(1) = 5#: point1(2) = 0#<BR>&nbsp;&nbsp;&nbsp; point2(0) = 10#: point2(1) = 5#: point2(2) = 0#<BR>&nbsp;&nbsp;&nbsp; location(0) = 5#: location(1) = 7#: location(2) = 0#<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; ' Create an aligned dimension object in model space<BR>&nbsp;&nbsp;&nbsp; Set dimObj = ThisDrawing.ModelSpace.AddDimAligned(point1, point2, location)<BR>&nbsp;&nbsp;&nbsp; ZoomAll<BR>End Sub</P><PRE class=Code>这些# 代表什么?</PRE>

clement 发表于 2006-4-24 16:12:00

<P><FONT color=#0033ff>Double 的类型声明字符</FONT></P>

ghosthsg 发表于 2006-4-26 08:48:00

<P>是表示输入的数字代表整数吧,你输入非整数时它就不能出现了!!</P>

雪山飞狐_lzh 发表于 2006-4-26 14:48:00

<P>2楼正确</P>
<P>5#和5.0是一回事,</P>输入非整数#自动消除,是因为它本身就是Double类型,就不用#号再声明一遍了

ghosthsg 发表于 2006-4-27 09:20:00

o,谢谢,我又学到了一点,嘿嘿!!
页: [1]
查看完整版本: #是什么意思