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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Getting List of Files in the Local Workspace

louztyper1
1-Visitor

Getting List of Files in the Local Workspace

I am using J-Link and I want to import a file to the workspace and check to see how many files end up in the workspace. If I import a generic, the number of files should be equal to the generic and its instances. But I do not see any methods that will let me get a count. I tried Session.ListModels but it always returns a size of zero.

Any ideas?

5 REPLIES 5

I think there is missing information in the documentation of the
ListModels method.

In the J-Link Packages Java Doc it says: Retrieves the list of objects in
the Pro/ENGINEER workspace.
But on every explanation in the User Guide it says: Use the method
pfcSession.BaseSession.ListModels to return a sequence of all the models
in session.

The later is what happens. The workspace seems to be a leftover from
Intralink 3.x, but it certainly haven't been updated to work with
Windchill workspaces yet.

I haven't found a way to list items in a workspace from J-Link, but it
should be possible using the Windchill API's.

Regards,
Bjarne





Stephen Cord <->
20-01-2010 15:23
Please respond to
Stephen Cord <->


To
-
cc

Subject
[proecus] - Getting List of Files in the Local Workspace






I am using J-Link and I want to import a file to the workspace and check
to see how many files end up in the workspace. If I import a generic, the
number of files should be equal to the generic and its instances. But I do
not see any methods that will let me get a count. I tried
Session.ListModels but it always returns a size of zero.
Any ideas?

Site Links: View post online View mailing list online Send new post
via email Manage your subscription Use of this email content is
governed by the terms of service at:

Hi,

I did some tests with Web.Link some years ago.

Method "ListModels" onlygets a list of models in session.

I think one of the other methods ("ListFiles" ?) get a list of workspace models if the path or directory argument is of format "wtws://..." or something like that.

Perhaps this is still working.

Andreas

__________________________________

Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Rudolf-Diesel-Str. 6
D-65439 Floersheim / Germany

phone: +49 6145 598296
mail: -

jkent
12-Amethyst
(To:louztyper1)

I get a list of files in the workspace using:



stringseq files = Session.ListFiles(filter,
FileListOpt.FILE_LIST_LATEST, "wtws://" + server.GetAlias() + "/" +
workSpaceName + "/");




ListFiles does not return instances in the workspace. This bug is supposed
to be fixed in WF 4.0 M110 and WF 5.0

Thank Joe Kent for digging this one up.



_____
jkent
12-Amethyst
(To:louztyper1)

According to a call I had open with PTC:



As of Pro/ENGINEER Wildfire 4.0 M110 and Wildfire 5.0 F000, J-Link now
accurately list files (including instances) in a Workspace. This
functionality was not implemented in Wildfire 2.0 or 3.0.


Announcements


Top Tags