|
发表于 2013-5-3 10:06:00
|
显示全部楼层
Public Sub openDialog()
Dim strFileName As String
'确保USERS1系统变量为空
thisDrawing.SetVariable "USERS1", ""
'显示"选择文件"对话框,并且获得用户选择的结果
thisDrawing.sendcommand "(setvar "&" ""USERS1"""&"(getfield "&"""选择图形文件"""&"""d:/"""dwg"""&"8))"
strFileName = thisDrawing.GetVariable("USERS1")
'显示选择结果
If Len(strFileName) = 0 Then
MsgBox "为选择任何图形文件", vbInformation, "选择结果"
Else
MsgBox "选择的文件是:" & strFileName, vbInformation, "选择结果"
End If
End Sub
红色的那句话是什么意思啊,那么多引号 |
|