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

#是什么意思

Sub Example_AddDimAligned()
    ' This example creates an aligned dimension in model space.
    Dim dimObj As AcadDimAligned
    Dim point1(0 To 2) As Double
    Dim point2(0 To 2) As Double
    Dim location(0 To 2) As Double
   
    ' Define the dimension
    point1(0) = 5#: point1(1) = 5#: point1(2) = 0#
    point2(0) = 10#: point2(1) = 5#: point2(2) = 0#
    location(0) = 5#: location(1) = 7#: location(2) = 0#
   
    ' Create an aligned dimension object in model space
    Set dimObj = ThisDrawing.ModelSpace.AddDimAligned(point1, point2, location)
    ZoomAll
End Sub
这些# 代表什么?

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

Double 的类型声明字符

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

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

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

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

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

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