Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
Submitted byAnonymouson09-13-201211:45 AM
Status:
Implemented
Have Project Management Available Through Scripting
Adding Project Management items in the Project Management tab is tedious at times. Being able to add project items through scripting would allow an automated procedure involving less time consumption and tedious routine work.
There is a slight workaround, if you aren't using it already. You can setup a relationship tab, create all your new task items via that, then when you go to the PM tab you can add linked items & just tick the ones you need to add. However, you still have to go to each individual task item & modify the milestones if they aren't how you would like them to be.
Unfortunately I'm not able to comment on any time frames for the release of features in the product, however… I can say that expanding the scripting engine’s reach into Project Management, relationships, workflow items, bom, …., etc. is a high focus of my scripting efforts.
We're part way there, read access to the project management tab has been added in the Feb. 2013 PLM 360 release. We'll followup with write access to project mangement in scripting.
Here's a simple example of scripting to project management tasks:
//adds tasks to projects
if(item.PROJECT!== null){ // a picklist of projects on the tasks item details page.
var taskExists = false; var project = item.PROJECT.project;
//check to see if the task is already added to the project for(var i =0 ; i < project.subTasks.length; i++){ if(item.descriptor.descriptor === project.subTasks[i].title){ taskExists = true; break; } }
if(taskExists === false){
//add the task to the project
item.PROJECT.project.addTask(item, new Date(), new Date(), 10); } }
Read:
item.project.<FIELD> where <FIELD> is: title, start_date, end_date, duration, progress, predecessors, subTasks, status, statusCode
item.project.subTasks[i].<FIELD> where <FIELD> is: id, title, start_date, end_date, duration, progress, predecessors, subTasks, children, status, statusCode, owner, target, isReadOnly
Write:
item.project.addTask("Task Name", startDate, endDate, progressPct); // Free-form text task item.project.addTask(targetItem, startDate, endDate, progressPct); // Item linking task or milestone task