I want to achieve the function of Create engineering Libraries with .NET API. I have use these methods on this page:
That post was also sent by me.Thank you for your reply. but I still have a few question :
1.the new resource was be created in a new Resource library under the working folder,it is not in the existing library which i want it in.
2.the new resource's "3D File" property on the properties page is empty .
in addition , Because this function is a function of the software itself. Is there a faster way to do it? I don't know if it can be implemented by "ExecuteCommand" with some parameters.
I look forward to your reply.
I fear there is not possibility to create a library with .NET API. You can achieve this task with eM Planner API, but I have not found any documentation with exactly description which structure do you have to create in order to get cojt inserted to the library. Therefore: my suggestion is to generate xml to import this prototype in the library and use import command to import required components to the library.
I hope, that Tecnomatix validate XML before import it.
Another advantage of XML import is the possibility to set attributes to the imported components.
Our simulators use for it the on board tools of PS. It takes something like 10-15 seconds to import a created library. I have not find any methods to import xml with .NET API. I have seen interfaces IEmpImportCollection and IEmpIE in the eMServer API, but :
I am glad to see your reply. I have already thought the method of "Create the xml and import the xml " , but create the xml is too trouble, because i want to the resource is created in the correct node nor the new resource library , if xml is only write the resource itself, after import the xml , create the new resource library under the working folder, i do not want it.
in that case you have use the eMServer API.
I have wrote this somewhere: be aware, that you exactly know what do you do. Check that you have created all required objects: the structure, that you see in the navigation tree not by a long shot whole structure, that is stored in the database. Some obejcts, e.g. ThreeDRep, is implicitly created by PS and are not displayed in the navigation tree. The emServer API does not create this objects for you. So you have analyse customization and investigate the structure of the objects created by PS in order to prevent the creation of not working objects in your database.
Thank you for your professional reply.but I couldn't find the help document of eMServer API . Can you tell me where I can find it?
I got API documentation from our system administrator. You can search the PS/PD installation folder for eM-Planner API Manual.