a few days ago i developed a script in dxl to make a "first release" Baseline for each module in a project folder. But when I run the script appears a message saying I have not permissions to do so. This is my code:
void CreateBaseline (Module mod) { // Function to create
create (mod, nextMajor(), "First Release") // baseline
}
Folder fStart = folder "/Z_Training/Baselines" // Folder
Module iCurrent // Module handler
for iCurrent in fStart do{
setExclusive() // Set Exclusive edit
Module (iCurrent, true) // rights
CreateBaseline(iCurrent)
}
As you can see I included the line "setExclusive()" to deal with it, but this does not fix the problem completely since the baseline is created only for the current open Module. Could you help me in this? Thanks in advance.