[VBA函数]:'获取CAD坐标系统和屏幕像素的比值
'获取CAD坐标系统和屏幕像素的比值
Function ViewScreen() As Double
Dim ScreenSize As Variant
ScreenSize = ThisDrawing.GetVariable("screensize") '当前视口的屏幕宽度和高度
Dim H As Variant
H = ThisDrawing.GetVariable("viewsize") '当前视图图形的实际高度
ViewScreen = Abs(H / ScreenSize(1))
End Function
正想学VBA,下点源代码看看门道,谢了,如果附上思路对初学者就更有益啦 最初由 wangdahu1980 发布
正想学VBA,下点源代码看看门道,谢了,如果附上思路对初学者就更有益啦
你是专门来灌水的。 看一下!!!!!!!! 多谢楼主,多看代码对初学者很有好处!!
页:
[1]