Cancel
Showing results for 
Search instead for 
Did you mean: 

How to run Import Object command from API?

Creator
Creator

Hello Experts,

 

I want to import MFGs to MFG library. Manually, I will right click on MFG library and use command "Import Objct" by giving input csv file which have details for MFGs.

 

Is this possible to import mfgs using APIs?

8 REPLIES

Re: How to run Import Object command from API?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Ravi,

 

It is not possible to run that command from the API.

 

Best Regards,

DianaG

Re: How to run Import Object command from API?

Creator
Creator

Hello Diana,

 

Thanks for the reply.

Betreff: How to run Import Object command from API?

Creator
Creator
TxWeldPointCreationData WeldPointCreationData = new TxWeldPointCreationData(WeldPointName, TransVector);
                                        
TxWeldLocationOperationCreationData WeldLocationOperationCreationData =
                       new TxWeldLocationOperationCreationData(WeldPointName, "AnyInfo", 1, WeldPointCreationData);
                                                                                
TxWeldLocationOperation WeldLocationOperation = WeldOperation.CreateWeldLocationOperation(WeldLocationOperationCreationData);
TxWeldPoint NewWeldPoint = WeldLocationOperation.WeldPoint;

Hi Ravi,

 

try this, maybe it will help you.

 

Regards

Betreff: How to run Import Object command from API?

Creator
Creator

Hello Henry,

 

Thank you for your reply.

I will check it.

 

Thanks,

Ravi

Re: How to run Import Object command from API?

Pioneer
Pioneer

Hi @DianaG

 

Can the interface IEmpImportCollection achieve the function of Import Object?

I have try the method 'ImportFromString' and 'ImportFromURL',but failed,which confused me for a long time.

 

Hope for any reply.

 

Best Regards,

Remond

 

 

Re: How to run Import Object command from API?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

 

FYI.

The functionality you are trying to create by your own is already available OOTB in PS Standalone eMS Based (csv Import) or in PSon eMS (csv/object import).

 

You only have to use the functionality and follow the rules.

 

Best regards

Patrick

Re: How to run Import Object command from API?

Creator
Creator

Hi, Patrick,

I know the function. But are the points also connected to a part?

 

Regards

 

Henry

Re: How to run Import Object command from API?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

 

for csv import on eMS:
class,externalid,name,location,operatesOn (as far as I remember operatesOn is the parameter for your part, here you need to enter the external ID of the part)

 

for csv import in PSZ:

https://docs.plm.automation.siemens.com/tdoc/tecnomatix/14.1.2/tecnomatix_eMS/#uid:id1374671967772

 

Best regards

Patrick