Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Create Teamcenter Datasets and import Files

Valued Contributor
Valued Contributor

Hello Nathaniel,

 

I think you forgot to add the list.....

Re: Create Teamcenter Datasets and import Files

Valued Contributor
Valued Contributor

@KushWadhwani

Hi,

I guess, you missed to pass some argument in CreateDataset() function. Or you passed a NULL argument.

Please print ItemID, revision, Outpath, Inputfilename in the code and check if these values are Non-Null.

Thanks,
Anbu

Teamcenter Architect & PLM/CAD Administrator,
Teamcenter 11.4 | Active Workspace 3.4 | NX 12

Re: Create Teamcenter Datasets and import Files

Valued Contributor
Valued Contributor

@AnbuPLM

Thanks for the reply. What I observed is as follows

 

datasetToolNames[0] = "PDF_Tool"; THis argument should be passed blank and the API should be called within a TRY Catch block.

 

Although the API gives you an error which is then not displayed because of empty catch block but it creates a dataset and attaches the file to this dataset.

 

Re: Create Teamcenter Datasets and import Files

Valued Contributor
Valued Contributor

Glad that it's working now.

Thanks,
Anbu

Teamcenter Architect & PLM/CAD Administrator,
Teamcenter 11.4 | Active Workspace 3.4 | NX 12

Re: Create Teamcenter Datasets and import Files

Experimenter
Experimenter

hello

 

Is it correct that way?

 

datasetToolNames[0] = nothing

 

try
   exportfiles... (funktion)
catch
end try

 

thank you

urs

 

Re: Create Teamcenter Datasets and import Files

Experimenter
Experimenter

Plz share example to import file into datset