Jump to content
Developer Wiki and Function Reference Links ×

How to access current workspace?


Stefan Bender

Recommended Posts

Hi all,

 

I'm trying to traverse the current workspace to collect information about the tools and menu items.

Unfortunately, I have not yet found a way to do so. I tried using IWorkspaceFile interface, but all attempts failed.

 

I tried

 

 VCOMPtr<VectorWorks::Workspaces::IWorkspaceFile> pwf(VectorWorks::Workspaces::IID_WorkspaceFile);
   TXString workspace_name;
    
    gSDK->GetCurrentWorkspaceFile(workspace_name);

 

VCOMError e_open = pwf->Open(workspace_name,fsRdPerm);

 

but e_open returned 1 and successive calls trying to access the menu bar also didn't work (null pointer returned by IWorkspaceFile::GetMenuBar).

 

What mistake did I make? How can I get access to the current workspace?

 

Thanks for any help,

 

Stefan Bender

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...