Visual Basic Customization
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Is this possible with GetRemoteF ile method
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
162 Views, 1 Replies
05-20-2009 01:12 PM
I'm trying to download a .dvb file from my Web site and load it locally into AutoCAD. I can download with the Getremotefile method with out any problems. The problem is with the downloaded file, it is unusable. When I try to load the file manually I get a message indicating 'unable to load file'. In comparing the downloaded file size with the file on my Web server, the downloaded file is considerably smaller.
So, hopefully someone can tell me if I'm doing something wrong?
Code:
Dim strURL As String
Dim strLocalName As String
strUrl = "http://DomainName/myFile.dvb"
thisDrawing.utility.getremotefile strUrl, strLocalName, true
Thanks in advance!
So, hopefully someone can tell me if I'm doing something wrong?
Code:
Dim strURL As String
Dim strLocalName As String
strUrl = "http://DomainName/myFile.dvb"
thisDrawing.utility.getremotefile strUrl, strLocalName, true
Thanks in advance!
Re: Is this possible with GetRemoteF ile method
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-19-2010 11:32 PM in reply to:
Eddie68
Hi Eddie
I hope this code help you
andrea
strLocalFilePath = "c:\storedfile"
strLocalFile = ""
strLocalUrl = strLocalFilePath & "\ACAD\" & "myFile.dvb"
strRemoteUrl = "http://DomainName/myFile.dvb"
Utility.GetRemoteFile(strRemoteUrl, strLocalFile, True)
On Error Resume Next
FileSystem.MkDir(strLocalFilePath & "/ACAD")
FileSystem.FileCopy(strLocalFile, strLocalUrl)
On Error GoTo 0
If Utility.IsRemoteFile(strLocalFile, strRemoteUrl) Then
boolDownload = True
Else
boolDownload = False
End If
I hope this code help you
andrea
strLocalFilePath = "c:\storedfile"
strLocalFile = ""
strLocalUrl = strLocalFilePath & "\ACAD\" & "myFile.dvb"
strRemoteUrl = "http://DomainName/myFile.dvb"
Utility.GetRemoteFile(strRemoteUrl, strLocalFile, True)
On Error Resume Next
FileSystem.MkDir(strLocalFilePath & "/ACAD")
FileSystem.FileCopy(strLocalFile, strLocalUrl)
On Error GoTo 0
If Utility.IsRemoteFile(strLocalFile, strRemoteUrl) Then
boolDownload = True
Else
boolDownload = False
End If

