|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Project > CreateNewProject |
Creates a new project.
call DBWShell( "CreateNewProject ProjID [ParentProjUID [ShowInputForm]]" )
ProjID |
It is the new project id |
|---|---|
ParentProjUID |
Optional. unique id of the parent project. |
ShowInputForm |
Optional. |
@DOCUMENT_UNIQUE_ID |
the document unique id of the just created project |
Projects can have only project document type as parent.
Please note the usage of the okErrorMessages to avoid the error message in case the CANCEL button has been pressed in the Data Input Form.
...
okErrorMessages = FALSE
newproject = "My new project"
DBWShell("CreateNewProject " & replace(newproject, " ", "|") & " 0 1")
uid = DBWResult("@DOCUMENT_UNIQUE_ID")
DBWMsgBox "you've just created a project with uid=" & uid
okErrorMessages = TRUE
...