Buzzsaw Developer

Buzzsaw Developer

156 Posts
1 Kudo
Registered: ‎04-14-2005
Post 1 of 3

Getting a list of available projects

2087 Views, 2 Replies
08-28-2008 05:03 AM
Is there a way to get a list of available Projects?

I've tried.

Dim PPprojects As PPResourceCollection
Set PPprojects = PPsess.GetResource("SiteName")

I get a type mismatch error.

156 Posts
1 Kudo
Registered: ‎04-14-2005
Post 2 of 3

Re: Getting a list of available projects

09-03-2008 04:28 AM in reply to: GeeHaa
I have also tried this.

Dim PPprojects As PPResourceCollection
Dim ppsit As PPSITE
Set ppsit = New PPSITE
ppsit.AttachSession PPsess
Set PPprojects = ppsit.SubProjects

I get a Subprojects method failed error after the above line

For Each PPProj In PPprojects
CBO_Projects.AddItem PPProj.Name
Next PPProj

Any help would be appreciated.

Active Member
8 Posts
2 Kudos
Registered: ‎08-21-2007
Post 3 of 3

Re: Getting a list of available projects

10-28-2008 07:09 PM in reply to: GeeHaa

Hello geehaa,

You can get the resources in a site by using the following methods.

1. Using GetFolderContents methods in PPScripting

If you set "" to sURL,
you can get all resources name in test folder.

Dim oPPcol As IPPResourceCollection
Dim oPPres As IPPResource
Dim sFolderList As String
sFolderList = ""
oPPcol = oPPScripting.GetFolderContents(sURL, sUsername, sPassword)
For Each oPPres In oPPcol
sFolderList = sFolderList & ", " & oPPres.Name

2. Using GetFolderContentsList methods in PPScripting2

If you set "" to sURL,
you can get XML file (Folder.xml) of all resources list in test folder.

Dim oPPScript2 As New PPScripting2
Dim fRes As String

fRes = oPPScript2.GetFolderContentsList(sURL, sUsername, sPassword)
Dim Fno As Integer
Fno = FreeFile()
FileOpen(Fno, "C:\Folder.xml", OpenMode.Output, OpenAccess.Write)
PrintLine(Fno, fRes)

I recommend that you check sample programs in ProjectPoint API toolkit.
You will be able to understand how to use the methods in the API samples.

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.

Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!