Can I use code read a .RWS file to get the worksession Pathes?

Hi,Dear All
I want to get the worksession 3dm file pathes by read rws file.
I have tried all the encode,but I get unreadable code.image

 Dim tencode As System.Text.Encoding = System.Text.Encoding.Default
 A = File.ReadAllText(RWSPath, tencode)

Have anyone done it before,Can give any tips. Thank you!
@dale

Hi @huaxiamengqing1,

A File3dm object is not capable of reading a .rws file. Why do you need to read this type of file?

– Dale

@dale
So do i, i want to reading RWS file, get the path of the collaboration file,thx.

Hi @Levin_Tse,

This is available in the WIP:

http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_DocObjects_Worksession.htm

Does this help?

– Dale

Hi ,Dear @dale
I know you have exposed worksession sdk in rhino6, Good job. That will be very convient for us to use worksession.
But what I want is to get these pathes not open the rws files
image
Like you have done to 3dm file, When I select it, It will preview it notes. I hope rws file have the same function

This wish is on the to-do list.

https://mcneel.myjetbrains.com/youtrack/issue/RH-36002

– Dale

1 Like

Great, Hope no wait too long!