Hi all..
Question #1:
I'm trying to found a way to get the WORKSPACE list available.
something like..
(setq WS (getworkspacelist))
Question #2:
Is it possible to export this Workspace list without creating a routine ?
thanks.
CUI data does not seem to be included in the object model, so I don't think it can be accessed by third-party routines. But why do you want to do either of those things?
The "Transfer" tab in the CUI can transfer Workspaces among profiles (as long as you have Partial CUIs loaded appropriately).
I would expect that to be sufficient. Why do you need to access them via code? If you want to change a default Workspace in your Enterprise CUI, just change it. And you really shouldn't be changing private Workspaces created by your users - those should be under the control of the individual user. I can't figure out why you would even want to list them... So why do you need to access them in code at all?
If you are trying to write a routine that changes the current workspace, then I would not do that. The purpose of the Workspace is for the USER to customize the USER's working environment. It would be improper for a routine to say "I know best - you will have your workspace setup this way", even if it seems convenient for some reason or other.
But .CUI files are simple XML files. So you may be able to figure out whatever you want by looking right at the .CUI file in a text editor, or by parsing the XML in a routine. It would only show you which workspaces are defined in which CUI file, though - if you want to see what workspaces are currently-available, you would have to examine the User Preferences in order to see which CUI files are loaded, then parse those CUI files.