本帖最后由 efan2000 于 2014-7-17 11:56 编辑
标准的打开和保存文件对话框,应该是采用ARX的acedGetFileNavDialog函数。如:
- Sub test()
- Dim result As ResultBuffer
- AcedGetFileNavDialog "图形另存为", ThisDrawing.Name, "dwg", "", 4, result
- AcedGetFileNavDialog "选择文件", "", "dwg", "", 4, result
- Dim v As Variant
- v = result.AsArray()
- Dim i As Integer
- For i = 0 To UBound(v)
- Dim tv As TypedValue
- Set tv = v(i)
- Debug.Print tv.Value
- Next
- End Sub
该函数的COM方式,可以查找ARX的COM实现的贴子。 |