Buzzsaw Developer

Reply
Active Member
JohnBartak
Posts: 8
Registered: ‎11-26-2003
Message 1 of 3 (346 Views)

Incompatibility between 1.x and 5.x version

346 Views, 2 Replies
10-23-2003 02:53 AM
(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"
Active Member
JohnBartak
Posts: 8
Registered: ‎11-26-2003
Message 2 of 3 (346 Views)

Re: Incompatibility between 1.x and 5.x version

10-23-2003 02:54 AM 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.
*Thilak
Message 3 of 3 (346 Views)

Re:

10-27-2003 12:40 AM 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.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New Buzzsaw Category!

The Buzzsaw forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.