Buzzsaw Forum Archive
Welcome to Autodesk’s Buzzsaw Forums. Share your knowledge, ask questions, and explore popular Buzzsaw topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Incompatibility between 1.x and 5.x version

2 REPLIES 2
Reply
Message 1 of 3
johnbartak
445 Views, 2 Replies

Incompatibility between 1.x and 5.x version

(Posted for another user)

I just updated my buzzsaw client to 5 and tested out a copy method from a
PPSESSION object. Here is a sample code:



Dim oPPSession As New PPSession
Dim oPPRes As IPPResource
Dim url As String
Dim username As String
Dim password As String
Dim scrfile As String
Dim dstfile As String



' define variables
url = "https://webdav.buzzsaw.com/ppapi/testing"
username = "xxxx"
password = "xxxx"



scrfile = "/test/Browsernode.txt"
dstfile = "/test/Browsernode1.txt"



' logout and the login
oPPSession.LogIn username, password, url



' get a resource to srcfile and copy it to dstfile
Set oPPRes = oPPSession.GetResource(scrfile)
oPPSession.Copy oPPRes, dstfile



If my memory serves right, the above used to work earlier (with previous version of API), but now errors
out at 'GetResource' method. All that it needed was a relative path to the url.



Now I have to make the following changes for it to work with the current API:



scrfile = "/Testing/test/Browsernode.txt"
dstfile = "/Testing/test/Browsernode1.txt"
2 REPLIES 2
Message 2 of 3
johnbartak
in reply to: johnbartak

The session object used to store information about the path that you logged in with. It no longer does so. You must always specify paths relative to the top of the site.
Message 3 of 3
Anonymous
in reply to: johnbartak

Thx John for posting it................that is my
mail.

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
The
session object used to store information about the path that you logged in
with. It no longer does so. You must always specify paths relative to the top
of the site.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report