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?
TxWeldPointCreationData WeldPointCreationData = new TxWeldPointCreationData(WeldPointName, TransVector); TxWeldLocationOperationCreationData WeldLocationOperationCreationData = new TxWeldLocationOperationCreationData(WeldPointName, "AnyInfo", 1, WeldPointCreationData); TxWeldLocationOperation WeldLocationOperation = WeldOperation.CreateWeldLocationOperation(WeldLocationOperationCreationData); TxWeldPoint NewWeldPoint = WeldLocationOperation.WeldPoint;
try this, maybe it will help you.
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.
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.
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: