This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to get CCS workspace folder in DSS script?

I am trying to write a portable DSS script. How can I query for the current CCS workspace folder in my DSS script? I've looked through the DS_API documentation but cannot find it.

CCS 6.0.1

Thanks
~Ramsey

  • Hi Ramsey,

    Why are you looking for the current workspace? There usually is no workspace association with a DSS script. I think it uses some default workspace but it is something that you normally don't have to worry about.


    ki

  • Ki-Soo,

    I setup a new workspace each time I have to validate a new release of our product. I'm thinking to copy my DSS scripts into the workspace (in case I need to modify them from release to release). If the script could determine the current workspace, then I could build the necessary pathnames to load my programs. Maybe you have a better suggestion?

    On a related note, what is an easy way to load my DSS script into the Scripting Console? I tried using the GEL menu option as detailed in one of the examples, but I could not get it to work. Right now I use the loadJSFile command. But I have to type in a long fully qualified pathname to my script. Each time I modify the script, I have to re-issue this same command again. How can I make this easier?

    I also have several scripts but I only want to load one script at a time. So, I don't want to auto-load them all at once. Also, how do I "unload" a DSS script? Right now I have to restart CCS when I want to load a different script.

    Thanks
    ~Ramsey

  • Ramsey said:
    I setup a new workspace each time I have to validate a new release of our product. I'm thinking to copy my DSS scripts into the workspace (in case I need to modify them from release to release). If the script could determine the current workspace, then I could build the necessary pathnames to load my programs. Maybe you have a better suggestion?

    the workspace concept really applies to Eclipse. DSS was meant to run standalone. Hence there is really no workspace association in DSS and there is no such API to get the current workspace from a DSS script that runs from the console. There is probably a way to get this using GSS or some other method, but not DSS.

    Ramsey said:
    On a related note, what is an easy way to load my DSS script into the Scripting Console? I tried using the GEL menu option as detailed in one of the examples, but I could not get it to work. Right now I use the loadJSFile command. But I have to type in a long fully qualified pathname to my script. Each time I modify the script, I have to re-issue this same command again. How can I make this easier?

    The Scripts menu option can call DSS functions, but the DSS script needs to be first loaded. the loadJSFile is the command to load it. You can create a console command file with the loadJSFile command and run that. Or you can copy the script to . \ccsv6\ccs_base\common\IDE\scripts. This will autoload the script on scripting console startup.

    Thanks

    ki

  • Thanks for the info.
    ~Ramsey