Reply

Cache Assistant Solid Edge with Teamcenter

[ Edited ]

 

 

Olá!

Bom dia a todos.

Estou trabalhando com o Teamcenter (Teamcenter 8.1) integrado ao Solid Edge (ST1).

Gostaria de saber se, alguém já tentou realizar o download de um arquivo contido no volume gerenciado pelo Teamcenter, através de um aplicativo ou macro em VB ou outros códigos.

Normalmente eu faria:

Application Button - Manage - Cache Assistant - Download - Download Files…

Hello!

Good morning everyone.

I am working with Teamcenter (Teamcenter 8.1) integrated with Solid Edge (ST1).

I wonder if anyone ever tried to download a file contained in the volume managed by Teamcenter, through an application or macro in VB or other codes.

Normally I would do:

Application Button - Manage - Cache Assistant - Download - Download Files ...

 

Posted by: Edson Silva de Jesus
Post date: 5/3/2010 2:00:46 AM

5 REPLIES

RE: Cache Assistant Solid Edge with Teamcenter

[ Edited ]

 

Hi Edinho,

the API for TeamCenter(Express) is quite hidden behind of the object of the property Application.SolidEdgeTCE. Check the Programming Solid Edge help file for this and you'll find all methods you need (i.e. DownloadDcoumentsFromServerWithOptions or CheckOutDocumentsfromTeamCenterServer etc.). I hope this brings you right on the way.

 

 

Posted by: Wolfgang Kunert
Post date: 5/4/2010 10:08:02 PM

RE: Cache Assistant Solid Edge with Teamcenter

[ Edited ]

Hello Wolfgang!

Thanks for posting your suggestion.

I tried to apply the code but still not getting the desired result.

I could not understand how to apply this code.

Hugs

 

Posted by: Edson Silva de Jesus
Post date: 5/6/2010 1:07:02 AM

RE: Cache Assistant Solid Edge with Teamcenter

[ Edited ]

 

Olá, venho trabalhando na solução de meu problema e encontrei este código no help do Solid Edge, entretanto,

ao executar o código, a string LocalPath, assume as propriedades da string FileToDownLoadFromServer, enviando o arquivo para local desconhecido.

 

Para FileToDownLoadFromServer, adotei o seguinte caminho webclient: http://serverTeamcenter/tc/webclient

ja o LocalPath, determinei como: C:\TempTC.

 

Mesmo assim não consigo realizar o download de um arquivo do volume teamcenter para o cache assistant.

 

Grato

Edson Jesus

 

Hello, I have been working on solving my problem and found this code in the help of Solid Edge, however,

to run the code, the string LocalPath, assumes the properties of string FileToDownLoadFromServer, sending the file to an undisclosed location.

 

For FileToDownLoadFromServer, I adopted the following path webclient: http://serverTeamcenter/tc/webclient

ja the LocalPath, determined as: C: \ TempTC.

 

I still can not perform the download a file to the volume Teamcenter in cache assistant.

 

Grateful

Edson Jesus...

 

....

 

Dim RevManType As Type

Dim ObjRevMan As RevisionManager.Application

Dim objInsight As RevisionManager.Insight

Const igReadWrite = 0

Const igReadOnly = 1

Const igReadExclusive = 2

Dim FileToDownLoadFromServer As String

Dim LocalPath As String

 

 

RevManType = Type.GetTypeFromProgID("RevisionManager.Application")

Try

ObjRevMan = Activator.CreateInstance(RevManType)

ObjRevMan.Visible = False

ObjRevMan.DisplayAlerts = False

Catch ex As Exception

MsgBox("Cannot start Revision Manager.", vbCritical + vbOKOnly, "Open & Save")

End Try

 

objInsight = ObjRevMan.Insight

 

 

'Assign illustrative values to the parameter variables

FileToDownLoadFromServer = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Summit.par"

LocalPath = "D:\InsightCache\Insight\solidvm\Engineering\PreReleased\PreReleasedDocLib"

 

 

Try

 

'Invoke the API

Call objInsight.DownloadDocumentFromServer(FileToDownLoadFromServer, 1, LocalPath, False, False, 0, False)

 

Catch ex As Exception

MsgBox("Error", MsgBoxStyle.OKOnly)

End Try

 

 

 

If Not (objInsight Is Nothing) Then

Marshal.ReleaseComObject(objInsight)

objInsight = Nothing

End If

 

If Not (ObjRevMan Is Nothing) Then

Marshal.ReleaseComObject(ObjRevMan)

ObjRevMan = Nothing

End If

End

 

Posted by: Edson Silva de Jesus
Post date: 5/11/2010 10:50:45 AM

RE: Cache Assistant Solid Edge with Teamcenter

[ Edited ]

Edinho,

 

in your initial post and in your subject of your thread you talk from TEAMCENTER and i gave you the hint where to find the API for TeamCenter. But now your play around with the API of INSIGHT and claim that you don't succeed!??

TeamCenter and Insight are 2 different worlds ...

 

 

Posted by: Wolfgang Kunert
Post date: 5/11/2010 10:25:56 PM

RE: Cache Assistant Solid Edge with Teamcenter

[ Edited ]

Wolfgang,

De fato, inicialmente o assunto tratado foi o Teamcenter, e continua sendo. A verdade é que não encontrei outra referência, tentei seguir este exemplo mas não obtive resultado.

Encontro-me um tanto quanto perdido, por isso tentei adotar este ultimo código para ver se conseguia algo. Não estou conseguindo conectar ao servidor do Teamcenter, nem referenciar o objeto que quero fazer o download.

Estou completamente perdido na integração Solid Edge Teamcenter.

Talvez eu esteja seguindo o caminho errado.

Conforme Help do Solid Edge

Sub DownladDocumentsFromServerWithOptions ( _

bstrItemId As String, _

bstrItemRev As String, _

bstrDataSetFileName As String, _

bstrRevisionRule As String, _

bstrVariantRule As String, _

vbReadOnly As Boolean, _

vbAllLevel As Boolean, _

ByRef pvarListOfFiles As Array _

)

 

Edinho

 

Wolfgang,

In fact, initially the subject matter was Teamcenter, and still is. The truth is that I have not found another reference, I tried to follow this example but got no result.

I find myself somewhat lost, so I tried to adopt this last code to see if anything could. I am not able to connect to server Teamcenter, or reference the object that I want to download.

I am completely lost in Solid Edge Teamcenter integration.

Maybe I'm following the wrong path.

As Solid Edge Help

Sub DownladDocumentsFromServerWithOptions (_

bstrItemId As String, _

bstrItemRev As String, _

bstrDataSetFileName As String, _

bstrRevisionRule As String, _

bstrVariantRule As String, _

vbReadOnly As Boolean, _

vbAllLevel As Boolean, _

The Array _ ByRef pvarListOfFiles

)

 

Edinho

 

Posted by: Edson Silva de Jesus
Post date: 5/12/2010 1:24:16 AM