Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
i have more than 500 different types of entities that are attached to a wrong project. I want to change the project name of entities but manually changing the name will take lots of time and work and i want to change the project name of all entities in one go by a service or some other methods. can you guys provide solution for the same.
Note i have done this for all things but API is not available for mashups, style def. etc. is there any way to perform this task ?
Mashups do have the SetProjectName service available in 9.3.1 at least.
Each entity should have this service. Did you try to use it and you had an error?
Mashups["Left Panel with Menu"].SetProjectName({
projectName: undefined /* PROJECTNAME */
});
I've done a lot of editing like this by exporting the project (Source Control Entities, which writes the files under SystemRepository) and editing the XML files. It's pretty easy to open all files in a good text editor and find/replace things like the project name in all files at once, then save and import back into ThingWorx. I routinely export entire projects and use Agent Ransack (Windows) to quickly find usage of services, session parameters, etc.