Download File from Teamcenter

Valued Contributor
Valued Contributor

 

Bom dia a todos!

Estou na luta para fazer downloads de arquivos do Teamcenter através do Cache Assistant.

Application Button >> Manage >> Cache Assistant >> Download >> Select >> Open.

Desenvolvi o seguinte código em VB.net:

Dim oSEApp As SolidEdgeFramework.Application

Dim oSETc As SolidEdgeFramework.SolidEdgeTCE

 

oSEApp = GetObject(, "SolidEdge.Application")

oSETc = oSEApp.SolidEdgeTCE

 

Dim objItem AsString

Dim objRev AsString

Dim Ret AsObject

Dim objDataset AsString

Dim N AsInteger

Dim strPath AsString

objItem = "CL19-00002"

objRev = "A"

objDataset = objItem & "/" & objRev

oSETc.GetListOfFilesFromTeamcenterServer(objItem, objRev, Ret, N)

        oSETc.DownladDocumentsFromServerWithOptions(objItem, objRev, objItem & "/" & objRev, "", "", False, True, 2, Ret)

 

Entretanto, não consigo realizar o Download dos documentos relacionados ao item CL19-00002.

 

Em um download reazildado pelos comandos próprios do Solid Edge:

Application Button >> Manage >> Cache Assistant >> Download >> Select >> Open.

O arquivo selecionado vai para: C:\Documents and Settings\User\Application Data\Unigraphics Solutions\Solid Edge\SEEC\http_server_7000_tc\user\Default.

 

Como fazer com que o código se comporte da mesma forma?

 

Grato

 

Edson Jesus

####################################################

 

Good morning everyone!

I'm in the struggle to download files from Teamcenter through the Cache Assistant.

Application Button >> Manage >> Cache Assistant >> Download >> Select >> Open.

Developed the following code in VB.net:

 

Dim oSEApp As SolidEdgeFramework.Application

Dim oSETc As SolidEdgeFramework.SolidEdgeTCE

 

oSEApp = GetObject(, "SolidEdge.Application")

oSETc = oSEApp.SolidEdgeTCE

 

Dim objItem AsString

Dim objRev AsString

Dim Ret AsObject

Dim objDataset AsString

Dim N AsInteger

Dim strPath AsString

objItem = "CL19-00002"

objRev = "A"

objDataset = objItem & "/" & objRev

oSETc.GetListOfFilesFromTeamcenterServer(objItem, objRev, Ret, N)

oSETc.DownladDocumentsFromServerWithOptions(objItem, objRev, objItem & "/" & objRev, "", "", False, True, 2, Ret)

 

However, I can not perform the download of documents related to the item

 CL19-00002.

 

In a download reazildado by the commands of their own Solid Edge:

Application Button >> Manage >> Cache Assistant >> Download >> Select >> Open.

The selected file is going to: C:\Documents and Settings\User\Application Data\Unigraphics Solutions\Solid Edge\SEEC\http_server_7000_tc\user\Default.

 

How to make the code behave the same way?

 

Grateful

Edson Jesus

 

Posted by: Edson Silva de Jesus
Post date: 6/23/2010 2:56:59 AM

3 REPLIES

RE: Download File from Teamcenter

Valued Contributor
Valued Contributor

 

Bonjour,

I also tried to make "DownladDocumentsFromServerWithOptions"  works ... unsuccessfully.

Did you finally managed to make it work ?

Thanks in advance

Ludovic

 

Posted by: Ludovic BOUILLON
Post date: 8/3/2010 5:29:05 AM

RE: Download File from Teamcenter

Valued Contributor
Valued Contributor

Sub DownladDocumentsFromServerWithOptions(bstrItemId As String, bstrItemRev As String, bstrDataSetFileName As String, bstrRevisionRule As String, bstrVariantRule As String, vbReadOnly As Boolean, vbAllLevel As Boolean, dwDownloadOption As , [pvarListOfFiles() As Variant])

 

bstrDataSetFileName must be the same name as it was saved in :

C:\Documents and Settings\User\Application Data\Unigraphics Solutions\Solid Edge\SEEC\http_server_7000_tc\user\Default\

 

ex :

- open a TCX file in SolidEdge

this file is saved in directory cache C:\Documents and Settings\User\Application Data\Unigraphics Solutions\Solid Edge\SEEC\http_server_7000_tc\user\Default\

- bstrDataSetFileName = name of the file in the cache directory

- delete this file

- try DownladDocumentsFromServerWithOptions with the good bstrDataSetFileName

 

-> the file is created in C:\Documents and Settings\User\Application Data\Unigraphics Solutions\Solid Edge\SEEC\http_server_7000_tc\user\Default\

 

Posted by: inoujk inoujk
Post date: 3/29/2011 9:33:01 PM

Re: Download File from Teamcenter

Valued Contributor
Valued Contributor

use CheckOutDocumentsFromTeamCenterServer("LB31.0000.60-20.02.00.00", "00", true);

 

insteed

 

DownladDocumentsFromServerWithOptions(...)

 

It's work in C# SE St4

 

Posted by: Georgi Georgiev
Post date: 8/30/2012 1:30:36 AM