cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

FilesList of a Winchill/Intralink workspace

colmacpro
1-Newbie

FilesList of a Winchill/Intralink workspace

Hello,

Does anybody know how to list the files in a Windchill/Intralink workspace using the one of the Pro/E toolkits.

I would preferto use the VB API.



Joe


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
4 REPLIES 4

2008/6/26, Joe Barnes <joebar@colmac.com>:
>
> Hello,
>
> Does anybody know how to list the files in a Windchill/Intralink workspace
> using the one of the Pro/E toolkits.
>
> I would prefer to use the VB API.
>
> Joe

Intralink workspaces have path format: ilws://NAME, where NAME is the
name of the workspace. I am not sure about Windchill, but I suppose
you could browse a workspace from within Pro/ENGINEER and look at the
trail file to see the path it uses.

--
Bojan Resnik


> Does anybody know how to list the files in a Windchill/Intralink workspace using
> the one of the Pro/E toolkits.
>
> I would prefer to use the VB API.


Check the "Windchill Connectivity APIs" section in the VB API documentation. Here
is a quote:


Object in workspace has a prefix wtws
wtws://<server_alias>/<workspace_name>/<object_server_name>

where <object_server_name> includes <object_name>.<object_extension>



There is also a Windchill examples called pfcServerExamples.vb in the vbapi_examples folder.
I wouldn't be surprised if the syntax showed up in the trail file as Bojan suggested.





Marc
--
Marc Mettes
-
Visit My CAD/PDM AutomationBlog
Or, Subscribe to My CAD/PDM Automation Blog by Email







That did the trick Thank You



ByVal strDirectoryPath As String = "wtws://I9/bobxcb" ByVal strFilter As String = "*.prt"Dim myListOptions As EpfcFileListOpt = EpfcFileListOpt.EpfcFILE_LIST_LATEST



Dim strModelListSeq As Istringseq Istringseq = ProEBaseSession.ListFiles(strFilter, myListOptions, strDirectoryPath)



Joe

Correction:



Dim strDirectoryPath As String = "wtws://I9/bobxcb"



Dim strFilter As String = "*.prt"



Dim myListOptions As EpfcFileListOpt = EpfcFileListOpt.EpfcFILE_LIST_LATEST

Dim strModelListSeq As Istringseq

strModelListSeq = ProESession.ListFiles(strFilter, myListOptions, strDirectoryPath)

Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration