Cancel
Showing results for 
Search instead for 
Did you mean: 

Where i can find C# reference guide?

Experimenter
Experimenter

Hi all,

 

i'm very new in Teamcenter world.

I try to find something on the web , but i found only some Siemens document and not a really reference or a site with examples.

Someone can help me?

 

Thanks in advance.

23 REPLIES

Re: Where i can find C# reference guide?

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

The exact path depends on your version of Teamcenter. Each version has a pubs download that contains a tcrefs portion that contains the ITK function listings. For example, Tc11.2.1 is located:

Tc11.2.1_pub.zip\help_packages\tc11.2.1_en_US_tcrefs_webServer.zip\tc\11.2.1\tcrefs\en_US\custom\ITKFunction\

 


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Where i can find C# reference guide?

Experimenter
Experimenter
Hi Randy ,
thanks for your support but your solution , it seems to me , needs some zip file already installed on my pc.
I've not installed anything of Teamcenter because plm is inside server of customer.
I need to develop some classes using Teamcenter Api with C# and i don't find examples.
Does ITK is for C#?

Thanks again.

Re: Where i can find C# reference guide?

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Then you'll need to download pubs from the GTAC site. TcRefs is the API reference for ITK.


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Where i can find C# reference guide?

Genius
Genius

There are 428 sample ITK programs/functions in GTAC Solution Center

https://solutions.industrysoftware.automation.siemens.com/result.php?sort=desc&rows=100&q=tc_api&dt=...

 

The only lenguages shown are "c" and "cxx".  There are no samples in "cs" language

Re: Where i can find C# reference guide?

Phenom
Phenom

C# is used in SOA API. Is that what you are looking for ?

Re: Where i can find C# reference guide?

Experimenter
Experimenter
Thank you very much for supports,

i need to run a query to retrieve url of a drawing , and a query to create a drawing.
Connect and deconnect are vaguely documented , i think i can do it.
One of my contrains is to use C# , and i think is about SOA ( i found something about namespace Teamcenter.Soa.Client ...) but how to make a query ( and execute ) passing some parameter like dataset?

Thanks in advance.

Re: Where i can find C# reference guide?

Phenom
Phenom

You can find soa_client.zip in installation media of Teamcenter.

Documentation is under net\docs folder. Sample project C# project:  soa_client.zip\soa_client\net\samples\HelloTeamcenter.

 

If you want to execute a saved query in teamcenter, you can use attached code.

 

Otherwise use SavedQueryService.ExecuteBusinessObjectQueries Method. You can find details in the doc.

 

 

Re: Where i can find C# reference guide?

Phenom
Phenom

Re: Where i can find C# reference guide?

Experimenter
Experimenter

Hi,

 

I am new to this forum. I am looking for a very simple "SOA Code" in C# or Java to search Teamcenter objects. To be exact, I want to do the following.

 

- Search for a DesignRevision by giving some vriteria (Ex: Name and Revision)

- Get some of its attributes stored in Teamcenter. (Ex: I want to get the list of children DesigRrevisions for a defined level (2 levels for instance)

- Get some more attributes (Description, ECN, No of Datasets, Name of each dataset and so and so)

- I want to do this via programming either from Excel VBA or C#. I would even prefer to do this search as part of NXOpen programming.

- I know there is a Class/method called PDM.PdmSession in NXOpen to get the PDM Session and I can able to execute a simple and Advanced Searches to some extent which means I can able to parse entries and values to get the objects returned. But I need more. There is some recommendation on the internet to use SOA Query for that, but there is no strong documentation about how to setup/use SOA query. It would be a great help if you provide an example how to make SOA calls to Teamcenter to extract attribute values for a given item id.

- One more thing to be noted in this current discussion thread there is link to 428 Examples, but the link doesn't have full URL. Atleast the link doesn't work.

 

Thanks