get doc and tool data from coffee

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 07/11/2005 at 07:37, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   9.5 
Platform:      
Language(s) :   C.O.F.F.E.E  ;

---------
i want to get the document mode like doc->GetMode() by coffee. But how ?? I tried doc#DOCUMENT_MODE but it says invalid id. Also getting the data out of the container class doesn't work. doc->GetMode() doesn't exist, too...

Similar problem with data from command plugins. I want to get the current user setting from the optimize command. I know that plugins usually store their data in a subcontainer of the worldcontainer.. so i tried
var bc = doc#14039;
with the id from the command manager. But the container doesn't exist i.e. bc is null.