#是什么意思
<P class=h1-access>Sub Example_AddDimAligned()<BR> ' This example creates an aligned dimension in model space.<BR><BR> Dim dimObj As AcadDimAligned<BR> Dim point1(0 To 2) As Double<BR> Dim point2(0 To 2) As Double<BR> Dim location(0 To 2) As Double<BR> <BR> ' Define the dimension<BR> point1(0) = 5#: point1(1) = 5#: point1(2) = 0#<BR> point2(0) = 10#: point2(1) = 5#: point2(2) = 0#<BR> location(0) = 5#: location(1) = 7#: location(2) = 0#<BR> <BR> ' Create an aligned dimension object in model space<BR> Set dimObj = ThisDrawing.ModelSpace.AddDimAligned(point1, point2, location)<BR> ZoomAll<BR>End Sub</P><PRE class=Code>这些# 代表什么?</PRE> <P><FONT color=#0033ff>Double 的类型声明字符</FONT></P> <P>是表示输入的数字代表整数吧,你输入非整数时它就不能出现了!!</P> <P>2楼正确</P><P>5#和5.0是一回事,</P>输入非整数#自动消除,是因为它本身就是Double类型,就不用#号再声明一遍了 o,谢谢,我又学到了一点,嘿嘿!!
页:
[1]